Home
last modified time | relevance | path

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

/external/icu4c/common/
Dunisetspan.cpp166 int32_t length8=0; in getUTF8Length() local
167 u_strToUTF8(NULL, 0, &length8, s, length, &errorCode); in getUTF8Length()
169 return length8; in getUTF8Length()
181 int32_t length8=0; in appendUTF8() local
182 u_strToUTF8((char *)t, capacity, &length8, s, length, &errorCode); in appendUTF8()
184 return length8; in appendUTF8()
241 int32_t length8=getUTF8Length(s16, length16); in UnicodeSetStringSpan() local
242 utf8Length+=length8; in UnicodeSetStringSpan()
243 if(length8>maxLength8) { in UnicodeSetStringSpan()
244 maxLength8=length8; in UnicodeSetStringSpan()
[all …]
Dunistr.cpp799 int32_t length8; in toUTF8() local
801 u_strToUTF8WithSub(target, capacity, &length8, in toUTF8()
806 return length8; in toUTF8()
848 int32_t length8 = 0; in toUTF8() local
850 u_strToUTF8WithSub(utf8, capacity, &length8, in toUTF8()
856 utf8 = (char *)uprv_malloc(length8); in toUTF8()
860 u_strToUTF8WithSub(utf8, length8, &length8, in toUTF8()
870 sink.Append(utf8, length8); in toUTF8()
Ducnv.c481 int32_t cloneSize, length8; in ucnv_setSubstString() local
487 length8 = ucnv_fromUChars(clone, chars, (int32_t)sizeof(chars), s, length, err); in ucnv_setSubstString()
521 length8 = length * U_SIZEOF_UCHAR; in ucnv_setSubstString()
528 if (length8 > UCNV_MAX_SUBCHAR_LEN) { in ucnv_setSubstString()
543 if (length8 == 0) { in ucnv_setSubstString()
546 uprv_memcpy(cnv->subChars, subChars, length8); in ucnv_setSubstString()
548 cnv->subCharLen = (int8_t)length8; in ucnv_setSubstString()
/external/icu4c/test/cintltst/
Ducnvseltst.c449 int32_t length8, length16; in TestSelector() local
451 s = text_nextString(&text, &length8); in TestSelector()
457 s, length8, in TestSelector()
461 s, length8, in TestSelector()
466 verifyResult(ucnvsel_selectForUTF8(sel_rt, s, length8, &status), manual_rt); in TestSelector()
467 verifyResult(ucnvsel_selectForUTF8(sel_fb, s, length8, &status), manual_fb); in TestSelector()
472 u_strFromUTF8(utf16, LENGTHOF(utf16), &length16, s, length8, &status); in TestSelector()
Dcreststn.c2828 int32_t length16, length8, i16, i8; in tres_getString() local
2849 length8 = (int32_t)sizeof(buffer8); in tres_getString()
2851 s8 = ures_getUTF8StringByIndex(resB, index, p8, &length8, forceCopy, status); in tres_getString()
2853 s8 = ures_getUTF8StringByKey(resB, key, p8, &length8, forceCopy, status); in tres_getString()
2855 s8 = ures_getUTF8String(resB, p8, &length8, forceCopy, status); in tres_getString()
2863 p8 = (char *)malloc(++length8); in tres_getString()
2868 s8 = ures_getUTF8StringByIndex(resB, index, p8, &length8, forceCopy, status); in tres_getString()
2870 s8 = ures_getUTF8StringByKey(resB, key, p8, &length8, forceCopy, status); in tres_getString()
2872 s8 = ures_getUTF8String(resB, p8, &length8, forceCopy, status); in tres_getString()
2889 if((p8 != buffer8 || length8 < sizeof(buffer8)) && s8[length8] != 0) { in tres_getString()
[all …]
/external/icu4c/test/intltest/
Dusettest.cpp2297 int32_t length8=0; in appendUTF8() local
2298 u_strToUTF8(t, capacity, &length8, s, length, &errorCode); in appendUTF8()
2300 return length8; in appendUTF8()
2323 int32_t length8, utf8Count=0; in UnicodeSetWithStrings() local
2330 utf8Lengths[stringsLength]=length8= in UnicodeSetWithStrings()
2333 if(length8==0) { in UnicodeSetWithStrings()
2336 s8+=length8; in UnicodeSetWithStrings()
2651 int32_t length8; in containsSpanUTF8() local
2653 while((s8=iter.nextUTF8(length8))!=NULL) { in containsSpanUTF8()
2654 if(length8!=0 && length8<=(length-start) && 0==memcmp(s+start, s8, length8)) { in containsSpanUTF8()
[all …]
Dustrtest.cpp254 int32_t length8=from16.extract(0, 0x7fffffff, buffer, (uint32_t)sizeof(buffer)); in TestBasicManipulation() local
255 if(length8!=((int32_t)sizeof(utf8)-1) || 0!=uprv_memcmp(buffer, utf8, sizeof(utf8))) { in TestBasicManipulation()
258 length8=from16.extract(1, 2, buffer, (uint32_t)sizeof(buffer)); in TestBasicManipulation()
259 if(length8!=4 || buffer[length8]!=0 || 0!=uprv_memcmp(buffer, utf8+1, length8)) { in TestBasicManipulation()