/external/icu/icu4c/source/common/ |
D | unisetspan.cpp | 168 int32_t length8=0; in getUTF8Length() local 169 u_strToUTF8(NULL, 0, &length8, s, length, &errorCode); in getUTF8Length() 171 return length8; in getUTF8Length() 183 int32_t length8=0; in appendUTF8() local 184 u_strToUTF8((char *)t, capacity, &length8, s, length, &errorCode); in appendUTF8() 186 return length8; in appendUTF8() 243 int32_t length8=getUTF8Length(s16, length16); in UnicodeSetStringSpan() local 244 utf8Length+=length8; in UnicodeSetStringSpan() 245 if(length8>maxLength8) { in UnicodeSetStringSpan() 246 maxLength8=length8; in UnicodeSetStringSpan() [all …]
|
D | unistr.cpp | 902 int32_t length8; in toUTF8() local 904 u_strToUTF8WithSub(target, capacity, &length8, in toUTF8() 909 return length8; in toUTF8() 951 int32_t length8 = 0; in toUTF8() local 953 u_strToUTF8WithSub(utf8, capacity, &length8, in toUTF8() 959 utf8 = (char *)uprv_malloc(length8); in toUTF8() 963 u_strToUTF8WithSub(utf8, length8, &length8, in toUTF8() 973 sink.Append(utf8, length8); in toUTF8()
|
D | ucnv.c | 481 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/icu/icu4c/source/test/cintltst/ |
D | ucnvseltst.c | 447 int32_t length8, length16; in TestSelector() local 449 s = text_nextString(&text, &length8); in TestSelector() 455 s, length8, in TestSelector() 459 s, length8, in TestSelector() 464 verifyResult(ucnvsel_selectForUTF8(sel_rt, s, length8, &status), manual_rt); in TestSelector() 465 verifyResult(ucnvsel_selectForUTF8(sel_fb, s, length8, &status), manual_fb); in TestSelector() 470 u_strFromUTF8(utf16, UPRV_LENGTHOF(utf16), &length16, s, length8, &status); in TestSelector()
|
D | creststn.c | 2874 int32_t length16, length8, i16, i8; in tres_getString() local 2895 length8 = (int32_t)sizeof(buffer8); in tres_getString() 2897 s8 = ures_getUTF8StringByIndex(resB, idx, p8, &length8, forceCopy, status); in tres_getString() 2899 s8 = ures_getUTF8StringByKey(resB, key, p8, &length8, forceCopy, status); in tres_getString() 2901 s8 = ures_getUTF8String(resB, p8, &length8, forceCopy, status); in tres_getString() 2909 p8 = (char *)malloc(++length8); in tres_getString() 2914 s8 = ures_getUTF8StringByIndex(resB, idx, p8, &length8, forceCopy, status); in tres_getString() 2916 s8 = ures_getUTF8StringByKey(resB, key, p8, &length8, forceCopy, status); in tres_getString() 2918 s8 = ures_getUTF8String(resB, p8, &length8, forceCopy, status); in tres_getString() 2935 if((p8 != buffer8 || length8 < sizeof(buffer8)) && s8[length8] != 0) { in tres_getString() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | usettest.cpp | 2350 int32_t length8=0; in appendUTF8() local 2351 u_strToUTF8(t, capacity, &length8, s, length, &errorCode); in appendUTF8() 2353 return length8; in appendUTF8() 2376 int32_t length8, utf8Count=0; in UnicodeSetWithStrings() local 2383 utf8Lengths[stringsLength]=length8= in UnicodeSetWithStrings() 2386 if(length8==0) { in UnicodeSetWithStrings() 2389 s8+=length8; in UnicodeSetWithStrings() 2695 int32_t length8; in containsSpanUTF8() local 2697 while((s8=iter.nextUTF8(length8))!=NULL) { in containsSpanUTF8() 2698 if(length8!=0 && length8<=(length-start) && 0==memcmp(s+start, s8, length8)) { in containsSpanUTF8() [all …]
|
D | ustrtest.cpp | 241 int32_t length8=from16.extract(0, 0x7fffffff, buffer, (uint32_t)sizeof(buffer)); in TestBasicManipulation() local 242 if(length8!=((int32_t)sizeof(utf8)-1) || 0!=uprv_memcmp(buffer, utf8, sizeof(utf8))) { in TestBasicManipulation() 245 length8=from16.extract(1, 2, buffer, (uint32_t)sizeof(buffer)); in TestBasicManipulation() 246 if(length8!=4 || buffer[length8]!=0 || 0!=uprv_memcmp(buffer, utf8+1, length8)) { in TestBasicManipulation()
|
/external/icu/icu4c/source/test/perf/collperf2/ |
D | collperf2.cpp | 1363 int32_t length8; in getData8FromData16() local 1364 u_strToUTF8(NULL, 0, &length8, s16, length16, &status); in getData8FromData16() 1370 int32_t capacity8 = length8 + 1; // plus terminal NULL in getData8FromData16()
|