• Home
  • Raw
  • Download

Lines Matching refs:fields

1056         UChar    *fields[10];  in TestRegexCAPI()  local
1076 memset(fields, -1, sizeof(fields)); in TestRegexCAPI()
1078 uregex_split(re, buf, UPRV_LENGTHOF(buf), &requiredCapacity, fields, 10, &status); in TestRegexCAPI()
1084 TEST_ASSERT_STRING("first ", fields[0], TRUE); in TestRegexCAPI()
1085 TEST_ASSERT_STRING(" second", fields[1], TRUE); in TestRegexCAPI()
1086 TEST_ASSERT_STRING(" third", fields[2], TRUE); in TestRegexCAPI()
1087 TEST_ASSERT(fields[3] == NULL); in TestRegexCAPI()
1108 memset(fields, -1, sizeof(fields)); in TestRegexCAPI()
1110 uregex_split(re, buf, UPRV_LENGTHOF(buf), &requiredCapacity, fields, 2, &status); in TestRegexCAPI()
1116 TEST_ASSERT_STRING("first ", fields[0], TRUE); in TestRegexCAPI()
1117 TEST_ASSERT_STRING(" second: third", fields[1], TRUE); in TestRegexCAPI()
1118 TEST_ASSERT(!memcmp(&fields[2],&minus1,sizeof(UChar*))); in TestRegexCAPI()
1132 memset(fields, -1, sizeof(fields)); in TestRegexCAPI()
1135 uregex_split(re, buf, sz, &requiredCapacity, fields, 10, &status); in TestRegexCAPI()
1138 TEST_ASSERT_STRING("first ", fields[0], TRUE); in TestRegexCAPI()
1139 TEST_ASSERT_STRING(" second", fields[1], TRUE); in TestRegexCAPI()
1140 TEST_ASSERT_STRING(" third", fields[2], TRUE); in TestRegexCAPI()
1145 TEST_ASSERT(fields[3] == NULL); in TestRegexCAPI()
1162 UChar *fields[10]; in TestRegexCAPI() local
1178 memset(fields, -1, sizeof(fields)); in TestRegexCAPI()
1180 uregex_split(re, buf, UPRV_LENGTHOF(buf), &requiredCapacity, fields, 10, &status); in TestRegexCAPI()
1186 TEST_ASSERT_STRING("first ", fields[0], TRUE); in TestRegexCAPI()
1187 TEST_ASSERT_STRING("tag-a", fields[1], TRUE); in TestRegexCAPI()
1188 TEST_ASSERT_STRING(" second", fields[2], TRUE); in TestRegexCAPI()
1189 TEST_ASSERT_STRING("tag-b", fields[3], TRUE); in TestRegexCAPI()
1190 TEST_ASSERT_STRING(" third", fields[4], TRUE); in TestRegexCAPI()
1191 TEST_ASSERT(fields[5] == NULL); in TestRegexCAPI()
1199 memset(fields, -1, sizeof(fields)); in TestRegexCAPI()
1201 uregex_split(re, buf, UPRV_LENGTHOF(buf), &requiredCapacity, fields, 2, &status); in TestRegexCAPI()
1207 TEST_ASSERT_STRING("first ", fields[0], TRUE); in TestRegexCAPI()
1208 TEST_ASSERT_STRING(" second<tag-b> third", fields[1], TRUE); in TestRegexCAPI()
1209 TEST_ASSERT(!memcmp(&fields[2],&minus1,sizeof(UChar*))); in TestRegexCAPI()
1217 memset(fields, -1, sizeof(fields)); in TestRegexCAPI()
1219 uregex_split(re, buf, UPRV_LENGTHOF(buf), &requiredCapacity, fields, 3, &status); in TestRegexCAPI()
1225 TEST_ASSERT_STRING("first ", fields[0], TRUE); in TestRegexCAPI()
1226 TEST_ASSERT_STRING("tag-a", fields[1], TRUE); in TestRegexCAPI()
1227 TEST_ASSERT_STRING(" second<tag-b> third", fields[2], TRUE); in TestRegexCAPI()
1228 TEST_ASSERT(!memcmp(&fields[3],&minus1,sizeof(UChar*))); in TestRegexCAPI()
1236 memset(fields, -1, sizeof(fields)); in TestRegexCAPI()
1238 uregex_split(re, buf, UPRV_LENGTHOF(buf), &requiredCapacity, fields, 5, &status); in TestRegexCAPI()
1244 TEST_ASSERT_STRING("first ", fields[0], TRUE); in TestRegexCAPI()
1245 TEST_ASSERT_STRING("tag-a", fields[1], TRUE); in TestRegexCAPI()
1246 TEST_ASSERT_STRING(" second", fields[2], TRUE); in TestRegexCAPI()
1247 TEST_ASSERT_STRING("tag-b", fields[3], TRUE); in TestRegexCAPI()
1248 TEST_ASSERT_STRING(" third", fields[4], TRUE); in TestRegexCAPI()
1249 TEST_ASSERT(!memcmp(&fields[5],&minus1,sizeof(UChar*))); in TestRegexCAPI()
1263 memset(fields, -1, sizeof(fields)); in TestRegexCAPI()
1265 uregex_split(re, buf, UPRV_LENGTHOF(buf), &requiredCapacity, fields, 9, &status); in TestRegexCAPI()
1271 TEST_ASSERT_STRING("first ", fields[0], TRUE); in TestRegexCAPI()
1272 TEST_ASSERT_STRING("tag-a", fields[1], TRUE); in TestRegexCAPI()
1273 TEST_ASSERT_STRING(" second", fields[2], TRUE); in TestRegexCAPI()
1274 TEST_ASSERT_STRING("tag-b", fields[3], TRUE); in TestRegexCAPI()
1275 TEST_ASSERT_STRING("", fields[4], TRUE); in TestRegexCAPI()
1276 TEST_ASSERT(fields[5] == NULL); in TestRegexCAPI()
1277 TEST_ASSERT(fields[8] == NULL); in TestRegexCAPI()
1278 TEST_ASSERT(!memcmp(&fields[9],&minus1,sizeof(UChar*))); in TestRegexCAPI()
1950 UText *fields[10]; in TestUTextAPI() local
1968 memset(fields, 0, sizeof(fields)); in TestUTextAPI()
1969 numFields = uregex_splitUText(re, fields, 10, &status); in TestUTextAPI()
1978 TEST_ASSERT_UTEXT(str_first, fields[0]); in TestUTextAPI()
1979 TEST_ASSERT_UTEXT(str_second, fields[1]); in TestUTextAPI()
1980 TEST_ASSERT_UTEXT(str_third, fields[2]); in TestUTextAPI()
1981 TEST_ASSERT(fields[3] == NULL); in TestUTextAPI()
1984 utext_close(fields[i]); in TestUTextAPI()
1999 fields[0] = NULL; in TestUTextAPI()
2000 fields[1] = NULL; in TestUTextAPI()
2001 fields[2] = &patternText; in TestUTextAPI()
2002 numFields = uregex_splitUText(re, fields, 2, &status); in TestUTextAPI()
2010 TEST_ASSERT_UTEXT(str_first, fields[0]); in TestUTextAPI()
2011 TEST_ASSERT_UTEXT(str_secondthird, fields[1]); in TestUTextAPI()
2012 TEST_ASSERT(fields[2] == &patternText); in TestUTextAPI()
2015 utext_close(fields[i]); in TestUTextAPI()
2026 UText *fields[10]; in TestUTextAPI() local
2040 memset(fields, 0, sizeof(fields)); in TestUTextAPI()
2041 numFields = uregex_splitUText(re, fields, 10, &status); in TestUTextAPI()
2053 TEST_ASSERT_UTEXT(str_first, fields[0]); in TestUTextAPI()
2054 TEST_ASSERT_UTEXT(str_taga, fields[1]); in TestUTextAPI()
2055 TEST_ASSERT_UTEXT(str_second, fields[2]); in TestUTextAPI()
2056 TEST_ASSERT_UTEXT(str_tagb, fields[3]); in TestUTextAPI()
2057 TEST_ASSERT_UTEXT(str_third, fields[4]); in TestUTextAPI()
2058 TEST_ASSERT(fields[5] == NULL); in TestUTextAPI()
2061 utext_close(fields[i]); in TestUTextAPI()
2067 fields[0] = NULL; in TestUTextAPI()
2068 fields[1] = NULL; in TestUTextAPI()
2069 fields[2] = &patternText; in TestUTextAPI()
2070 numFields = uregex_splitUText(re, fields, 2, &status); in TestUTextAPI()
2078 TEST_ASSERT_UTEXT(str_first, fields[0]); in TestUTextAPI()
2079 TEST_ASSERT_UTEXT(str_secondtagbthird, fields[1]); in TestUTextAPI()
2080 TEST_ASSERT(fields[2] == &patternText); in TestUTextAPI()
2083 utext_close(fields[i]); in TestUTextAPI()
2089 fields[0] = NULL; in TestUTextAPI()
2090 fields[1] = NULL; in TestUTextAPI()
2091 fields[2] = NULL; in TestUTextAPI()
2092 fields[3] = &patternText; in TestUTextAPI()
2093 numFields = uregex_splitUText(re, fields, 3, &status); in TestUTextAPI()
2102 TEST_ASSERT_UTEXT(str_first, fields[0]); in TestUTextAPI()
2103 TEST_ASSERT_UTEXT(str_taga, fields[1]); in TestUTextAPI()
2104 TEST_ASSERT_UTEXT(str_secondtagbthird, fields[2]); in TestUTextAPI()
2105 TEST_ASSERT(fields[3] == &patternText); in TestUTextAPI()
2108 utext_close(fields[i]); in TestUTextAPI()
2113 fields[0] = NULL; in TestUTextAPI()
2114 fields[1] = NULL; in TestUTextAPI()
2115 fields[2] = NULL; in TestUTextAPI()
2116 fields[3] = NULL; in TestUTextAPI()
2117 fields[4] = NULL; in TestUTextAPI()
2118 fields[5] = &patternText; in TestUTextAPI()
2119 numFields = uregex_splitUText(re, fields, 5, &status); in TestUTextAPI()
2131 TEST_ASSERT_UTEXT(str_first, fields[0]); in TestUTextAPI()
2132 TEST_ASSERT_UTEXT(str_taga, fields[1]); in TestUTextAPI()
2133 TEST_ASSERT_UTEXT(str_second, fields[2]); in TestUTextAPI()
2134 TEST_ASSERT_UTEXT(str_tagb, fields[3]); in TestUTextAPI()
2135 TEST_ASSERT_UTEXT(str_third, fields[4]); in TestUTextAPI()
2136 TEST_ASSERT(fields[5] == &patternText); in TestUTextAPI()
2139 utext_close(fields[i]); in TestUTextAPI()
2149 memset(fields, 0, sizeof(fields)); in TestUTextAPI()
2150 fields[9] = &patternText; in TestUTextAPI()
2151 numFields = uregex_splitUText(re, fields, 9, &status); in TestUTextAPI()
2163 TEST_ASSERT_UTEXT(str_first, fields[0]); in TestUTextAPI()
2164 TEST_ASSERT_UTEXT(str_taga, fields[1]); in TestUTextAPI()
2165 TEST_ASSERT_UTEXT(str_second, fields[2]); in TestUTextAPI()
2166 TEST_ASSERT_UTEXT(str_tagb, fields[3]); in TestUTextAPI()
2167 TEST_ASSERT_UTEXT(str_empty, fields[4]); in TestUTextAPI()
2168 TEST_ASSERT(fields[5] == NULL); in TestUTextAPI()
2169 TEST_ASSERT(fields[8] == NULL); in TestUTextAPI()
2170 TEST_ASSERT(fields[9] == &patternText); in TestUTextAPI()
2173 utext_close(fields[i]); in TestUTextAPI()