Home
last modified time | relevance | path

Searched refs:UPRV_LENGTHOF (Results 1 – 25 of 280) sorted by relevance

12345678910>>...12

/external/icu/icu4c/source/test/cintltst/
Dnccbtst.c192 if(!testConvertFromUnicode(sampleText, UPRV_LENGTHOF(sampleText), in TestSkip()
193 expskipIBM_949, UPRV_LENGTHOF(expskipIBM_949), "ibm-949", in TestSkip()
196 if(!testConvertFromUnicode(sampleText2, UPRV_LENGTHOF(sampleText2), in TestSkip()
197 expskipIBM_943, UPRV_LENGTHOF(expskipIBM_943), "ibm-943", in TestSkip()
208 if(!testConvertFromUnicode(fromU, UPRV_LENGTHOF(fromU), in TestSkip()
209 fromUBytes, UPRV_LENGTHOF(fromUBytes), in TestSkip()
229 if(!testConvertFromUnicode(usasciiFromU, UPRV_LENGTHOF(usasciiFromU), in TestSkip()
230 usasciiFromUBytes, UPRV_LENGTHOF(usasciiFromUBytes), in TestSkip()
240 if(!testConvertFromUnicode(usasciiFromU, UPRV_LENGTHOF(usasciiFromU), in TestSkip()
241 usasciiFromUBytes, UPRV_LENGTHOF(usasciiFromUBytes), in TestSkip()
[all …]
Dcstrcase.c50 length=u_strToLower(buffer, UPRV_LENGTHOF(buffer), in TestCaseLower()
51 beforeLower, UPRV_LENGTHOF(beforeLower), in TestCaseLower()
55 length!=(UPRV_LENGTHOF(lowerRoot)) || in TestCaseLower()
70 buffer[UPRV_LENGTHOF(beforeLower)]=0; in TestCaseLower()
72 length=u_strToLower(buffer, UPRV_LENGTHOF(buffer), in TestCaseLower()
77 length!=(UPRV_LENGTHOF(lowerTurkish)) || in TestCaseLower()
91 beforeLower, UPRV_LENGTHOF(beforeLower), in TestCaseLower()
95 length!=(UPRV_LENGTHOF(lowerRoot)) || in TestCaseLower()
107 length=u_strToLower(NULL, UPRV_LENGTHOF(buffer), in TestCaseLower()
108 beforeLower, UPRV_LENGTHOF(beforeLower), in TestCaseLower()
[all …]
Dcustrtrn.c152 u_strToUTF32(u32Target, 0, &u32DestLen, src16, UPRV_LENGTHOF(src16),&err); in Test_strToUTF32()
153 if(err != U_BUFFER_OVERFLOW_ERROR || u32DestLen != UPRV_LENGTHOF(src32)) { in Test_strToUTF32()
156 (long)u32DestLen, (long)UPRV_LENGTHOF(src32), u_errorName(err)); in Test_strToUTF32()
161 u_strToUTF32(u32Target, UPRV_LENGTHOF(src32)+1, &u32DestLen, src16, UPRV_LENGTHOF(src16),&err); in Test_strToUTF32()
162 if(err != U_ZERO_ERROR || u32DestLen != UPRV_LENGTHOF(src32)) { in Test_strToUTF32()
165 (long)u32DestLen, (long)UPRV_LENGTHOF(src32), u_errorName(err)); in Test_strToUTF32()
174 for(i=0; i< UPRV_LENGTHOF(src32); i++){ in Test_strToUTF32()
186 if(err != U_BUFFER_OVERFLOW_ERROR || u32DestLen != UPRV_LENGTHOF(src32)-1) { in Test_strToUTF32()
189 (long)u32DestLen, (long)UPRV_LENGTHOF(src32)-1, u_errorName(err)); in Test_strToUTF32()
194 u_strToUTF32(u32Target, UPRV_LENGTHOF(src32), &u32DestLen, src16, -1,&err); in Test_strToUTF32()
[all …]
Dncnvtst.c150 if(!convertFromU(sampleText, UPRV_LENGTHOF(sampleText), in TestSurrogateBehaviour()
156 if(!convertFromU(sampleText, UPRV_LENGTHOF(sampleText), in TestSurrogateBehaviour()
170 if(!convertFromU(sampleText, UPRV_LENGTHOF(sampleText), in TestSurrogateBehaviour()
173 if(!convertFromU(sampleText, UPRV_LENGTHOF(sampleText), in TestSurrogateBehaviour()
177 if(!convertFromU(sampleText, UPRV_LENGTHOF(sampleText), in TestSurrogateBehaviour()
180 if(!convertFromU(sampleText, UPRV_LENGTHOF(sampleText), in TestSurrogateBehaviour()
196 if(!convertFromU(sampleText, UPRV_LENGTHOF(sampleText), in TestSurrogateBehaviour()
199 if(!convertFromU(sampleText, UPRV_LENGTHOF(sampleText), in TestSurrogateBehaviour()
262 if(!convertFromU(sampleText, UPRV_LENGTHOF(sampleText), in TestSurrogateBehaviour()
265 if(!convertFromU(sampleText, UPRV_LENGTHOF(sampleText), in TestSurrogateBehaviour()
[all …]
Dutf16tst.c74 for(i=0; i<UPRV_LENGTHOF(codeunit); i++){ in TestCodeUnitValues()
126 for(i=0; i<UPRV_LENGTHOF(codepoint); i=(int16_t)(i+2)){ in TestCharLength()
185 for(offset=0; offset<UPRV_LENGTHOF(input); offset++) { in TestGetChar()
186 if(0<offset && offset<UPRV_LENGTHOF(input)-1){ in TestGetChar()
200 UTF16_GET_CHAR_SAFE(input, 0, offset, UPRV_LENGTHOF(input), c, FALSE); in TestGetChar()
205 U16_GET(input, 0, offset, UPRV_LENGTHOF(input), c); in TestGetChar()
210 U16_GET_OR_FFFD(input, 0, offset, UPRV_LENGTHOF(input), c); in TestGetChar()
216 UTF16_GET_CHAR_SAFE(input, 0, offset, UPRV_LENGTHOF(input), c, TRUE); in TestGetChar()
263 for(offset=0; offset<UPRV_LENGTHOF(input); offset++){ in TestNextPrevChar()
287 UTF16_NEXT_CHAR_SAFE(input, setOffset, UPRV_LENGTHOF(input), c, FALSE); in TestNextPrevChar()
[all …]
Dcmsccoll.c96 size = UPRV_LENGTHOF(cnt1); in IncompleteCntTest()
122 size = UPRV_LENGTHOF(cnt2); in IncompleteCntTest()
196 size = UPRV_LENGTHOF(nonignorable); in BlackBirdTest()
210 size = UPRV_LENGTHOF(shifted); in BlackBirdTest()
222 size = UPRV_LENGTHOF(shifted); in BlackBirdTest()
356 for(h = 0; h<UPRV_LENGTHOF(caseFirst); h++) {
360 for(i = 0; i<UPRV_LENGTHOF(alternateHandling); i++) {
364 for(j = 0; j<UPRV_LENGTHOF(caseLevel); j++) {
368 for(k = 0; k<UPRV_LENGTHOF(strengths); k++) {
445 size = UPRV_LENGTHOF(chTest); in TestChMove()
[all …]
Dcbididat.c380 {testText1, UPRV_LENGTHOF(testText1), UBIDI_DEFAULT_LTR, -1, -1,
383 {testText2, UPRV_LENGTHOF(testText2), UBIDI_DEFAULT_LTR, -1, -1,
386 {testText3, UPRV_LENGTHOF(testText3), UBIDI_DEFAULT_LTR, -1, -1,
389 {testText4, UPRV_LENGTHOF(testText4), UBIDI_DEFAULT_LTR, -1, -1,
392 {testText5, UPRV_LENGTHOF(testText5), UBIDI_DEFAULT_LTR, -1, -1,
395 {testText6, UPRV_LENGTHOF(testText6), UBIDI_DEFAULT_LTR, -1, -1,
401 {testText8, UPRV_LENGTHOF(testText8), UBIDI_DEFAULT_LTR, -1, -1,
404 {testText9, UPRV_LENGTHOF(testText9), 64, -1, -1,
407 {testText10, UPRV_LENGTHOF(testText10), 64, -1, -1,
410 {testText11, UPRV_LENGTHOF(testText11), UBIDI_DEFAULT_LTR, -1, -1,
[all …]
Dcnormtst.c194 …length2=unorm_normalize(source, u_strlen(source), mode, 0, result, UPRV_LENGTHOF(result), &status)… in TestNormCases()
201 length2=unorm_normalize(source, -1, mode, 0, result, UPRV_LENGTHOF(result), &status); in TestNormCases()
213 TestNormCases(UNORM_NFD, canonTests, UPRV_LENGTHOF(canonTests)); in TestDecomp()
217 TestNormCases(UNORM_NFKD, compatTests, UPRV_LENGTHOF(compatTests)); in TestCompatDecomp()
221 TestNormCases(UNORM_NFC, canonTests, UPRV_LENGTHOF(canonTests)); in TestCanonDecompCompose()
225 TestNormCases(UNORM_NFKC, compatTests, UPRV_LENGTHOF(compatTests)); in TestCompatDecompCompose()
229 TestNormCases(UNORM_FCD, fcdTests, UPRV_LENGTHOF(fcdTests)); in TestFCD()
479 for (count = 0; count < UPRV_LENGTHOF(canonTests); count ++) in TestQuickCheckStringResult()
501 for (count = 0; count < UPRV_LENGTHOF(compatTests); count ++) in TestQuickCheckStringResult()
583 for(i=0; i<UPRV_LENGTHOF(notNFC); ++i) { in TestIsNormalized()
[all …]
Dcucdapi.c130 if(num!=UPRV_LENGTHOF(jaCode)){ in TestUScriptCodeAPI()
132 num, UPRV_LENGTHOF(jaCode)); in TestUScriptCodeAPI()
134 for(j=0;j<UPRV_LENGTHOF(jaCode);j++) { in TestUScriptCodeAPI()
163 num = uscript_getCode("tg", scripts, UPRV_LENGTHOF(scripts), &err); in TestUScriptCodeAPI()
166 num = uscript_getCode("xsr", scripts, UPRV_LENGTHOF(scripts), &err); in TestUScriptCodeAPI()
171 num = uscript_getCode("ja", scripts, UPRV_LENGTHOF(scripts), &err); in TestUScriptCodeAPI()
173 JAPANESE, UPRV_LENGTHOF(JAPANESE), scripts, num, err); in TestUScriptCodeAPI()
175 num = uscript_getCode("ko", scripts, UPRV_LENGTHOF(scripts), &err); in TestUScriptCodeAPI()
177 KOREAN, UPRV_LENGTHOF(KOREAN), scripts, num, err); in TestUScriptCodeAPI()
179 num = uscript_getCode("zh", scripts, UPRV_LENGTHOF(scripts), &err); in TestUScriptCodeAPI()
[all …]
Dcbiditst.c742 for(i=0;i<UPRV_LENGTHOF(logicalOrder);i++){ in testReorder()
777 for(i=0;i<UPRV_LENGTHOF(logicalOrder);i++){ in testReorder()
811 for(i=0;i<UPRV_LENGTHOF(logicalOrder);i++){ in testReorder()
842 for(i=0;i<UPRV_LENGTHOF(logicalOrder);i++){ in testReorder()
876 for(i=0;i<UPRV_LENGTHOF(logicalOrder);i++){ in testReorder()
1004 for(i=0;i<UPRV_LENGTHOF(logicalOrder);i++){ in testReorderArabicMathSymbols()
1296 #define STRING_TEST_CASE(s) { (s), UPRV_LENGTHOF(s) }
1366 UPRV_LENGTHOF(testCases)); in testGetBaseDirection()
1368 for(i=0; i<UPRV_LENGTHOF(testCases); ++i) { in testGetBaseDirection()
2143 ubidi_setPara(pBidi, multiparaTestString, UPRV_LENGTHOF(multiparaTestString), in testMultipleParagraphs()
[all …]
Dncnvfbts.c183 realBufferSize = UPRV_LENGTHOF(junkout); in testConvertFromUnicode()
341 realBufferSize = UPRV_LENGTHOF(junkout); in testConvertToUnicode()
547 for(i=0; i<UPRV_LENGTHOF(nativeCodePage); i++){ in TestConvertFallBackWithBufferSizes()
549 if(!testConvertFromUnicode(SBCSText, UPRV_LENGTHOF(SBCSText), in TestConvertFallBackWithBufferSizes()
554 … retrievedSBCSText, UPRV_LENGTHOF(retrievedSBCSText), nativeCodePage[i], TRUE, fromNativeoffs )) in TestConvertFallBackWithBufferSizes()
559 if(!testConvertFromUnicode(DBCSText, UPRV_LENGTHOF(DBCSText), in TestConvertFallBackWithBufferSizes()
564 … retrievedDBCSText, UPRV_LENGTHOF(retrievedDBCSText),"ibm-1363", TRUE, fromIBM1363offs_DBCS )) in TestConvertFallBackWithBufferSizes()
569 if(!testConvertFromUnicode(MBCSText, UPRV_LENGTHOF(MBCSText), in TestConvertFallBackWithBufferSizes()
574 retrievedMBCSText, UPRV_LENGTHOF(retrievedMBCSText),"ibm-950", TRUE, fromIBM950offs )) in TestConvertFallBackWithBufferSizes()
589 … expectedUnicodeText, UPRV_LENGTHOF(expectedUnicodeText),"ibm-950", TRUE, fromIBM950inputOffs )) in TestConvertFallBackWithBufferSizes()
[all …]
Dutf8tst.c129 for(i=0; i<UPRV_LENGTHOF(codeunit); i++){ in TestCodeUnitValues()
186 for(i=0; i<UPRV_LENGTHOF(codepoint); i=(int16_t)(i+2)){ in TestCharLength()
639 for(i=UPRV_LENGTHOF(codePoints)-1, offset=sizeof(input); offset > 0; --i){ in TestNextPrevCharUnsafe()
648 for(i=UPRV_LENGTHOF(codePoints)-1, offset=sizeof(input); offset > 0; --i){ in TestNextPrevCharUnsafe()
726 for(i=0; i<UPRV_LENGTHOF(Nvalue); i++){ in TestFwdBack()
735 for(i=0; i<UPRV_LENGTHOF(Nvalue); i++){ in TestFwdBack()
744 for(i=0; i<UPRV_LENGTHOF(Nvalue); i++){ in TestFwdBack()
752 for(i=0; i<UPRV_LENGTHOF(Nvalue); i++){ in TestFwdBack()
790 for(i=1, offset=0; offset<UPRV_LENGTHOF(input); ++i) { in TestFwdBackUnsafe()
797 for(i=1, offset=0; offset<UPRV_LENGTHOF(input); ++i) { in TestFwdBackUnsafe()
[all …]
Dreapits.c213 u_uastrncpy(pat, "abc*", UPRV_LENGTHOF(pat)); in TestRegexCAPI()
265 u_uastrncpy(pat, "abc*", UPRV_LENGTHOF(pat)); in TestRegexCAPI()
305 u_uastrncpy(testString1, "abcccd", UPRV_LENGTHOF(pat)); in TestRegexCAPI()
306 u_uastrncpy(testString2, "xxxabcccd", UPRV_LENGTHOF(pat)); in TestRegexCAPI()
337 u_uastrncpy(pat, "hello", UPRV_LENGTHOF(pat)); in TestRegexCAPI()
403 u_uastrncpy(text1, "abcccd", UPRV_LENGTHOF(text1)); in TestRegexCAPI()
404 u_uastrncpy(text2, "abcccxd", UPRV_LENGTHOF(text2)); in TestRegexCAPI()
406 u_uastrncpy(pat, "abc*d", UPRV_LENGTHOF(pat)); in TestRegexCAPI()
458 u_uastrncpy(text1, "abcccd", UPRV_LENGTHOF(text1)); in TestRegexCAPI()
459 u_uastrncpy(text2, "abcccxd", UPRV_LENGTHOF(text2)); in TestRegexCAPI()
[all …]
Dnucnvtst.c407 realBufferSize = UPRV_LENGTHOF(junkout); in testConvertFromU()
565 realBufferSize = UPRV_LENGTHOF(junkout); in testConvertToU()
837 testConvertFromU(sampleText, UPRV_LENGTHOF(sampleText), in TestNewConvertWithBufferSizes()
848 testConvertFromU(testinput, UPRV_LENGTHOF(testinput), in TestNewConvertWithBufferSizes()
856 testConvertFromU(sampleText, UPRV_LENGTHOF(sampleText), in TestNewConvertWithBufferSizes()
861 testConvertFromU(sampleText, UPRV_LENGTHOF(sampleText), in TestNewConvertWithBufferSizes()
864 testConvertFromU(sampleText, UPRV_LENGTHOF(sampleText), in TestNewConvertWithBufferSizes()
867 testConvertFromU(sampleText, UPRV_LENGTHOF(sampleText), in TestNewConvertWithBufferSizes()
870 testConvertFromU(sampleText, UPRV_LENGTHOF(sampleText), in TestNewConvertWithBufferSizes()
874 testConvertFromU(sampleText, UPRV_LENGTHOF(sampleText), in TestNewConvertWithBufferSizes()
[all …]
/external/icu/icu4c/source/test/perf/convperf/
Dconvperf.cpp147 …Function* pf = new ICUFromUnicodePerfFunction("utf-8",utf8_uniSource, UPRV_LENGTHOF(utf8_uniSource… in TestICU_UTF8_FromUnicode()
156 …UPerfFunction* pf = new ICUToUnicodePerfFunction("utf-8",(char*)utf8_encSource, UPRV_LENGTHOF(utf8… in TestICU_UTF8_ToUnicode()
166 …new WinIMultiLanguage2FromUnicodePerfFunction("utf-8",utf8_uniSource, UPRV_LENGTHOF(utf8_uniSource… in TestWinIML2_UTF8_FromUnicode()
175 …inIMultiLanguage2ToUnicodePerfFunction("utf-8",(char*)utf8_encSource, UPRV_LENGTHOF(utf8_encSource… in TestWinIML2_UTF8_ToUnicode()
184 …UPerfFunction* pf = new WinANSIFromUnicodePerfFunction("utf-8",utf8_uniSource, UPRV_LENGTHOF(utf8_… in TestWinANSI_UTF8_FromUnicode()
193 … pf = new WinANSIToUnicodePerfFunction("utf-8",(char*)utf8_encSource, UPRV_LENGTHOF(utf8_encSource… in TestWinANSI_UTF8_ToUnicode()
204 …n* pf = new ICUFromUnicodePerfFunction("iso-8859-1",latin1_uniSource, UPRV_LENGTHOF(latin1_uniSour… in TestICU_Latin1_FromUnicode()
213 … = new ICUToUnicodePerfFunction("iso-8859-1",(char*)latin1_encSource, UPRV_LENGTHOF(latin1_encSour… in TestICU_Latin1_ToUnicode()
223 …IMultiLanguage2FromUnicodePerfFunction("iso-8859-1",latin1_uniSource, UPRV_LENGTHOF(latin1_uniSour… in TestWinIML2_Latin1_FromUnicode()
232 …iLanguage2ToUnicodePerfFunction("iso-8859-1",(char*)latin1_encSource, UPRV_LENGTHOF(latin1_encSour… in TestWinIML2_Latin1_ToUnicode()
[all …]
/external/icu/icu4c/source/samples/ustring/
Dustring.cpp36 #ifndef UPRV_LENGTHOF
37 #define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0])) macro
120 printUString("iterate forward through: ", input, UPRV_LENGTHOF(input)); in demo_utf_h_macros()
121 for(i=0; i<UPRV_LENGTHOF(input); /* U16_NEXT post-increments */) { in demo_utf_h_macros()
129 U16_NEXT(input, i, UPRV_LENGTHOF(input), c); in demo_utf_h_macros()
137 U16_APPEND(input, i, UPRV_LENGTHOF(input), 0x0062, isError); in demo_utf_h_macros()
139 printUString("iterate backward through: ", input, UPRV_LENGTHOF(input)); in demo_utf_h_macros()
140 for(i=UPRV_LENGTHOF(input); i>0; /* U16_PREV pre-decrements */) { in demo_utf_h_macros()
227 for(i=j=0; j<UPRV_LENGTHOF(buffer) && !isError; /* U16_NEXT post-increments */) { in demoCaseMapInC()
233 U16_APPEND(buffer, j, UPRV_LENGTHOF(buffer), c, isError); in demoCaseMapInC()
[all …]
/external/icu/icu4c/source/test/iotest/
Dfiletst.c45 u_memset(myUString, 0x2a, UPRV_LENGTHOF(myUString)); in TestFileFromICU()
46 u_memset(uStringBuf, 0x2a, UPRV_LENGTHOF(uStringBuf)); in TestFileFromICU()
47 memset(myString, '*', UPRV_LENGTHOF(myString)); in TestFileFromICU()
48 memset(testBuf, '*', UPRV_LENGTHOF(testBuf)); in TestFileFromICU()
221 u_austrncpy(myString, myUString, UPRV_LENGTHOF(myUString)); in TestFileFromICU()
226 u_austrncpy(myString, myUString, UPRV_LENGTHOF(myUString)); in TestFileFromICU()
244 u_austrncpy(myString, myUString, UPRV_LENGTHOF(myUString)); in TestFileFromICU()
249 if (u_fgets(myUString, UPRV_LENGTHOF(myUString), myFile) != myUString) { in TestFileFromICU()
252 u_austrncpy(myString, myUString, UPRV_LENGTHOF(myUString)); in TestFileFromICU()
257 if (u_fgets(myUString, UPRV_LENGTHOF(myUString), myFile) != myUString) { in TestFileFromICU()
[all …]
Dstrtst.c38 u_memset(myUString, 0x0a, UPRV_LENGTHOF(myUString)); in TestString()
39 u_memset(uStringBuf, 0x0a, UPRV_LENGTHOF(uStringBuf)); in TestString()
170 u_austrncpy(myString, myUString, UPRV_LENGTHOF(myString)); in TestString()
177 u_austrncpy(myString, myUString, UPRV_LENGTHOF(myString)); in TestString()
208 u_austrncpy(myString, uStringBuf, UPRV_LENGTHOF(uStringBuf)); in TestString()
217 u_austrncpy(myString, uStringBuf, UPRV_LENGTHOF(uStringBuf)); in TestString()
225 u_uastrncpy(myUString, longStr, UPRV_LENGTHOF(longStr)); in TestString()
231 u_uastrncpy(myUString, longStr, UPRV_LENGTHOF(longStr)); in TestString()
240 u_memset(uStringBuf, 1, UPRV_LENGTHOF(longStr)); in TestString()
241 u_uastrncpy(myUString, longStr, UPRV_LENGTHOF(longStr)); in TestString()
[all …]
/external/icu/icu4c/source/test/intltest/
Dsimpleformattertest.cpp171 UPRV_LENGTHOF(params), in TestManyArguments()
174 UPRV_LENGTHOF(offsets), in TestManyArguments()
179 verifyOffsets(expectedOffsets, offsets, UPRV_LENGTHOF(expectedOffsets)); in TestManyArguments()
184 offsets[UPRV_LENGTHOF(offsets) - 1] = 289; in TestManyArguments()
188 UPRV_LENGTHOF(params), in TestManyArguments()
191 UPRV_LENGTHOF(offsets) - 1, in TestManyArguments()
193 assertEquals("Offsets buffer length", 289, offsets[UPRV_LENGTHOF(offsets) - 1]); in TestManyArguments()
204 UPRV_LENGTHOF(params), in TestManyArguments()
218 UPRV_LENGTHOF(params), in TestManyArguments()
262 params, UPRV_LENGTHOF(params), appendTo, NULL, 0, status); in TestTooFewArgumentValues()
[all …]
Dgenderinfotest.cpp59 …check(UGENDER_FEMALE, UGENDER_FEMALE, UGENDER_FEMALE, kSingleFemale, UPRV_LENGTHOF(kSingleFemale)); in TestGetListGender()
60 check(UGENDER_MALE, UGENDER_MALE, UGENDER_MALE, kSingleMale, UPRV_LENGTHOF(kSingleMale)); in TestGetListGender()
61 check(UGENDER_OTHER, UGENDER_OTHER, UGENDER_OTHER, kSingleOther, UPRV_LENGTHOF(kSingleOther)); in TestGetListGender()
63 check(UGENDER_OTHER, UGENDER_FEMALE, UGENDER_FEMALE, kAllFemale, UPRV_LENGTHOF(kAllFemale)); in TestGetListGender()
64 check(UGENDER_OTHER, UGENDER_MALE, UGENDER_MALE, kAllMale, UPRV_LENGTHOF(kAllMale)); in TestGetListGender()
65 check(UGENDER_OTHER, UGENDER_OTHER, UGENDER_MALE, kAllOther, UPRV_LENGTHOF(kAllOther)); in TestGetListGender()
67 check(UGENDER_OTHER, UGENDER_OTHER, UGENDER_MALE, kFemaleMale, UPRV_LENGTHOF(kFemaleMale)); in TestGetListGender()
68 check(UGENDER_OTHER, UGENDER_OTHER, UGENDER_MALE, kFemaleOther, UPRV_LENGTHOF(kFemaleOther)); in TestGetListGender()
69 check(UGENDER_OTHER, UGENDER_OTHER, UGENDER_MALE, kMaleOther, UPRV_LENGTHOF(kMaleOther)); in TestGetListGender()
Dbytestrietest.cpp135 checkData(data, UPRV_LENGTHOF(data)); in TestEmpty()
142 checkData(data, UPRV_LENGTHOF(data)); in Test_a()
150 checkData(data, UPRV_LENGTHOF(data)); in Test_a_ab()
158 checkData(data, UPRV_LENGTHOF(data)); in TestShortestBranch()
178 for(int32_t length=2; length<=UPRV_LENGTHOF(data); ++length) { in TestBranches()
197 checkData(data, UPRV_LENGTHOF(data)); in TestLongSequence()
225 checkData(data, UPRV_LENGTHOF(data)); in TestLongBranch()
239 checkData(data, UPRV_LENGTHOF(data)); in TestValuesForState()
266 checkData(data, UPRV_LENGTHOF(data)); in TestCompact()
306 return buildTrie(data, UPRV_LENGTHOF(data), buildOption); in buildMonthsTrie()
[all …]
Duts46test.cpp161 TestCheckedArrayByteSink sink(buffer, UPRV_LENGTHOF(buffer)); in TestAPI()
228 prettify(result).extract(0, 0x7fffffff, buffer, UPRV_LENGTHOF(buffer)); in TestNotSTD3()
242 prettify(result).extract(0, 0x7fffffff, buffer, UPRV_LENGTHOF(buffer)); in TestNotSTD3()
603 for(i=0; i<UPRV_LENGTHOF(testCases); ++i) { in TestSomeCases()
631 prettify(uN).extract(0, 0x7fffffff, buffer, UPRV_LENGTHOF(buffer)); in TestSomeCases()
649 prettify(uT).extract(0, 0x7fffffff, buffer, UPRV_LENGTHOF(buffer)); in TestSomeCases()
662 prettify(aN).extract(0, 0x7fffffff, buffer, UPRV_LENGTHOF(buffer)); in TestSomeCases()
668 prettify(aT).extract(0, 0x7fffffff, buffer, UPRV_LENGTHOF(buffer)); in TestSomeCases()
675 prettify(aN).extract(0, 0x7fffffff, buffer, UPRV_LENGTHOF(buffer)); in TestSomeCases()
679 prettify(aT).extract(0, 0x7fffffff, buffer, UPRV_LENGTHOF(buffer)); in TestSomeCases()
[all …]
Dstrcase.cpp215 s=UnicodeString(FALSE, beforeLower, UPRV_LENGTHOF(beforeLower)); in TestCaseConversion()
217 if( s.length()!=UPRV_LENGTHOF(lowerRoot) || in TestCaseConversion()
220 … locale)=\"" + s + "\" expected \"" + UnicodeString(FALSE, lowerRoot, UPRV_LENGTHOF(lowerRoot)) + … in TestCaseConversion()
224 s=UnicodeString(FALSE, beforeLower, UPRV_LENGTHOF(beforeLower)); in TestCaseConversion()
226 if( s.length()!=UPRV_LENGTHOF(lowerTurkish) || in TestCaseConversion()
229 …cale)=\"" + s + "\" expected \"" + UnicodeString(FALSE, lowerTurkish, UPRV_LENGTHOF(lowerTurkish))… in TestCaseConversion()
233 s=UnicodeString(FALSE, beforeUpper, UPRV_LENGTHOF(beforeUpper)); in TestCaseConversion()
235 if( s.length()!=UPRV_LENGTHOF(upperRoot) || in TestCaseConversion()
238 … locale)=\"" + s + "\" expected \"" + UnicodeString(FALSE, upperRoot, UPRV_LENGTHOF(upperRoot)) + … in TestCaseConversion()
242 s=UnicodeString(FALSE, beforeUpper, UPRV_LENGTHOF(beforeUpper)); in TestCaseConversion()
[all …]
/external/icu/icu4c/source/tools/genrb/
Dderb.cpp102 argc=u_parseArgs(argc, argv, UPRV_LENGTHOF(options), options); in main()
304 … u_fprintf(out, "%.*s%.*S", (int32_t)(ext - filename), filename, UPRV_LENGTHOF(sp), sp); in main()
406 printString(out, openStr, UPRV_LENGTHOF(openStr)); in printOutAlias()
408 printString(out, closeStr, UPRV_LENGTHOF(closeStr)); in printOutAlias()
412 printString(out, cr, UPRV_LENGTHOF(cr)); in printOutAlias()
448 printString(out, openStr, UPRV_LENGTHOF(openStr)); in printOutBundle()
450 printString(out, closeStr, UPRV_LENGTHOF(closeStr)); in printOutBundle()
455 printString(out, openStr, UPRV_LENGTHOF(openStr)); in printOutBundle()
457 printString(out, closeStr, UPRV_LENGTHOF(closeStr)); in printOutBundle()
463 printString(out, cr, UPRV_LENGTHOF(cr)); in printOutBundle()
[all …]
/external/icu/icu4c/source/common/
Dpluralmap.h90 for (int32_t i = 1; i < UPRV_LENGTHOF(fVariants); ++i) { in PluralMap()
100 for (int32_t i = 0; i < UPRV_LENGTHOF(fVariants); ++i) {
116 for (int32_t i = 1; i < UPRV_LENGTHOF(fVariants); ++i) { in ~PluralMap()
126 for (int32_t i = 1; i < UPRV_LENGTHOF(fVariants); ++i) { in clear()
142 for (; idx < UPRV_LENGTHOF(fVariants); ++idx) { in next()
175 if (index < 0 || index >= UPRV_LENGTHOF(fVariants) || fVariants[index] == NULL) { in get()
242 for (int32_t i = 0; i < UPRV_LENGTHOF(fVariants); ++i) { in equals()
268 if (index < 0 || index >= UPRV_LENGTHOF(fVariants)) { in getMutable()
284 for (int32_t i = 1; i < UPRV_LENGTHOF(fVariants); ++i) { in initializeNew()

12345678910>>...12