Home
last modified time | relevance | path

Searched refs:u_strlen (Results 1 - 25 of 250) sorted by relevance

12345678910

/third_party/icu/icu4c/source/test/cintltst/
H A Dcmsgtst.c127 patternlength=u_strlen(testCasePatterns[i]); in MessageFormatTest()
158 patternlength=u_strlen(testCasePatterns[i]); in MessageFormatTest()
187 int32_t patternLength = u_strlen(testCasePatterns[0]); in MessageFormatTest()
205 patternLength = ((i & 1) == 0) ? u_strlen(testCasePatterns[i]) : -1; in MessageFormatTest()
298 resultLengthOut=u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, str, d); in TestSampleMessageFormat()
304 u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, str, d); in TestSampleMessageFormat()
324 u_strlen(pattern), in TestSampleMessageFormat()
335 u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, str, 23); in TestSampleMessageFormat()
354 resultLengthOut=u_formatMessage( "en_US", pattern, u_strlen(pattern), NULL, resultlength, &status, str, 500.00); in TestSampleMessageFormat()
360 u_formatMessage( "en_US", pattern, u_strlen(patter in TestSampleMessageFormat()
[all...]
H A Dcapitst.c329 doStrcoll(col, source, u_strlen(source), target, u_strlen(target), UCOL_LESS, "ab < abc comparison failed"); in TestProperty()
334 doStrcoll(col, source, u_strlen(source), target, u_strlen(target), UCOL_LESS, "ab < AB comparison failed"); in TestProperty()
339 doStrcoll(col, source, u_strlen(source), target, u_strlen(target), UCOL_GREATER, "black-bird > blackbird comparison failed"); in TestProperty()
344 doStrcoll(col, source, u_strlen(source), target, u_strlen(target), UCOL_LESS, "black bird < black-bird comparison failed"); in TestProperty()
349 doStrcoll(col, source, u_strlen(source), target, u_strlen(targe in TestProperty()
[all...]
H A Dccurrtst.c140 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()
H A Dcitertst.c102 ucol_setOffset(titer, u_strlen(pattern), &status); in TestBug672()
178 ucol_setOffset(titer, u_strlen(pattern), &status); in TestBug672Normalize()
254 iter=ucol_openElements(en_us, source, u_strlen(source), &status); in TestUnicodeChar()
321 iter=ucol_openElements(th_th, source, u_strlen(source), &status); in TestNormalizedUnicodeChar()
436 iter=ucol_openElements(coll, test1, u_strlen(test1), &status); in TestPrevious()
451 c1 = ucol_openRules(rule, u_strlen(rule), UCOL_OFF, UCOL_DEFAULT_STRENGTH, NULL, &status); in TestPrevious()
463 iter=ucol_openElements(c1, source, u_strlen(source), &status); in TestPrevious()
475 c2 = ucol_openRules(rule, u_strlen(rule), UCOL_OFF, UCOL_DEFAULT_STRENGTH, NULL, &status); in TestPrevious()
484 iter=ucol_openElements(c2, source, u_strlen(source), &status); in TestPrevious()
495 c3 = ucol_openRules(rule, u_strlen(rul in TestPrevious()
[all...]
H A Dcdtdptst.c66 fullFmt= udat_open(UDAT_PATTERN, UDAT_PATTERN,"en_US",NULL,0,pattern, u_strlen(pattern),&status); in TestTwoDigitYearDSTParse()
75 fmt= udat_open(UDAT_PATTERN,UDAT_PATTERN,"en_US", NULL, 0,pattern, u_strlen(pattern), &status); in TestTwoDigitYearDSTParse()
81 d = udat_parse(fmt, s, u_strlen(s), &pos, &status); in TestTwoDigitYearDSTParse()
138 d = udat_parse(f, s, u_strlen(s), &pos, &status); in TestPartialParse994()
174 udat_applyPattern(format, false, pat, u_strlen(pat)); in tryPat994()
176 date = udat_parse(format, str, u_strlen(str), &pos, &status); in tryPat994()
209 format = udat_open(UDAT_PATTERN, UDAT_PATTERN, NULL, NULL, 0,pattern, u_strlen(pattern), &status); in TestRunTogetherPattern985()
219 date2 = udat_parse(format, now, u_strlen(now), &pos, &status); in TestRunTogetherPattern985()
262 cal=ucal_open(tzID, u_strlen(tzID), "cs", UCAL_GREGORIAN, &status); in TestCzechMonths459()
277 d = udat_parse(fmt, juneStr, u_strlen(juneSt in TestCzechMonths459()
[all...]
H A Dutexttst.c110 TEST_ASSERT(len == u_strlen(uString)); in TestAPI()
131 TEST_ASSERT(len == u_strlen(uString)); in TestAPI()
153 c = utext_next32From(uta, u_strlen(uString)); in TestAPI()
167 b = utext_moveIndex32(uta, u_strlen(uString)-1); in TestAPI()
170 TEST_ASSERT(i==u_strlen(uString)); in TestAPI()
175 TEST_ASSERT(i==u_strlen(uString)); in TestAPI()
234 TEST_ASSERT(i == u_strlen(uString)); in TestAPI()
240 TEST_ASSERT(i == u_strlen(uString)); in TestAPI()
254 TEST_ASSERT(i == u_strlen(uString2Ptr)); in TestAPI()
H A Dcdtrgtst.c96 udat_applyPattern(df, true, temp, u_strlen(temp)); in Test4029195()
101 d1=udat_parse(df, todayS, u_strlen(todayS), &parsepos, &status); in Test4029195()
167 def = udat_open(UDAT_PATTERN,UDAT_PATTERN,NULL, NULL, 0, pat, u_strlen(pat), &status); in Test4056591()
185 got = udat_parse(def, s, u_strlen(s), 0, &status); in Test4056591()
219 def = udat_open(UDAT_PATTERN,UDAT_PATTERN,NULL,tzID,-1,pattern, u_strlen(pattern),&status); in Test4059917()
232 def = udat_open(UDAT_PATTERN,UDAT_PATTERN,NULL,tzID,-1,pattern, u_strlen(pattern),&status); in Test4059917()
293 formatter = udat_open(UDAT_PATTERN,UDAT_PATTERN,"en_US",tzID,-1,pattern, u_strlen(pattern), &status); in Test4060212()
295 myDate = udat_parse(formatter, dateString, u_strlen(dateString), &pos, &status); in Test4060212()
307 cal=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_GREGORIAN, &status); in Test4060212()
338 df = udat_open(UDAT_PATTERN,UDAT_PATTERN,NULL,NULL,0,pattern, u_strlen(patter in Test4061287()
[all...]
H A Didnatest.c82 int32_t expectedLen = (expected != NULL) ? u_strlen(expected) : 0; in testAPI()
89 tSrcLen = u_strlen(src); in testAPI()
147 destLen = func(src,u_strlen(src),dest,destLen+1,options, &parseError, &status); in testAPI()
169 destLen = func(src,u_strlen(src),dest,destLen+1,options | UIDNA_ALLOW_UNASSIGNED, &parseError, &status); in testAPI()
213 destLen = func(src,u_strlen(src),dest,destLen+1,options | UIDNA_USE_STD3_RULES, &parseError, &status); in testAPI()
616 u_strncat(source,unicodeIn[i], u_strlen(unicodeIn[i])); in TestCompare()
621 srcLen = u_strlen(src); in TestCompare()
626 testCompareWithSrc(src,srcLen,buf,u_strlen(buf),testName, func,true); in TestCompare()
630 testCompareWithSrc(src,srcLen,uni1,u_strlen(uni1),testName, func,false); in TestCompare()
632 testCompareWithSrc(src,srcLen,uni0,u_strlen(uni in TestCompare()
[all...]
H A Dcnmdptst.c81 fmt= unum_open(UNUM_IGNORE,upat, u_strlen(upat), "en_US",NULL, &status); in TestPatterns()
134 fmt =unum_open(UNUM_IGNORE,pat, u_strlen(pat), "en_US",NULL, &status); in TestQuotes()
163 fmt =unum_open(UNUM_IGNORE,pat, u_strlen(pat), "en_US",NULL, &status); in TestQuotes()
258 fmt=unum_open(UNUM_IGNORE,upat, u_strlen(upat), "en_US",NULL, &status); in TestExponential()
265 lneed= u_strlen(upat) + 1; in TestExponential()
290 a=unum_parseDouble(fmt, str, u_strlen(str), &ppos, &status); in TestExponential()
291 if (ppos== u_strlen(str)) { in TestExponential()
320 a=unum_parseDouble(fmt, str, u_strlen(str), &ppos, &status); in TestExponential()
321 if (ppos== u_strlen(str)) { in TestExponential()
356 fmt = unum_open(UNUM_IGNORE,pattern, u_strlen(patter in TestCurrencySign()
[all...]
H A Dcmsccoll.c94 coll = ucol_openRules(temp, u_strlen(temp), UCOL_OFF, UCOL_DEFAULT_STRENGTH, NULL,&status); in IncompleteCntTest()
105 iter = ucol_openElements(coll, t2, u_strlen(t2), &status); in IncompleteCntTest()
120 coll = ucol_openRules(temp, u_strlen(temp), UCOL_OFF, UCOL_DEFAULT_STRENGTH,NULL, &status); in IncompleteCntTest()
132 iter = ucol_openElements(coll, t2, u_strlen(t2), &status); in IncompleteCntTest()
347 sizem = u_strlen(m);
670 iter = ucol_openElements(coll, t[u]->NFD, u_strlen(t[u]->NFD), &status); in TestComposeDecompose()
677 ucol_setText(iter, t[u]->NFC, u_strlen(t[u]->NFC), &status); in TestComposeDecompose()
680 ucol_setText(iter, t[u]->NFD, u_strlen(t[u]->NFD), &status); in TestComposeDecompose()
885 myCollation = ucol_openRules(gRules, u_strlen(gRules), UCOL_OFF, UCOL_TERTIARY,NULL, &status); in TestCase()
900 iter=ucol_openElements(myCollation, testCase[i], u_strlen(testCas in TestCase()
[all...]
H A Dcdattst.c244 d1=udat_parse(def, temp, u_strlen(temp), &parsepos, &status); in TestDateFormat()
262 d1=udat_parse(def, temp, u_strlen(temp), NULL, &status); in TestDateFormat()
276 fr_pat=udat_open(UDAT_PATTERN, UDAT_PATTERN,"fr_FR",NULL,0,temp, u_strlen(temp), &status); in TestDateFormat()
288 udat_applyPattern(def1, false, temp, u_strlen(temp)); in TestDateFormat()
491 } else if ( u_strstr(strDate, *monthPtnPtr) == NULL || dtpatLen != u_strlen(strDate) ) { in TestRelativeDateFormat()
498 } else if ( u_strstr(strTime, minutesPatn) == NULL || dtpatLen != u_strlen(strTime) ) { in TestRelativeDateFormat()
505 } else if ( u_strstr(strDateTime, strDate) == NULL || u_strstr(strDateTime, strTime) == NULL || dtpatLen != u_strlen(strDateTime) ) { in TestRelativeDateFormat()
508 udat_applyPatternRelative(fmtRelDateTime, strDate, u_strlen(strDate), newTimePatn, u_strlen(newTimePatn), &status); in TestRelativeDateFormat()
521 udat_applyPatternRelative(fmtRelDateTime, strDate, u_strlen(strDat in TestRelativeDateFormat()
[all...]
H A Dcustrtst.c106 /*Tests for u_strcat(),u_strcmp(), u_strlen(), u_strcpy(),u_strncat(),u_strncmp(),u_strncpy, u_uastrcpy(),u_austrcpy(), u_uastrncpy(); */
117 log_verbose("Testing u_strlen()\n"); in TestStringFunctions()
118 if( u_strlen(dataTable[0][0])!= u_strlen(dataTable[0][3]) || u_strlen(dataTable[0][0]) == u_strlen(dataTable[0][2])) in TestStringFunctions()
119 log_err("There is an error in u_strlen()"); in TestStringFunctions()
207 k=u_strlen(dataTable[i][j]); in TestStringFunctions()
218 k=u_strlen(dataTable[i][j]); in TestStringFunctions()
230 k=u_strlen(dataTabl in TestStringFunctions()
[all...]
H A Dcbiditransformtst.c177 srcLen = u_strlen(src); in testAutoDirection()
187 ubidi_writeReverse(expected, u_strlen(expected), temp, STR_CAPACITY, in testAutoDirection()
204 uint32_t i = 0, j, length = u_strlen(str); in shapeDigits()
218 uint32_t i = 0, j, length = u_strlen(expected), index; in shapeLetters()
H A Dcbiapts.c180 word = ubrk_open(UBRK_WORD, "en_US", text, u_strlen(text), &status); in TestBreakIteratorCAPI()
191 sentence = ubrk_open(UBRK_SENTENCE, "en_US", text, u_strlen(text), &status); in TestBreakIteratorCAPI()
200 line = ubrk_open(UBRK_LINE, "en_US", text, u_strlen(text), &status); in TestBreakIteratorCAPI()
209 character = ubrk_open(UBRK_CHARACTER, "en_US", text, u_strlen(text), &status); in TestBreakIteratorCAPI()
218 bogus = ubrk_open((UBreakIteratorType)5, "en_US", text, u_strlen(text), &status); in TestBreakIteratorCAPI()
340 b = ubrk_open(UBRK_WORD, "fr_FR", text, u_strlen(text), &status); in TestBreakIteratorCAPI()
403 someIterators[0] = ubrk_open(UBRK_WORD, "en_US", text, u_strlen(text), &status); in TestBreakIteratorSafeClone()
409 someIterators[1] = ubrk_open(UBRK_WORD, "th_TH", text, u_strlen(text), &status); in TestBreakIteratorSafeClone()
535 someIterators[0] = ubrk_open(UBRK_WORD, "en_US", text, u_strlen(text), &status); in TestBreakIteratorClone()
541 someIterators[1] = ubrk_open(UBRK_WORD, "th_TH", text, u_strlen(tex in TestBreakIteratorClone()
[all...]
/third_party/icu/icu4c/source/test/iotest/
H A Dtrnstst.c196 len= (int)fread(ubuf, sizeof(UChar), u_strlen(compare), infile); in TestTranslitFileOut()
198 if(len != u_strlen(compare)) in TestTranslitFileOut()
200 log_err("Wanted %d UChars from file, got %d\n", u_strlen(compare), len); in TestTranslitFileOut()
204 if(u_strlen(compare) != u_strlen(ubuf)) in TestTranslitFileOut()
206 log_err("Wanted %d UChars from file, but u_strlen() returns %d\n", u_strlen(compare), len); in TestTranslitFileOut()
293 if(u_strlen(compare) != u_strlen(ubuf)) in TestTranslitStringOut()
295 log_err("Wanted %d UChars from file, but u_strlen() return in TestTranslitStringOut()
[all...]
H A Dfiletst.c512 readSize = u_strlen(buffer); in TestfgetsBuffers()
514 log_err("Buffer is the wrong size. Got %d Expected %d\n", u_strlen(buffer), expectedSize*repetitions); in TestfgetsBuffers()
557 readSize = u_strlen(buffer); in TestfgetsBuffers()
559 log_err("Buffer is the wrong size. Got %d Expected %d\n", u_strlen(buffer), expectedSize*repetitions); in TestfgetsBuffers()
590 readSize = u_strlen(buffer); in TestfgetsBuffers()
592 log_err("Buffer is the wrong size. Got %d Expected %d\n", u_strlen(buffer), 1); in TestfgetsBuffers()
677 if (buffer[u_strlen(buffer)+1] != 0xBEEF) { in TestfgetsLineCount()
728 u_file_write(testUStr[lineIdx], u_strlen(testUStr[lineIdx]), myFile); in TestfgetsNewLineHandling()
747 if (buffer[u_strlen(buffer)+1] != 0xBEEF) { in TestfgetsNewLineHandling()
806 if (buffer[u_strlen(buffe in TestLineCount()
[all...]
/third_party/icu/icu4c/source/test/intltest/
H A Dsrchtest.cpp73 rules.append(extrarules, u_strlen(extrarules)); in StringSearchTest()
79 rules.append(extrarules, u_strlen(extrarules)); in StringSearchTest()
876 text.setTo(temp, u_strlen(temp)); in TestBreakIterator()
879 pattern.setTo(temp, u_strlen(temp)); in TestBreakIterator()
916 text.setTo(temp, u_strlen(temp)); in TestBreakIterator()
918 pattern.setTo(temp, u_strlen(temp)); in TestBreakIterator()
1009 text.setTo(temp, u_strlen(temp)); in TestOverlap()
1012 pattern.setTo(temp, u_strlen(temp)); in TestOverlap()
1053 text.setTo(temp, u_strlen(temp)); in TestCollator()
1056 pattern.setTo(temp, u_strlen(tem in TestCollator()
[all...]
/third_party/icu/icu4c/source/samples/citer/
H A Dciter.cpp61 UCharCharacterIterator iter(testText, u_strlen(testText)); in TestUChariter()
87 if (iter.startIndex() != 0 || iter.endIndex() != u_strlen(testText)) { in TestUChariter()
94 if (c == CharacterIterator::DONE && i != u_strlen(testText)) { in TestUChariter()
128 StringCharacterIterator iter(testText, u_strlen(testText)); in TestStringiter()
151 if (iter.startIndex() != 0 || iter.endIndex() != u_strlen(testText)) { in TestStringiter()
/third_party/skia/third_party/externals/icu/source/samples/citer/
H A Dciter.cpp61 UCharCharacterIterator iter(testText, u_strlen(testText)); in TestUChariter()
87 if (iter.startIndex() != 0 || iter.endIndex() != u_strlen(testText)) { in TestUChariter()
94 if (c == CharacterIterator::DONE && i != u_strlen(testText)) { in TestUChariter()
128 StringCharacterIterator iter(testText, u_strlen(testText)); in TestStringiter()
151 if (iter.startIndex() != 0 || iter.endIndex() != u_strlen(testText)) { in TestStringiter()
/third_party/icu/icu4c/source/samples/cal/
H A Dcal.c457 lens[i] = u_strlen(days[i]); in print_month()
462 pad = width - u_strlen(s); in print_month()
506 pad = lens[current] - u_strlen(s); in print_month()
580 lens[i] = u_strlen(days[i]); in print_year()
588 pad = 2 * width + MARGIN_WIDTH - u_strlen(s); in print_year()
605 pad = width - u_strlen(months[i]); in print_year()
609 pad = width - u_strlen(months[i + 1]); in print_year()
677 pad = lens[left_current] - u_strlen(s); in print_year()
725 pad = lens[right_current] - u_strlen(s); in print_year()
/third_party/skia/third_party/externals/icu/source/samples/cal/
H A Dcal.c457 lens[i] = u_strlen(days[i]); in print_month()
462 pad = width - u_strlen(s); in print_month()
506 pad = lens[current] - u_strlen(s); in print_month()
580 lens[i] = u_strlen(days[i]); in print_year()
588 pad = 2 * width + MARGIN_WIDTH - u_strlen(s); in print_year()
605 pad = width - u_strlen(months[i]); in print_year()
609 pad = width - u_strlen(months[i + 1]); in print_year()
677 pad = lens[left_current] - u_strlen(s); in print_year()
725 pad = lens[right_current] - u_strlen(s); in print_year()
/third_party/icu/icu4c/source/common/
H A Duchriter.cpp30 : CharacterIterator(textPtr != 0 ? (length>=0 ? length : u_strlen(textPtr)) : 0), in UCharCharacterIterator()
38 : CharacterIterator(textPtr != 0 ? (length>=0 ? length : u_strlen(textPtr)) : 0, position), in UCharCharacterIterator()
48 : CharacterIterator(textPtr != 0 ? (length>=0 ? length : u_strlen(textPtr)) : 0, textBegin, textEnd, position), in UCharCharacterIterator()
H A Dustr_wcs.cpp92 srcLength = u_strlen(pSrc); in _strToWCS()
254 srcLength = u_strlen(src); in u_strToWCS()
509 srcLength = u_strlen((const UChar *)src); in u_strFromWCS()
/third_party/node/deps/icu-small/source/common/
H A Dustr_wcs.cpp92 srcLength = u_strlen(pSrc); in _strToWCS()
254 srcLength = u_strlen(src); in u_strToWCS()
509 srcLength = u_strlen((const char16_t *)src); in u_strFromWCS()
H A Duchriter.cpp30 : CharacterIterator(textPtr != 0 ? (length>=0 ? length : u_strlen(textPtr)) : 0), in UCharCharacterIterator()
38 : CharacterIterator(textPtr != 0 ? (length>=0 ? length : u_strlen(textPtr)) : 0, position), in UCharCharacterIterator()
48 : CharacterIterator(textPtr != 0 ? (length>=0 ? length : u_strlen(textPtr)) : 0, textBegin, textEnd, position), in UCharCharacterIterator()

Completed in 24 milliseconds

12345678910