/external/icu/icu4c/source/test/cintltst/ |
D | nccbtst.c | 192 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 …]
|
D | cstrcase.c | 49 length=u_strToLower(buffer, UPRV_LENGTHOF(buffer), in TestCaseLower() 50 beforeLower, UPRV_LENGTHOF(beforeLower), in TestCaseLower() 54 length!=(UPRV_LENGTHOF(lowerRoot)) || in TestCaseLower() 69 buffer[UPRV_LENGTHOF(beforeLower)]=0; in TestCaseLower() 71 length=u_strToLower(buffer, UPRV_LENGTHOF(buffer), in TestCaseLower() 76 length!=(UPRV_LENGTHOF(lowerTurkish)) || in TestCaseLower() 90 beforeLower, UPRV_LENGTHOF(beforeLower), in TestCaseLower() 94 length!=(UPRV_LENGTHOF(lowerRoot)) || in TestCaseLower() 106 length=u_strToLower(NULL, UPRV_LENGTHOF(buffer), in TestCaseLower() 107 beforeLower, UPRV_LENGTHOF(beforeLower), in TestCaseLower() [all …]
|
D | custrtrn.c | 152 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 …]
|
D | ncnvtst.c | 148 if(!convertFromU(sampleText, UPRV_LENGTHOF(sampleText), in TestSurrogateBehaviour() 154 if(!convertFromU(sampleText, UPRV_LENGTHOF(sampleText), in TestSurrogateBehaviour() 168 if(!convertFromU(sampleText, UPRV_LENGTHOF(sampleText), in TestSurrogateBehaviour() 171 if(!convertFromU(sampleText, UPRV_LENGTHOF(sampleText), in TestSurrogateBehaviour() 175 if(!convertFromU(sampleText, UPRV_LENGTHOF(sampleText), in TestSurrogateBehaviour() 178 if(!convertFromU(sampleText, UPRV_LENGTHOF(sampleText), in TestSurrogateBehaviour() 194 if(!convertFromU(sampleText, UPRV_LENGTHOF(sampleText), in TestSurrogateBehaviour() 197 if(!convertFromU(sampleText, UPRV_LENGTHOF(sampleText), in TestSurrogateBehaviour() 260 if(!convertFromU(sampleText, UPRV_LENGTHOF(sampleText), in TestSurrogateBehaviour() 263 if(!convertFromU(sampleText, UPRV_LENGTHOF(sampleText), in TestSurrogateBehaviour() [all …]
|
D | utf16tst.c | 61 for(i=0; i<UPRV_LENGTHOF(codeunit); i++){ in TestCodeUnitValues() 99 for(i=0; i<UPRV_LENGTHOF(codepoint); i=(int16_t)(i+2)){ in TestCharLength() 152 for(offset=0; offset<UPRV_LENGTHOF(input); offset++) { in TestGetChar() 153 if(0<offset && offset<UPRV_LENGTHOF(input)-1){ in TestGetChar() 165 UTF16_GET_CHAR_SAFE(input, 0, offset, UPRV_LENGTHOF(input), c, FALSE); in TestGetChar() 170 U16_GET(input, 0, offset, UPRV_LENGTHOF(input), c); in TestGetChar() 175 UTF16_GET_CHAR_SAFE(input, 0, offset, UPRV_LENGTHOF(input), c, TRUE); in TestGetChar() 222 for(offset=0; offset<UPRV_LENGTHOF(input); offset++){ in TestNextPrevChar() 244 UTF16_NEXT_CHAR_SAFE(input, setOffset, UPRV_LENGTHOF(input), c, FALSE); in TestNextPrevChar() 254 U16_NEXT(input, setOffset, UPRV_LENGTHOF(input), c); in TestNextPrevChar() [all …]
|
D | cmsccoll.c | 96 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 …]
|
D | cbididat.c | 380 {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 …]
|
D | cnormtst.c | 193 …length2=unorm_normalize(source, u_strlen(source), mode, 0, result, UPRV_LENGTHOF(result), &status)… in TestNormCases() 200 length2=unorm_normalize(source, -1, mode, 0, result, UPRV_LENGTHOF(result), &status); in TestNormCases() 212 TestNormCases(UNORM_NFD, canonTests, UPRV_LENGTHOF(canonTests)); in TestDecomp() 216 TestNormCases(UNORM_NFKD, compatTests, UPRV_LENGTHOF(compatTests)); in TestCompatDecomp() 220 TestNormCases(UNORM_NFC, canonTests, UPRV_LENGTHOF(canonTests)); in TestCanonDecompCompose() 224 TestNormCases(UNORM_NFKC, compatTests, UPRV_LENGTHOF(compatTests)); in TestCompatDecompCompose() 228 TestNormCases(UNORM_FCD, fcdTests, UPRV_LENGTHOF(fcdTests)); in TestFCD() 478 for (count = 0; count < UPRV_LENGTHOF(canonTests); count ++) in TestQuickCheckStringResult() 500 for (count = 0; count < UPRV_LENGTHOF(compatTests); count ++) in TestQuickCheckStringResult() 582 for(i=0; i<UPRV_LENGTHOF(notNFC); ++i) { in TestIsNormalized() [all …]
|
D | cucdapi.c | 130 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 …]
|
D | cbiditst.c | 737 for(i=0;i<UPRV_LENGTHOF(logicalOrder);i++){ in testReorder() 772 for(i=0;i<UPRV_LENGTHOF(logicalOrder);i++){ in testReorder() 806 for(i=0;i<UPRV_LENGTHOF(logicalOrder);i++){ in testReorder() 837 for(i=0;i<UPRV_LENGTHOF(logicalOrder);i++){ in testReorder() 871 for(i=0;i<UPRV_LENGTHOF(logicalOrder);i++){ in testReorder() 999 for(i=0;i<UPRV_LENGTHOF(logicalOrder);i++){ in testReorderArabicMathSymbols() 1291 #define STRING_TEST_CASE(s) { (s), UPRV_LENGTHOF(s) } 1361 UPRV_LENGTHOF(testCases)); in testGetBaseDirection() 1363 for(i=0; i<UPRV_LENGTHOF(testCases); ++i) { in testGetBaseDirection() 2138 ubidi_setPara(pBidi, multiparaTestString, UPRV_LENGTHOF(multiparaTestString), in testMultipleParagraphs() [all …]
|
D | ncnvfbts.c | 183 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 …]
|
D | utf8tst.c | 104 for(i=0; i<UPRV_LENGTHOF(codeunit); i++){ in TestCodeUnitValues() 147 for(i=0; i<UPRV_LENGTHOF(codepoint); i=(int16_t)(i+2)){ in TestCharLength() 545 for(i=UPRV_LENGTHOF(codePoints)-1, offset=sizeof(input); offset > 0; --i){ in TestNextPrevCharUnsafe() 552 for(i=UPRV_LENGTHOF(codePoints)-1, offset=sizeof(input); offset > 0; --i){ in TestNextPrevCharUnsafe() 611 for(i=0; i<UPRV_LENGTHOF(Nvalue); i++){ in TestFwdBack() 620 for(i=0; i<UPRV_LENGTHOF(Nvalue); i++){ in TestFwdBack() 629 for(i=0; i<UPRV_LENGTHOF(Nvalue); i++){ in TestFwdBack() 637 for(i=0; i<UPRV_LENGTHOF(Nvalue); i++){ in TestFwdBack() 663 for(i=1, offset=0; offset<UPRV_LENGTHOF(input); ++i) { in TestFwdBackUnsafe() 669 for(i=1, offset=0; offset<UPRV_LENGTHOF(input); ++i) { in TestFwdBackUnsafe() [all …]
|
D | reapits.c | 212 u_uastrncpy(pat, "abc*", UPRV_LENGTHOF(pat)); in TestRegexCAPI() 264 u_uastrncpy(pat, "abc*", UPRV_LENGTHOF(pat)); in TestRegexCAPI() 304 u_uastrncpy(testString1, "abcccd", UPRV_LENGTHOF(pat)); in TestRegexCAPI() 305 u_uastrncpy(testString2, "xxxabcccd", UPRV_LENGTHOF(pat)); in TestRegexCAPI() 336 u_uastrncpy(pat, "hello", UPRV_LENGTHOF(pat)); in TestRegexCAPI() 402 u_uastrncpy(text1, "abcccd", UPRV_LENGTHOF(text1)); in TestRegexCAPI() 403 u_uastrncpy(text2, "abcccxd", UPRV_LENGTHOF(text2)); in TestRegexCAPI() 405 u_uastrncpy(pat, "abc*d", UPRV_LENGTHOF(pat)); in TestRegexCAPI() 457 u_uastrncpy(text1, "abcccd", UPRV_LENGTHOF(text1)); in TestRegexCAPI() 458 u_uastrncpy(text2, "abcccxd", UPRV_LENGTHOF(text2)); in TestRegexCAPI() [all …]
|
D | bocu1tst.c | 954 { feff, UPRV_LENGTHOF(feff) }, 955 { ascii, UPRV_LENGTHOF(ascii) }, 956 { crlf, UPRV_LENGTHOF(crlf) }, 957 { nul, UPRV_LENGTHOF(nul) }, 958 { latin, UPRV_LENGTHOF(latin) }, 959 { devanagari, UPRV_LENGTHOF(devanagari) }, 960 { hiragana, UPRV_LENGTHOF(hiragana) }, 961 { unihan, UPRV_LENGTHOF(unihan) }, 962 { hangul, UPRV_LENGTHOF(hangul) }, 963 { surrogates, UPRV_LENGTHOF(surrogates) }, [all …]
|
/external/icu/icu4c/source/test/perf/convperf/ |
D | convperf.cpp | 147 …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/ |
D | ustring.cpp | 114 printUString("iterate forward through: ", input, UPRV_LENGTHOF(input)); in demo_utf_h_macros() 115 for(i=0; i<UPRV_LENGTHOF(input); /* U16_NEXT post-increments */) { in demo_utf_h_macros() 123 U16_NEXT(input, i, UPRV_LENGTHOF(input), c); in demo_utf_h_macros() 131 U16_APPEND(input, i, UPRV_LENGTHOF(input), 0x0062, isError); in demo_utf_h_macros() 133 printUString("iterate backward through: ", input, UPRV_LENGTHOF(input)); in demo_utf_h_macros() 134 for(i=UPRV_LENGTHOF(input); i>0; /* U16_PREV pre-decrements */) { in demo_utf_h_macros() 221 for(i=j=0; j<UPRV_LENGTHOF(buffer) && !isError; /* U16_NEXT post-increments */) { in demoCaseMapInC() 227 U16_APPEND(buffer, j, UPRV_LENGTHOF(buffer), c, isError); in demoCaseMapInC() 232 for(i=j=0; j<UPRV_LENGTHOF(buffer) && !isError; /* U16_NEXT post-increments */) { in demoCaseMapInC() 238 U16_APPEND(buffer, j, UPRV_LENGTHOF(buffer), c, isError); in demoCaseMapInC() [all …]
|
/external/icu/icu4c/source/test/iotest/ |
D | strtst.c | 38 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 …]
|
D | filetst.c | 45 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 …]
|
/external/icu/icu4c/source/test/intltest/ |
D | simpleformattertest.cpp | 171 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 …]
|
D | uts46test.cpp | 151 TestCheckedArrayByteSink sink(buffer, UPRV_LENGTHOF(buffer)); in TestAPI() 218 prettify(result).extract(0, 0x7fffffff, buffer, UPRV_LENGTHOF(buffer)); in TestNotSTD3() 232 prettify(result).extract(0, 0x7fffffff, buffer, UPRV_LENGTHOF(buffer)); in TestNotSTD3() 590 for(i=0; i<UPRV_LENGTHOF(testCases); ++i) { in TestSomeCases() 618 prettify(uN).extract(0, 0x7fffffff, buffer, UPRV_LENGTHOF(buffer)); in TestSomeCases() 636 prettify(uT).extract(0, 0x7fffffff, buffer, UPRV_LENGTHOF(buffer)); in TestSomeCases() 649 prettify(aN).extract(0, 0x7fffffff, buffer, UPRV_LENGTHOF(buffer)); in TestSomeCases() 655 prettify(aT).extract(0, 0x7fffffff, buffer, UPRV_LENGTHOF(buffer)); in TestSomeCases() 662 prettify(aN).extract(0, 0x7fffffff, buffer, UPRV_LENGTHOF(buffer)); in TestSomeCases() 666 prettify(aT).extract(0, 0x7fffffff, buffer, UPRV_LENGTHOF(buffer)); in TestSomeCases() [all …]
|
D | genderinfotest.cpp | 59 …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()
|
D | bytestrietest.cpp | 135 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 …]
|
D | measfmttest.cpp | 1039 UPRV_LENGTHOF(feetAndInches), in TestExamplesInDocs() 1046 UPRV_LENGTHOF(feetAndInches), in TestExamplesInDocs() 1052 UPRV_LENGTHOF(footAndInch), in TestExamplesInDocs() 1058 UPRV_LENGTHOF(footAndInch), in TestExamplesInDocs() 1064 UPRV_LENGTHOF(inchAndFeet), in TestExamplesInDocs() 1152 {t_1m_59_9996s, UPRV_LENGTHOF(t_1m_59_9996s), "1 minute, 59.9996 seconds"}, in TestFormatPeriodEn() 1153 {t_19m, UPRV_LENGTHOF(t_19m), "19 minutes"}, in TestFormatPeriodEn() 1154 {t_1h_23_5s, UPRV_LENGTHOF(t_1h_23_5s), "1 hour, 23.5 seconds"}, in TestFormatPeriodEn() 1155 {t_1h_23_5m, UPRV_LENGTHOF(t_1h_23_5m), "1 hour, 23.5 minutes"}, in TestFormatPeriodEn() 1156 {t_1h_0m_23s, UPRV_LENGTHOF(t_1h_0m_23s), "1 hour, 0 minutes, 23 seconds"}, in TestFormatPeriodEn() [all …]
|
/external/icu/icu4c/source/tools/genrb/ |
D | derb.cpp | 102 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/ |
D | pluralmap.h | 90 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()
|