/external/icu4c/test/cintltst/ |
D | cmsgtst.c | 121 patternlength=u_strlen(testCasePatterns[i]); in MessageFormatTest() 151 patternlength=u_strlen(testCasePatterns[i]); in MessageFormatTest() 180 int32_t patternLength = u_strlen(testCasePatterns[0]); in MessageFormatTest() 196 patternLength = u_strlen(testCasePatterns[i]); in MessageFormatTest() 279 …resultLengthOut=u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &statu… in TestSampleMessageFormat() 285 … u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, str, d); in TestSampleMessageFormat() 305 u_strlen(pattern), in TestSampleMessageFormat() 316 … u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, str, 23); in TestSampleMessageFormat() 335 …resultLengthOut=u_formatMessage( "en_US", pattern, u_strlen(pattern), NULL, resultlength, &status,… in TestSampleMessageFormat() 341 … u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, str, 500.00); in TestSampleMessageFormat() [all …]
|
D | cdtdptst.c | 60 fullFmt= udat_open(UDAT_IGNORE, UDAT_IGNORE,"en_US",NULL,0,pattern, u_strlen(pattern),&status); in TestTwoDigitYearDSTParse() 68 fmt= udat_open(UDAT_IGNORE,UDAT_IGNORE,"en_US", NULL, 0,pattern, u_strlen(pattern), &status); in TestTwoDigitYearDSTParse() 74 d = udat_parse(fmt, s, u_strlen(s), &pos, &status); in TestTwoDigitYearDSTParse() 130 d = udat_parse(f, s, u_strlen(s), &pos, &status); in TestPartialParse994() 166 udat_applyPattern(format, FALSE, pat, u_strlen(pat)); in tryPat994() 168 date = udat_parse(format, str, u_strlen(str), &pos, &status); in tryPat994() 201 format = udat_open(UDAT_IGNORE, UDAT_IGNORE, NULL, NULL, 0,pattern, u_strlen(pattern), &status); in TestRunTogetherPattern985() 210 date2 = udat_parse(format, now, u_strlen(now), &pos, &status); in TestRunTogetherPattern985() 253 cal=ucal_open(tzID, u_strlen(tzID), "cs", UCAL_GREGORIAN, &status); in TestCzechMonths459() 268 d = udat_parse(fmt, juneStr, u_strlen(juneStr), &pos, &status); in TestCzechMonths459() [all …]
|
D | capitst.c | 328 …doAssert((ucol_strcoll(col, source, u_strlen(source), target, u_strlen(target)) == UCOL_LESS), "ab… in TestProperty() 333 …doAssert((ucol_strcoll(col, source, u_strlen(source), target, u_strlen(target)) == UCOL_LESS), "ab… in TestProperty() 339 … doAssert((ucol_strcoll(col, source, u_strlen(source), target, u_strlen(target)) == UCOL_GREATER), in TestProperty() 343 doAssert((ucol_strcoll(col, source, u_strlen(source), target, u_strlen(target)) == UCOL_LESS), in TestProperty() 348 … doAssert((ucol_strcoll(col, source, u_strlen(source), target, u_strlen(target)) == UCOL_GREATER), in TestProperty() 455 …col1 = ucol_openRules(ruleset1, u_strlen(ruleset1), UCOL_DEFAULT, UCOL_DEFAULT_STRENGTH, NULL,&sta… in TestRuleBasedColl() 464 …col2 = ucol_openRules(ruleset2, u_strlen(ruleset2), UCOL_DEFAULT, UCOL_DEFAULT_STRENGTH, NULL, &s… in TestRuleBasedColl() 490 col4=ucol_openRules(rule2, u_strlen(rule2), UCOL_DEFAULT, UCOL_DEFAULT_STRENGTH, NULL, &status); in TestRuleBasedColl() 508 …col1 = ucol_openRules(ruleset1, u_strlen(ruleset1), UCOL_DEFAULT, UCOL_DEFAULT_STRENGTH, NULL, &st… in TestRuleBasedColl() 545 …col1 = ucol_openRules(ruleset1, u_strlen(ruleset1), UCOL_DEFAULT, UCOL_DEFAULT_STRENGTH, NULL, &st… in TestRuleBasedColl() [all …]
|
D | ccurrtst.c | 140 compareResult = ucol_strcoll(c, source, u_strlen(source), target, u_strlen(target)); in currTest() 144 sortklen=ucol_getSortKey(c, source, u_strlen(source), NULL, 0); in currTest() 146 ucol_getSortKey(c, source, u_strlen(source), sortKey1, sortklen+1); in currTest() 148 sortklen=ucol_getSortKey(c, target, u_strlen(target), NULL, 0); in currTest() 150 ucol_getSortKey(c, target, u_strlen(target), sortKey2, sortklen+1); in currTest()
|
D | cdtrgtst.c | 91 udat_applyPattern(df, TRUE, temp, u_strlen(temp)); in Test4029195() 96 d1=udat_parse(df, todayS, u_strlen(todayS), &parsepos, &status); in Test4029195() 161 def = udat_open(UDAT_IGNORE,UDAT_IGNORE,NULL, NULL, 0, pat, u_strlen(pat), &status); in Test4056591() 178 got = udat_parse(def, s, u_strlen(s), 0, &status); in Test4056591() 213 def = udat_open(UDAT_IGNORE,UDAT_IGNORE,NULL,tzID,-1,pattern, u_strlen(pattern),&status); in Test4059917() 226 def = udat_open(UDAT_IGNORE,UDAT_IGNORE,NULL,tzID,-1,pattern, u_strlen(pattern),&status); in Test4059917() 289 …formatter = udat_open(UDAT_IGNORE,UDAT_IGNORE,"en_US",tzID,-1,pattern, u_strlen(pattern), &status); in Test4060212() 291 myDate = udat_parse(formatter, dateString, u_strlen(dateString), &pos, &status); in Test4060212() 302 cal=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_GREGORIAN, &status); in Test4060212() 333 df = udat_open(UDAT_IGNORE,UDAT_IGNORE,NULL,NULL,0,pattern, u_strlen(pattern),&status); in Test4061287() [all …]
|
D | utexttst.c | 101 TEST_ASSERT(len == u_strlen(uString)); in TestAPI() 122 TEST_ASSERT(len == u_strlen(uString)); in TestAPI() 144 c = utext_next32From(uta, u_strlen(uString)); in TestAPI() 158 b = utext_moveIndex32(uta, u_strlen(uString)-1); in TestAPI() 161 TEST_ASSERT(i==u_strlen(uString)); in TestAPI() 166 TEST_ASSERT(i==u_strlen(uString)); in TestAPI() 199 TEST_ASSERT(i == u_strlen(uString)); in TestAPI() 205 TEST_ASSERT(i == u_strlen(uString)); in TestAPI()
|
D | cnumtst.c | 270 d1=unum_parseDouble(cur_def, result, u_strlen(result), &parsepos, &status); in TestNumberFormat() 324 d1=unum_parseDoubleCurrency(cur_def, result, u_strlen(result), &parsepos, temp2, &status); in TestNumberFormat() 347 resultlength=u_strlen(temp1); in TestNumberFormat() 367 d1=unum_parseDouble(cur_def, temp1, u_strlen(temp1), &parsepos, &status); in TestNumberFormat() 399 l1=unum_parse(per_fr, result, u_strlen(result), &parsepos, &status); in TestNumberFormat() 416 pattern=unum_open(UNUM_IGNORE,temp1, u_strlen(temp1), NULL, NULL,&status); in TestNumberFormat() 466 cur_frpattern=unum_open(UNUM_IGNORE,result, u_strlen(result), "fr_FR",NULL, &status); in TestNumberFormat() 504 unum_applyPattern(cur_frpattern, FALSE, result, u_strlen(result),NULL,NULL); in TestNumberFormat() 590 unum_setTextAttribute(cur_def, UNUM_NEGATIVE_SUFFIX, temp, u_strlen(temp), &status); in TestNumberFormat() 606 unum_setTextAttribute(cur_def, UNUM_NEGATIVE_SUFFIX, temp, u_strlen(temp), &status); in TestNumberFormat() [all …]
|
D | citertst.c | 100 ucol_setOffset(titer, u_strlen(pattern), &status); in TestBug672() 176 ucol_setOffset(titer, u_strlen(pattern), &status); in TestBug672Normalize() 252 iter=ucol_openElements(en_us, source, u_strlen(source), &status); in TestUnicodeChar() 319 iter=ucol_openElements(th_th, source, u_strlen(source), &status); in TestNormalizedUnicodeChar() 434 iter=ucol_openElements(coll, test1, u_strlen(test1), &status); in TestPrevious() 449 c1 = ucol_openRules(rule, u_strlen(rule), UCOL_OFF, UCOL_DEFAULT_STRENGTH, NULL, &status); in TestPrevious() 461 iter=ucol_openElements(c1, source, u_strlen(source), &status); in TestPrevious() 473 c2 = ucol_openRules(rule, u_strlen(rule), UCOL_OFF, UCOL_DEFAULT_STRENGTH, NULL, &status); in TestPrevious() 482 iter=ucol_openElements(c2, source, u_strlen(source), &status); in TestPrevious() 493 c3 = ucol_openRules(rule, u_strlen(rule), UCOL_DEFAULT, UCOL_DEFAULT_STRENGTH,NULL, &status); in TestPrevious() [all …]
|
D | idnatest.c | 80 int32_t expectedLen = (expected != NULL) ? u_strlen(expected) : 0; in testAPI() 87 tSrcLen = u_strlen(src); in testAPI() 145 destLen = func(src,u_strlen(src),dest,destLen+1,options, &parseError, &status); in testAPI() 167 …destLen = func(src,u_strlen(src),dest,destLen+1,options | UIDNA_ALLOW_UNASSIGNED, &parseError, &st… in testAPI() 211 …destLen = func(src,u_strlen(src),dest,destLen+1,options | UIDNA_USE_STD3_RULES, &parseError, &stat… in testAPI() 614 u_strncat(source,unicodeIn[i], u_strlen(unicodeIn[i])); in TestCompare() 619 srcLen = u_strlen(src); in TestCompare() 624 testCompareWithSrc(src,srcLen,buf,u_strlen(buf),testName, func,TRUE); in TestCompare() 628 testCompareWithSrc(src,srcLen,uni1,u_strlen(uni1),testName, func,FALSE); in TestCompare() 630 testCompareWithSrc(src,srcLen,uni0,u_strlen(uni0),testName, func,FALSE); in TestCompare() [all …]
|
D | cnmdptst.c | 76 fmt= unum_open(UNUM_IGNORE,upat, u_strlen(upat), "en_US",NULL, &status); in TestPatterns() 129 fmt =unum_open(UNUM_IGNORE,pat, u_strlen(pat), "en_US",NULL, &status); in TestQuotes() 158 fmt =unum_open(UNUM_IGNORE,pat, u_strlen(pat), "en_US",NULL, &status); in TestQuotes() 253 fmt=unum_open(UNUM_IGNORE,upat, u_strlen(upat), "en_US",NULL, &status); in TestExponential() 258 lneed= u_strlen(upat) + 1; in TestExponential() 283 a=unum_parseDouble(fmt, str, u_strlen(str), &ppos, &status); in TestExponential() 284 if (ppos== u_strlen(str)) { in TestExponential() 313 a=unum_parseDouble(fmt, str, u_strlen(str), &ppos, &status); in TestExponential() 314 if (ppos== u_strlen(str)) { in TestExponential() 349 fmt = unum_open(UNUM_IGNORE,pattern, u_strlen(pattern), "en_US",NULL, &status); in TestCurrencySign() [all …]
|
D | cmsccoll.c | 89 coll = ucol_openRules(temp, u_strlen(temp), UCOL_OFF, UCOL_DEFAULT_STRENGTH, NULL,&status); in IncompleteCntTest() 100 iter = ucol_openElements(coll, t2, u_strlen(t2), &status); in IncompleteCntTest() 115 coll = ucol_openRules(temp, u_strlen(temp), UCOL_OFF, UCOL_DEFAULT_STRENGTH,NULL, &status); in IncompleteCntTest() 127 iter = ucol_openElements(coll, t2, u_strlen(t2), &status); in IncompleteCntTest() 342 sizem = u_strlen(m); 463 source[u_strlen(p)] = 0x62; in testSecondary() 464 source[u_strlen(p)+1] = 0; in testSecondary() 468 target[u_strlen(q)] = 0x61; in testSecondary() 469 target[u_strlen(q)+1] = 0; in testSecondary() 499 source[u_strlen(p)] = 0xE0; in testTertiary() [all …]
|
D | cbiapts.c | 153 word = ubrk_open(UBRK_WORD, "en_US", text, u_strlen(text), &status); in TestBreakIteratorCAPI() 164 sentence = ubrk_open(UBRK_SENTENCE, "en_US", text, u_strlen(text), &status); in TestBreakIteratorCAPI() 173 line = ubrk_open(UBRK_LINE, "en_US", text, u_strlen(text), &status); in TestBreakIteratorCAPI() 182 character = ubrk_open(UBRK_CHARACTER, "en_US", text, u_strlen(text), &status); in TestBreakIteratorCAPI() 191 bogus = ubrk_open((UBreakIteratorType)5, "en_US", text, u_strlen(text), &status); in TestBreakIteratorCAPI() 310 b = ubrk_open(UBRK_WORD, "fr_FR", text, u_strlen(text), &status); in TestBreakIteratorCAPI() 373 someIterators[0] = ubrk_open(UBRK_WORD, "en_US", text, u_strlen(text), &status); in TestBreakIteratorSafeClone() 379 someIterators[1] = ubrk_open(UBRK_WORD, "th_TH", text, u_strlen(text), &status); in TestBreakIteratorSafeClone()
|
D | custrtst.c | 116 …if( u_strlen(dataTable[0][0])!= u_strlen(dataTable[0][3]) || u_strlen(dataTable[0][0]) == u_strlen… in TestStringFunctions() 205 k=u_strlen(dataTable[i][j]); in TestStringFunctions() 216 k=u_strlen(dataTable[i][j]); in TestStringFunctions() 228 k=u_strlen(dataTable[i][j]); in TestStringFunctions() 269 int32_t dataSize = (int32_t)(u_strlen(dataTable[i][j]) + 1); in TestStringFunctions() 448 len1=u_strlen(strings[i]); in TestStringFunctions() 449 len2=u_strlen(strings[i+1]); in TestStringFunctions() 585 if (u_strcspn(testString, f) != u_strlen(testString)) { in TestStringSearching() 588 if (u_strcspn(testString, fg) != u_strlen(testString)) { in TestStringSearching() 591 if (u_strcspn(testString, gf) != u_strlen(testString)) { in TestStringSearching() [all …]
|
D | cnormtst.c | 153 neededLen= unorm_normalize(source, u_strlen(source), UNORM_NFD, 0, NULL, 0, &status); in TestDecomp() 159 unorm_normalize(source, u_strlen(source), UNORM_NFD, 0, result, resLen, &status); in TestDecomp() 182 neededLen= unorm_normalize(source, u_strlen(source), UNORM_NFKD, 0, NULL, 0, &status); in TestCompatDecomp() 188 unorm_normalize(source, u_strlen(source), UNORM_NFKD, 0, result, resLen, &status); in TestCompatDecomp() 211 neededLen= unorm_normalize(source, u_strlen(source), UNORM_NFC, 0, NULL, 0, &status); in TestCanonDecompCompose() 217 unorm_normalize(source, u_strlen(source), UNORM_NFC, 0, result, resLen, &status); in TestCanonDecompCompose() 240 neededLen= unorm_normalize(source, u_strlen(source), UNORM_NFKC, 0, NULL, 0, &status); in TestCompatDecompCompose() 246 unorm_normalize(source, u_strlen(source), UNORM_NFKC, 0, result, resLen, &status); in TestCompatDecompCompose() 520 if (unorm_quickCheck(d, u_strlen(d), UNORM_NFD, &error) != in TestQuickCheckStringResult() 527 if (unorm_quickCheck(c, u_strlen(c), UNORM_NFC, &error) == in TestQuickCheckStringResult() [all …]
|
D | ccaltst.c | 199 caldef=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); in TestCalendar() 204 caldef2=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); in TestCalendar() 209 calfr=ucal_open(tzID, u_strlen(tzID), "fr_FR", UCAL_TRADITIONAL, &status); in TestCalendar() 213 calit=ucal_open(tzID, u_strlen(tzID), "it_IT", UCAL_TRADITIONAL, &status); in TestCalendar() 399 caldef=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); in TestGetSetDateAPI() 400 caldef2=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); in TestGetSetDateAPI() 589 cal=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); in TestFieldGetSet() 738 cal=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_GREGORIAN, &status);; in TestAddRollExtensive() 829 cal=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); in TestAddRollExtensive() 898 cal=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_GREGORIAN, &status);; in TestGetLimits() [all …]
|
D | utransts.c | 76 return u_strlen(x->text); in Xlength() 619 limit = u_strlen(buf); in _expect() 640 pos.limit = pos.contextLimit = u_strlen(buf); in _expect() 662 limit = u_strlen(from); in _expect() 685 pos.limit = pos.contextLimit = u_strlen(from); in _expect()
|
/external/icu4c/test/iotest/ |
D | trnstst.c | 193 len=fread(ubuf, sizeof(UChar), u_strlen(compare), infile); in TestTranslitFileOut() 195 if(len != u_strlen(compare)) in TestTranslitFileOut() 197 log_err("Wanted %d UChars from file, got %d\n", u_strlen(compare), len); in TestTranslitFileOut() 201 if(u_strlen(compare) != u_strlen(ubuf)) in TestTranslitFileOut() 203 log_err("Wanted %d UChars from file, but u_strlen() returns %d\n", u_strlen(compare), len); in TestTranslitFileOut() 290 if(u_strlen(compare) != u_strlen(ubuf)) in TestTranslitStringOut() 292 …_err("Wanted %d UChars from file, but u_strlen() returns %d\n", u_strlen(compare), u_strlen(ubuf)); in TestTranslitStringOut()
|
D | filetst.c | 467 readSize = u_strlen(buffer); in TestfgetsBuffers() 469 …log_err("Buffer is the wrong size. Got %d Expected %d\n", u_strlen(buffer), expectedSize*repetitio… in TestfgetsBuffers() 512 readSize = u_strlen(buffer); in TestfgetsBuffers() 514 …log_err("Buffer is the wrong size. Got %d Expected %d\n", u_strlen(buffer), expectedSize*repetitio… in TestfgetsBuffers() 545 readSize = u_strlen(buffer); in TestfgetsBuffers() 547 log_err("Buffer is the wrong size. Got %d Expected %d\n", u_strlen(buffer), 1); in TestfgetsBuffers() 632 if (buffer[u_strlen(buffer)+1] != 0xBEEF) { in TestfgetsLineCount() 683 u_file_write(testUStr[lineIdx], u_strlen(testUStr[lineIdx]), myFile); in TestfgetsNewLineHandling() 702 if (buffer[u_strlen(buffer)+1] != 0xBEEF) { in TestfgetsNewLineHandling() 761 if (buffer[u_strlen(buffer)+1] != 0xBEEF) { in TestLineCount() [all …]
|
/external/icu4c/test/intltest/ |
D | srchtest.cpp | 64 rules.append(extrarules, u_strlen(extrarules)); in StringSearchTest() 70 rules.append(extrarules, u_strlen(extrarules)); in StringSearchTest() 740 text.setTo(temp, u_strlen(temp)); in TestBreakIterator() 743 pattern.setTo(temp, u_strlen(temp)); in TestBreakIterator() 780 text.setTo(temp, u_strlen(temp)); in TestBreakIterator() 782 pattern.setTo(temp, u_strlen(temp)); in TestBreakIterator() 873 text.setTo(temp, u_strlen(temp)); in TestOverlap() 876 pattern.setTo(temp, u_strlen(temp)); in TestOverlap() 917 text.setTo(temp, u_strlen(temp)); in TestCollator() 920 pattern.setTo(temp, u_strlen(temp)); in TestCollator() [all …]
|
D | testidna.cpp | 458 int32_t expectedLen = (expected != NULL) ? u_strlen(expected) : 0; in testAPI() 465 tSrcLen = u_strlen(src); in testAPI() 541 destLen = func(src,u_strlen(src),dest,destLen+1,options, &parseError, &status); in testAPI() 568 …destLen = func(src,u_strlen(src),dest,destLen+1,options | UIDNA_ALLOW_UNASSIGNED, &parseError, &st… in testAPI() 624 …destLen = func(src,u_strlen(src),dest,destLen+1,options | UIDNA_USE_STD3_RULES, &parseError, &stat… in testAPI() 807 int32_t srcLen = u_strlen(src); //subtract null in testCompare() 812 testCompare(src,srcLen,buf,u_strlen(buf),testName, func,TRUE); in testCompare() 881 int32_t srcLen = u_strlen(start); 1000 int32_t srcLen = u_strlen(src); in testChaining() 1206 int32_t srcLen = u_strlen(src); //subtract null in testRootLabelSeparator() [all …]
|
/external/icu4c/samples/citer/ |
D | citer.cpp | 50 UCharCharacterIterator iter(testText, u_strlen(testText)); in TestUChariter() 76 if (iter.startIndex() != 0 || iter.endIndex() != u_strlen(testText)) { in TestUChariter() 83 if (c == CharacterIterator::DONE && i != u_strlen(testText)) { in TestUChariter() 117 StringCharacterIterator iter(testText, u_strlen(testText)); in TestStringiter() 140 if (iter.startIndex() != 0 || iter.endIndex() != u_strlen(testText)) { in TestStringiter()
|
/external/icu4c/samples/cal/ |
D | cal.c | 453 lens[i] = u_strlen(days[i]); in print_month() 458 pad = width - u_strlen(s); in print_month() 502 pad = lens[current] - u_strlen(s); in print_month() 576 lens[i] = u_strlen(days[i]); in print_year() 584 pad = 2 * width + MARGIN_WIDTH - u_strlen(s); in print_year() 601 pad = width - u_strlen(months[i]); in print_year() 605 pad = width - u_strlen(months[i + 1]); in print_year() 673 pad = lens[left_current] - u_strlen(s); in print_year() 721 pad = lens[right_current] - u_strlen(s); in print_year()
|
/external/icu4c/i18n/ |
D | ucoleitr.cpp | 85 ci->endp = ci->string + u_strlen(ci->string); in ucol_reset() 137 u_strlen(elems->iteratordata_.string); in ucol_previous() 231 ci->endp = ci->string + u_strlen(ci->string); in ucol_setOffset()
|
/external/icu4c/common/ |
D | uchriter.cpp | 25 : CharacterIterator(textPtr != 0 ? (length>=0 ? length : u_strlen(textPtr)) : 0), in UCharCharacterIterator() 33 : CharacterIterator(textPtr != 0 ? (length>=0 ? length : u_strlen(textPtr)) : 0, position), in UCharCharacterIterator() 43 …: CharacterIterator(textPtr != 0 ? (length>=0 ? length : u_strlen(textPtr)) : 0, textBegin, textEn… in UCharCharacterIterator()
|
/external/icu4c/tools/genrb/ |
D | derb.c | 374 int len = u_strlen(string); in quotedString() 415 len = u_strlen(str); in printString() 587 printString(out, converter, string, (int32_t)(u_strlen(string))); in printOutBundle() 612 printString(out, converter, num, u_strlen(num)); in printOutBundle() 673 printString(out, converter, num, u_strlen(num)); in printOutBundle() 677 printString(out, converter, num, u_strlen(num)); in printOutBundle()
|