• Home
  • Raw
  • Download

Lines Matching refs:fields

1020         UChar    *fields[10];  in TestRegexCAPI()  local
1040 memset(fields, -1, sizeof(fields)); in TestRegexCAPI()
1042 uregex_split(re, buf, sizeof(buf)/2, &requiredCapacity, fields, 10, &status); in TestRegexCAPI()
1048 TEST_ASSERT_STRING("first ", fields[0], TRUE); in TestRegexCAPI()
1049 TEST_ASSERT_STRING(" second", fields[1], TRUE); in TestRegexCAPI()
1050 TEST_ASSERT_STRING(" third", fields[2], TRUE); in TestRegexCAPI()
1051 TEST_ASSERT(fields[3] == NULL); in TestRegexCAPI()
1072 memset(fields, -1, sizeof(fields)); in TestRegexCAPI()
1074 uregex_split(re, buf, sizeof(buf)/2, &requiredCapacity, fields, 2, &status); in TestRegexCAPI()
1080 TEST_ASSERT_STRING("first ", fields[0], TRUE); in TestRegexCAPI()
1081 TEST_ASSERT_STRING(" second: third", fields[1], TRUE); in TestRegexCAPI()
1082 TEST_ASSERT(!memcmp(&fields[2],&minus1,sizeof(UChar*))); in TestRegexCAPI()
1096 memset(fields, -1, sizeof(fields)); in TestRegexCAPI()
1099 uregex_split(re, buf, sz, &requiredCapacity, fields, 10, &status); in TestRegexCAPI()
1102 TEST_ASSERT_STRING("first ", fields[0], TRUE); in TestRegexCAPI()
1103 TEST_ASSERT_STRING(" second", fields[1], TRUE); in TestRegexCAPI()
1104 TEST_ASSERT_STRING(" third", fields[2], TRUE); in TestRegexCAPI()
1109 TEST_ASSERT(fields[3] == NULL); in TestRegexCAPI()
1126 UChar *fields[10]; in TestRegexCAPI() local
1142 memset(fields, -1, sizeof(fields)); in TestRegexCAPI()
1144 uregex_split(re, buf, sizeof(buf)/2, &requiredCapacity, fields, 10, &status); in TestRegexCAPI()
1150 TEST_ASSERT_STRING("first ", fields[0], TRUE); in TestRegexCAPI()
1151 TEST_ASSERT_STRING("tag-a", fields[1], TRUE); in TestRegexCAPI()
1152 TEST_ASSERT_STRING(" second", fields[2], TRUE); in TestRegexCAPI()
1153 TEST_ASSERT_STRING("tag-b", fields[3], TRUE); in TestRegexCAPI()
1154 TEST_ASSERT_STRING(" third", fields[4], TRUE); in TestRegexCAPI()
1155 TEST_ASSERT(fields[5] == NULL); in TestRegexCAPI()
1163 memset(fields, -1, sizeof(fields)); in TestRegexCAPI()
1165 uregex_split(re, buf, sizeof(buf)/2, &requiredCapacity, fields, 2, &status); in TestRegexCAPI()
1171 TEST_ASSERT_STRING("first ", fields[0], TRUE); in TestRegexCAPI()
1172 TEST_ASSERT_STRING(" second<tag-b> third", fields[1], TRUE); in TestRegexCAPI()
1173 TEST_ASSERT(!memcmp(&fields[2],&minus1,sizeof(UChar*))); in TestRegexCAPI()
1181 memset(fields, -1, sizeof(fields)); in TestRegexCAPI()
1183 uregex_split(re, buf, sizeof(buf)/2, &requiredCapacity, fields, 3, &status); in TestRegexCAPI()
1189 TEST_ASSERT_STRING("first ", fields[0], TRUE); in TestRegexCAPI()
1190 TEST_ASSERT_STRING("tag-a", fields[1], TRUE); in TestRegexCAPI()
1191 TEST_ASSERT_STRING(" second<tag-b> third", fields[2], TRUE); in TestRegexCAPI()
1192 TEST_ASSERT(!memcmp(&fields[3],&minus1,sizeof(UChar*))); in TestRegexCAPI()
1200 memset(fields, -1, sizeof(fields)); in TestRegexCAPI()
1202 uregex_split(re, buf, sizeof(buf)/2, &requiredCapacity, fields, 5, &status); in TestRegexCAPI()
1208 TEST_ASSERT_STRING("first ", fields[0], TRUE); in TestRegexCAPI()
1209 TEST_ASSERT_STRING("tag-a", fields[1], TRUE); in TestRegexCAPI()
1210 TEST_ASSERT_STRING(" second", fields[2], TRUE); in TestRegexCAPI()
1211 TEST_ASSERT_STRING("tag-b", fields[3], TRUE); in TestRegexCAPI()
1212 TEST_ASSERT_STRING(" third", fields[4], TRUE); in TestRegexCAPI()
1213 TEST_ASSERT(!memcmp(&fields[5],&minus1,sizeof(UChar*))); in TestRegexCAPI()
1227 memset(fields, -1, sizeof(fields)); in TestRegexCAPI()
1229 uregex_split(re, buf, sizeof(buf)/2, &requiredCapacity, fields, 9, &status); in TestRegexCAPI()
1235 TEST_ASSERT_STRING("first ", fields[0], TRUE); in TestRegexCAPI()
1236 TEST_ASSERT_STRING("tag-a", fields[1], TRUE); in TestRegexCAPI()
1237 TEST_ASSERT_STRING(" second", fields[2], TRUE); in TestRegexCAPI()
1238 TEST_ASSERT_STRING("tag-b", fields[3], TRUE); in TestRegexCAPI()
1239 TEST_ASSERT(fields[4] == NULL); in TestRegexCAPI()
1240 TEST_ASSERT(fields[8] == NULL); in TestRegexCAPI()
1241 TEST_ASSERT(!memcmp(&fields[9],&minus1,sizeof(UChar*))); in TestRegexCAPI()
1904 UText *fields[10]; in TestUTextAPI() local
1922 memset(fields, 0, sizeof(fields)); in TestUTextAPI()
1923 numFields = uregex_splitUText(re, fields, 10, &status); in TestUTextAPI()
1932 TEST_ASSERT_UTEXT(str_first, fields[0]); in TestUTextAPI()
1933 TEST_ASSERT_UTEXT(str_second, fields[1]); in TestUTextAPI()
1934 TEST_ASSERT_UTEXT(str_third, fields[2]); in TestUTextAPI()
1935 TEST_ASSERT(fields[3] == NULL); in TestUTextAPI()
1938 utext_close(fields[i]); in TestUTextAPI()
1953 fields[0] = NULL; in TestUTextAPI()
1954 fields[1] = NULL; in TestUTextAPI()
1955 fields[2] = &patternText; in TestUTextAPI()
1956 numFields = uregex_splitUText(re, fields, 2, &status); in TestUTextAPI()
1964 TEST_ASSERT_UTEXT(str_first, fields[0]); in TestUTextAPI()
1965 TEST_ASSERT_UTEXT(str_secondthird, fields[1]); in TestUTextAPI()
1966 TEST_ASSERT(fields[2] == &patternText); in TestUTextAPI()
1969 utext_close(fields[i]); in TestUTextAPI()
1980 UText *fields[10]; in TestUTextAPI() local
1994 memset(fields, 0, sizeof(fields)); in TestUTextAPI()
1995 numFields = uregex_splitUText(re, fields, 10, &status); in TestUTextAPI()
2007 TEST_ASSERT_UTEXT(str_first, fields[0]); in TestUTextAPI()
2008 TEST_ASSERT_UTEXT(str_taga, fields[1]); in TestUTextAPI()
2009 TEST_ASSERT_UTEXT(str_second, fields[2]); in TestUTextAPI()
2010 TEST_ASSERT_UTEXT(str_tagb, fields[3]); in TestUTextAPI()
2011 TEST_ASSERT_UTEXT(str_third, fields[4]); in TestUTextAPI()
2012 TEST_ASSERT(fields[5] == NULL); in TestUTextAPI()
2015 utext_close(fields[i]); in TestUTextAPI()
2021 fields[0] = NULL; in TestUTextAPI()
2022 fields[1] = NULL; in TestUTextAPI()
2023 fields[2] = &patternText; in TestUTextAPI()
2024 numFields = uregex_splitUText(re, fields, 2, &status); in TestUTextAPI()
2032 TEST_ASSERT_UTEXT(str_first, fields[0]); in TestUTextAPI()
2033 TEST_ASSERT_UTEXT(str_secondtagbthird, fields[1]); in TestUTextAPI()
2034 TEST_ASSERT(fields[2] == &patternText); in TestUTextAPI()
2037 utext_close(fields[i]); in TestUTextAPI()
2043 fields[0] = NULL; in TestUTextAPI()
2044 fields[1] = NULL; in TestUTextAPI()
2045 fields[2] = NULL; in TestUTextAPI()
2046 fields[3] = &patternText; in TestUTextAPI()
2047 numFields = uregex_splitUText(re, fields, 3, &status); in TestUTextAPI()
2056 TEST_ASSERT_UTEXT(str_first, fields[0]); in TestUTextAPI()
2057 TEST_ASSERT_UTEXT(str_taga, fields[1]); in TestUTextAPI()
2058 TEST_ASSERT_UTEXT(str_secondtagbthird, fields[2]); in TestUTextAPI()
2059 TEST_ASSERT(fields[3] == &patternText); in TestUTextAPI()
2062 utext_close(fields[i]); in TestUTextAPI()
2067 fields[0] = NULL; in TestUTextAPI()
2068 fields[1] = NULL; in TestUTextAPI()
2069 fields[2] = NULL; in TestUTextAPI()
2070 fields[3] = NULL; in TestUTextAPI()
2071 fields[4] = NULL; in TestUTextAPI()
2072 fields[5] = &patternText; in TestUTextAPI()
2073 numFields = uregex_splitUText(re, fields, 5, &status); in TestUTextAPI()
2085 TEST_ASSERT_UTEXT(str_first, fields[0]); in TestUTextAPI()
2086 TEST_ASSERT_UTEXT(str_taga, fields[1]); in TestUTextAPI()
2087 TEST_ASSERT_UTEXT(str_second, fields[2]); in TestUTextAPI()
2088 TEST_ASSERT_UTEXT(str_tagb, fields[3]); in TestUTextAPI()
2089 TEST_ASSERT_UTEXT(str_third, fields[4]); in TestUTextAPI()
2090 TEST_ASSERT(fields[5] == &patternText); in TestUTextAPI()
2093 utext_close(fields[i]); in TestUTextAPI()
2103 memset(fields, 0, sizeof(fields)); in TestUTextAPI()
2104 fields[9] = &patternText; in TestUTextAPI()
2105 numFields = uregex_splitUText(re, fields, 9, &status); in TestUTextAPI()
2116 TEST_ASSERT_UTEXT(str_first, fields[0]); in TestUTextAPI()
2117 TEST_ASSERT_UTEXT(str_taga, fields[1]); in TestUTextAPI()
2118 TEST_ASSERT_UTEXT(str_second, fields[2]); in TestUTextAPI()
2119 TEST_ASSERT_UTEXT(str_tagb, fields[3]); in TestUTextAPI()
2120 TEST_ASSERT(fields[4] == NULL); in TestUTextAPI()
2121 TEST_ASSERT(fields[8] == NULL); in TestUTextAPI()
2122 TEST_ASSERT(fields[9] == &patternText); in TestUTextAPI()
2125 utext_close(fields[i]); in TestUTextAPI()