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

12345

/external/icu/icu4c/source/test/iotest/
H A Dtrnstst.c193 len=fread(ubuf, sizeof(UChar), u_strlen(compare), infile);
195 if(len != u_strlen(compare))
197 log_err("Wanted %d UChars from file, got %d\n", u_strlen(compare), len);
201 if(u_strlen(compare) != u_strlen(ubuf))
203 log_err("Wanted %d UChars from file, but u_strlen() returns %d\n", u_strlen(compare), len);
290 if(u_strlen(compare) != u_strlen(ubuf))
292 log_err("Wanted %d UChars from file, but u_strlen() return
[all...]
H A Dfiletst.c480 readSize = u_strlen(buffer);
482 log_err("Buffer is the wrong size. Got %d Expected %d\n", u_strlen(buffer), expectedSize*repetitions);
525 readSize = u_strlen(buffer);
527 log_err("Buffer is the wrong size. Got %d Expected %d\n", u_strlen(buffer), expectedSize*repetitions);
558 readSize = u_strlen(buffer);
560 log_err("Buffer is the wrong size. Got %d Expected %d\n", u_strlen(buffer), 1);
645 if (buffer[u_strlen(buffer)+1] != 0xBEEF) {
696 u_file_write(testUStr[lineIdx], u_strlen(testUStr[lineIdx]), myFile);
715 if (buffer[u_strlen(buffer)+1] != 0xBEEF) {
774 if (buffer[u_strlen(buffe
[all...]
/external/icu/icu4c/source/test/cintltst/
H A Dccurrtst.c140 compareResult = ucol_strcoll(c, source, u_strlen(source), target, u_strlen(target));
144 sortklen=ucol_getSortKey(c, source, u_strlen(source), NULL, 0);
146 ucol_getSortKey(c, source, u_strlen(source), sortKey1, sortklen+1);
148 sortklen=ucol_getSortKey(c, target, u_strlen(target), NULL, 0);
150 ucol_getSortKey(c, target, u_strlen(target), sortKey2, sortklen+1);
H A Dutexttst.c102 TEST_ASSERT(len == u_strlen(uString));
123 TEST_ASSERT(len == u_strlen(uString));
145 c = utext_next32From(uta, u_strlen(uString));
159 b = utext_moveIndex32(uta, u_strlen(uString)-1);
162 TEST_ASSERT(i==u_strlen(uString));
167 TEST_ASSERT(i==u_strlen(uString));
226 TEST_ASSERT(i == u_strlen(uString));
232 TEST_ASSERT(i == u_strlen(uString));
246 TEST_ASSERT(i == u_strlen(uString2Ptr));
H A Dcmsgtst.c124 patternlength=u_strlen(testCasePatterns[i]);
155 patternlength=u_strlen(testCasePatterns[i]);
184 int32_t patternLength = u_strlen(testCasePatterns[0]);
200 patternLength = u_strlen(testCasePatterns[i]);
291 resultLengthOut=u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, str, d);
297 u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, str, d);
317 u_strlen(pattern),
328 u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, str, 23);
347 resultLengthOut=u_formatMessage( "en_US", pattern, u_strlen(pattern), NULL, resultlength, &status, str, 500.00);
353 u_formatMessage( "en_US", pattern, u_strlen(patter
[all...]
H A Dcdtdptst.c62 fullFmt= udat_open(UDAT_PATTERN, UDAT_PATTERN,"en_US",NULL,0,pattern, u_strlen(pattern),&status);
71 fmt= udat_open(UDAT_PATTERN,UDAT_PATTERN,"en_US", NULL, 0,pattern, u_strlen(pattern), &status);
77 d = udat_parse(fmt, s, u_strlen(s), &pos, &status);
134 d = udat_parse(f, s, u_strlen(s), &pos, &status);
170 udat_applyPattern(format, FALSE, pat, u_strlen(pat));
172 date = udat_parse(format, str, u_strlen(str), &pos, &status);
205 format = udat_open(UDAT_PATTERN, UDAT_PATTERN, NULL, NULL, 0,pattern, u_strlen(pattern), &status);
214 date2 = udat_parse(format, now, u_strlen(now), &pos, &status);
257 cal=ucal_open(tzID, u_strlen(tzID), "cs", UCAL_GREGORIAN, &status);
272 d = udat_parse(fmt, juneStr, u_strlen(juneSt
[all...]
H A Dcapitst.c323 doStrcoll(col, source, u_strlen(source), target, u_strlen(target), UCOL_LESS, "ab < abc comparison failed");
328 doStrcoll(col, source, u_strlen(source), target, u_strlen(target), UCOL_LESS, "ab < AB comparison failed");
333 doStrcoll(col, source, u_strlen(source), target, u_strlen(target), UCOL_GREATER, "black-bird > blackbird comparison failed");
338 doStrcoll(col, source, u_strlen(source), target, u_strlen(target), UCOL_LESS, "black bird < black-bird comparison failed");
343 doStrcoll(col, source, u_strlen(source), target, u_strlen(targe
[all...]
H A Dcitertst.c98 ucol_setOffset(titer, u_strlen(pattern), &status);
174 ucol_setOffset(titer, u_strlen(pattern), &status);
250 iter=ucol_openElements(en_us, source, u_strlen(source), &status);
317 iter=ucol_openElements(th_th, source, u_strlen(source), &status);
432 iter=ucol_openElements(coll, test1, u_strlen(test1), &status);
447 c1 = ucol_openRules(rule, u_strlen(rule), UCOL_OFF, UCOL_DEFAULT_STRENGTH, NULL, &status);
459 iter=ucol_openElements(c1, source, u_strlen(source), &status);
471 c2 = ucol_openRules(rule, u_strlen(rule), UCOL_OFF, UCOL_DEFAULT_STRENGTH, NULL, &status);
480 iter=ucol_openElements(c2, source, u_strlen(source), &status);
491 c3 = ucol_openRules(rule, u_strlen(rul
[all...]
H A Dcdtrgtst.c92 udat_applyPattern(df, TRUE, temp, u_strlen(temp));
97 d1=udat_parse(df, todayS, u_strlen(todayS), &parsepos, &status);
163 def = udat_open(UDAT_PATTERN,UDAT_PATTERN,NULL, NULL, 0, pat, u_strlen(pat), &status);
180 got = udat_parse(def, s, u_strlen(s), 0, &status);
214 def = udat_open(UDAT_PATTERN,UDAT_PATTERN,NULL,tzID,-1,pattern, u_strlen(pattern),&status);
227 def = udat_open(UDAT_PATTERN,UDAT_PATTERN,NULL,tzID,-1,pattern, u_strlen(pattern),&status);
288 formatter = udat_open(UDAT_PATTERN,UDAT_PATTERN,"en_US",tzID,-1,pattern, u_strlen(pattern), &status);
290 myDate = udat_parse(formatter, dateString, u_strlen(dateString), &pos, &status);
302 cal=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_GREGORIAN, &status);
333 df = udat_open(UDAT_PATTERN,UDAT_PATTERN,NULL,NULL,0,pattern, u_strlen(patter
[all...]
H A Dcnmdptst.c78 fmt= unum_open(UNUM_IGNORE,upat, u_strlen(upat), "en_US",NULL, &status);
131 fmt =unum_open(UNUM_IGNORE,pat, u_strlen(pat), "en_US",NULL, &status);
160 fmt =unum_open(UNUM_IGNORE,pat, u_strlen(pat), "en_US",NULL, &status);
255 fmt=unum_open(UNUM_IGNORE,upat, u_strlen(upat), "en_US",NULL, &status);
260 lneed= u_strlen(upat) + 1;
285 a=unum_parseDouble(fmt, str, u_strlen(str), &ppos, &status);
286 if (ppos== u_strlen(str)) {
315 a=unum_parseDouble(fmt, str, u_strlen(str), &ppos, &status);
316 if (ppos== u_strlen(str)) {
351 fmt = unum_open(UNUM_IGNORE,pattern, u_strlen(patter
[all...]
H A Didnatest.c79 int32_t expectedLen = (expected != NULL) ? u_strlen(expected) : 0;
86 tSrcLen = u_strlen(src);
144 destLen = func(src,u_strlen(src),dest,destLen+1,options, &parseError, &status);
166 destLen = func(src,u_strlen(src),dest,destLen+1,options | UIDNA_ALLOW_UNASSIGNED, &parseError, &status);
210 destLen = func(src,u_strlen(src),dest,destLen+1,options | UIDNA_USE_STD3_RULES, &parseError, &status);
613 u_strncat(source,unicodeIn[i], u_strlen(unicodeIn[i]));
618 srcLen = u_strlen(src);
623 testCompareWithSrc(src,srcLen,buf,u_strlen(buf),testName, func,TRUE);
627 testCompareWithSrc(src,srcLen,uni1,u_strlen(uni1),testName, func,FALSE);
629 testCompareWithSrc(src,srcLen,uni0,u_strlen(uni
[all...]
H A Dcnumtst.c323 d1=unum_parseDouble(cur_def, result, u_strlen(result), &parsepos, &status);
328 log_err("parse of '%s' failed. Parsepos=%d. The error is : %s\n", aescstrdup(result,u_strlen(result)),parsepos, myErrorName(status));
376 d1=unum_parseDoubleCurrency(cur_def, result, u_strlen(result), &parsepos, temp2, &status);
378 log_err("parseDoubleCurrency '%s' failed. The error is : %s\n", aescstrdup(result, u_strlen(result)), myErrorName(status));
400 resultlength=u_strlen(temp1);
426 d1=unum_parseDouble(cur_def, temp1, u_strlen(temp1), &parsepos, &status);
458 l1=unum_parse(per_fr, result, u_strlen(result), &parsepos, &status);
475 pattern=unum_open(UNUM_IGNORE,temp1, u_strlen(temp1), NULL, NULL,&status);
525 cur_frpattern=unum_open(UNUM_IGNORE,result, u_strlen(result), "fr_FR",NULL, &status);
563 unum_applyPattern(cur_frpattern, FALSE, result, u_strlen(resul
[all...]
H A Dcdattst.c230 d1=udat_parse(def, temp, u_strlen(temp), &parsepos, &status);
248 d1=udat_parse(def, temp, u_strlen(temp), NULL, &status);
262 fr_pat=udat_open(UDAT_PATTERN, UDAT_PATTERN,"fr_FR",NULL,0,temp, u_strlen(temp), &status);
274 udat_applyPattern(def1, FALSE, temp, u_strlen(temp));
477 } else if ( u_strstr(strDate, *monthPtnPtr) == NULL || dtpatLen != u_strlen(strDate) ) {
484 } else if ( u_strstr(strTime, minutesPatn) == NULL || dtpatLen != u_strlen(strTime) ) {
491 } else if ( u_strstr(strDateTime, strDate) == NULL || u_strstr(strDateTime, strTime) == NULL || dtpatLen != u_strlen(strDateTime) ) {
494 udat_applyPatternRelative(fmtRelDateTime, strDate, u_strlen(strDate), newTimePatn, u_strlen(newTimePatn), &status);
507 udat_applyPatternRelative(fmtRelDateTime, strDate, u_strlen(strDat
[all...]
/external/icu/icu4c/source/i18n/
H A Dcurrunit.cpp23 if (_isoCode && u_strlen(_isoCode)==3) {
/external/icu/icu4c/source/samples/citer/
H A Dciter.cpp50 UCharCharacterIterator iter(testText, u_strlen(testText));
76 if (iter.startIndex() != 0 || iter.endIndex() != u_strlen(testText)) {
83 if (c == CharacterIterator::DONE && i != u_strlen(testText)) {
117 StringCharacterIterator iter(testText, u_strlen(testText));
140 if (iter.startIndex() != 0 || iter.endIndex() != u_strlen(testText)) {
/external/icu/icu4c/source/common/
H A Dures_cnv.c43 length=u_strlen(myPath);
H A Ducat.c71 *len = u_strlen(s);
H A Duchriter.cpp28 : CharacterIterator(textPtr != 0 ? (length>=0 ? length : u_strlen(textPtr)) : 0),
36 : CharacterIterator(textPtr != 0 ? (length>=0 ? length : u_strlen(textPtr)) : 0, position),
46 : CharacterIterator(textPtr != 0 ? (length>=0 ? length : u_strlen(textPtr)) : 0, textBegin, textEnd, position),
/external/icu/icu4c/source/samples/cal/
H A Duprint.c40 sourceLen = u_strlen(s);
H A Dcal.c453 lens[i] = u_strlen(days[i]);
458 pad = width - u_strlen(s);
502 pad = lens[current] - u_strlen(s);
576 lens[i] = u_strlen(days[i]);
584 pad = 2 * width + MARGIN_WIDTH - u_strlen(s);
601 pad = width - u_strlen(months[i]);
605 pad = width - u_strlen(months[i + 1]);
673 pad = lens[left_current] - u_strlen(s);
721 pad = lens[right_current] - u_strlen(s);
/external/icu/icu4c/source/samples/date/
H A Duprint.c41 sourceLen = u_strlen(s);
/external/icu/icu4c/source/test/intltest/
H A Dsrchtest.cpp70 rules.append(extrarules, u_strlen(extrarules));
76 rules.append(extrarules, u_strlen(extrarules));
873 text.setTo(temp, u_strlen(temp));
876 pattern.setTo(temp, u_strlen(temp));
913 text.setTo(temp, u_strlen(temp));
915 pattern.setTo(temp, u_strlen(temp));
1006 text.setTo(temp, u_strlen(temp));
1009 pattern.setTo(temp, u_strlen(temp));
1050 text.setTo(temp, u_strlen(temp));
1053 pattern.setTo(temp, u_strlen(tem
[all...]
H A Dsfwdchit.cpp46 fLen = len==-1 ? u_strlen(s) : len;
/external/icu/icu4c/source/samples/numfmt/
H A Dcapi.c46 a = unum_parseDouble(fmt, str, u_strlen(str), NULL, &status);
/external/icu/icu4c/source/io/
H A Dsscanf.c113 inStr.str.fLimit = buffer + u_strlen(buffer);

Completed in 272 milliseconds

12345