Home
last modified time | relevance | path

Searched refs:length8 (Results 1 – 8 of 8) sorted by relevance

/external/icu/icu4c/source/common/
Dunisetspan.cpp170 int32_t length8=0; in getUTF8Length() local
171 u_strToUTF8(NULL, 0, &length8, s, length, &errorCode); in getUTF8Length()
173 return length8; in getUTF8Length()
185 int32_t length8=0; in appendUTF8() local
186 u_strToUTF8((char *)t, capacity, &length8, s, length, &errorCode); in appendUTF8()
188 return length8; in appendUTF8()
245 int32_t length8=getUTF8Length(s16, length16); in UnicodeSetStringSpan() local
246 utf8Length+=length8; in UnicodeSetStringSpan()
247 if(length8>maxLength8) { in UnicodeSetStringSpan()
248 maxLength8=length8; in UnicodeSetStringSpan()
[all …]
Dunistr.cpp931 int32_t length8; in toUTF8() local
933 u_strToUTF8WithSub(target, capacity, &length8, in toUTF8()
938 return length8; in toUTF8()
980 int32_t length8 = 0; in toUTF8() local
982 u_strToUTF8WithSub(utf8, capacity, &length8, in toUTF8()
988 utf8 = (char *)uprv_malloc(length8); in toUTF8()
992 u_strToUTF8WithSub(utf8, length8, &length8, in toUTF8()
1002 sink.Append(utf8, length8); in toUTF8()
Ducnv.cpp483 int32_t cloneSize, length8; in ucnv_setSubstString() local
489 length8 = ucnv_fromUChars(clone, chars, (int32_t)sizeof(chars), s, length, err); in ucnv_setSubstString()
523 length8 = length * U_SIZEOF_UCHAR; in ucnv_setSubstString()
530 if (length8 > UCNV_MAX_SUBCHAR_LEN) { in ucnv_setSubstString()
545 if (length8 == 0) { in ucnv_setSubstString()
548 uprv_memcpy(cnv->subChars, subChars, length8); in ucnv_setSubstString()
550 cnv->subCharLen = (int8_t)length8; in ucnv_setSubstString()
/external/icu/icu4c/source/test/cintltst/
Ducnvseltst.c450 int32_t length8, length16; in TestSelector() local
452 s = text_nextString(&text, &length8); in TestSelector()
458 s, length8, in TestSelector()
462 s, length8, in TestSelector()
467 verifyResult(ucnvsel_selectForUTF8(sel_rt, s, length8, &status), manual_rt); in TestSelector()
468 verifyResult(ucnvsel_selectForUTF8(sel_fb, s, length8, &status), manual_fb); in TestSelector()
473 u_strFromUTF8(utf16, UPRV_LENGTHOF(utf16), &length16, s, length8, &status); in TestSelector()
Dcreststn.c2879 int32_t length16, length8, i16, i8; in tres_getString() local
2900 length8 = (int32_t)sizeof(buffer8); in tres_getString()
2902 s8 = ures_getUTF8StringByIndex(resB, idx, p8, &length8, forceCopy, status); in tres_getString()
2904 s8 = ures_getUTF8StringByKey(resB, key, p8, &length8, forceCopy, status); in tres_getString()
2906 s8 = ures_getUTF8String(resB, p8, &length8, forceCopy, status); in tres_getString()
2914 p8 = (char *)malloc(++length8); in tres_getString()
2919 s8 = ures_getUTF8StringByIndex(resB, idx, p8, &length8, forceCopy, status); in tres_getString()
2921 s8 = ures_getUTF8StringByKey(resB, key, p8, &length8, forceCopy, status); in tres_getString()
2923 s8 = ures_getUTF8String(resB, p8, &length8, forceCopy, status); in tres_getString()
2940 if((p8 != buffer8 || length8 < sizeof(buffer8)) && s8[length8] != 0) { in tres_getString()
[all …]
/external/icu/icu4c/source/test/intltest/
Dusettest.cpp2358 int32_t length8=0; in appendUTF8() local
2359 u_strToUTF8(t, capacity, &length8, s, length, &errorCode); in appendUTF8()
2361 return length8; in appendUTF8()
2384 int32_t length8, utf8Count=0; in UnicodeSetWithStrings() local
2391 utf8Lengths[stringsLength]=length8= in UnicodeSetWithStrings()
2394 if(length8==0) { in UnicodeSetWithStrings()
2397 s8+=length8; in UnicodeSetWithStrings()
2703 int32_t length8; in containsSpanUTF8() local
2705 while((s8=iter.nextUTF8(length8))!=NULL) { in containsSpanUTF8()
2706 if(length8!=0 && length8<=(length-start) && 0==memcmp(s+start, s8, length8)) { in containsSpanUTF8()
[all …]
Dustrtest.cpp249 int32_t length8=from16.extract(0, 0x7fffffff, buffer, (uint32_t)sizeof(buffer)); in TestBasicManipulation() local
250 if(length8!=((int32_t)sizeof(utf8)-1) || 0!=uprv_memcmp(buffer, utf8, sizeof(utf8))) { in TestBasicManipulation()
253 length8=from16.extract(1, 2, buffer, (uint32_t)sizeof(buffer)); in TestBasicManipulation()
254 if(length8!=4 || buffer[length8]!=0 || 0!=uprv_memcmp(buffer, utf8+1, length8)) { in TestBasicManipulation()
/external/icu/icu4c/source/test/perf/collperf2/
Dcollperf2.cpp1367 int32_t length8; in getData8FromData16() local
1368 u_strToUTF8(NULL, 0, &length8, s16, length16, &status); in getData8FromData16()
1374 int32_t capacity8 = length8 + 1; // plus terminal NULL in getData8FromData16()