Home
last modified time | relevance | path

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

/third_party/node/deps/icu-small/source/common/
Dunisetspan.cpp170 int32_t length8=0; in getUTF8Length() local
171 u_strToUTF8(nullptr, 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()
248 int32_t length8=getUTF8Length(s16, length16); in UnicodeSetStringSpan() local
249 utf8Length+=length8; in UnicodeSetStringSpan()
250 if(length8>maxLength8) { in UnicodeSetStringSpan()
251 maxLength8=length8; in UnicodeSetStringSpan()
[all …]
Dunistr.cpp973 int32_t length8; in toUTF8() local
975 u_strToUTF8WithSub(target, capacity, &length8, in toUTF8()
980 return length8; in toUTF8()
1022 int32_t length8 = 0; in toUTF8() local
1024 u_strToUTF8WithSub(utf8, capacity, &length8, in toUTF8()
1030 utf8 = (char *)uprv_malloc(length8); in toUTF8()
1034 u_strToUTF8WithSub(utf8, length8, &length8, in toUTF8()
1044 sink.Append(utf8, length8); in toUTF8()
Ducnv.cpp490 int32_t cloneSize, length8; in ucnv_setSubstString() local
496 length8 = ucnv_fromUChars(clone, chars, (int32_t)sizeof(chars), s, length, err); in ucnv_setSubstString()
530 length8 = length * U_SIZEOF_UCHAR; in ucnv_setSubstString()
537 if (length8 > UCNV_MAX_SUBCHAR_LEN) { in ucnv_setSubstString()
552 if (length8 == 0) { in ucnv_setSubstString()
555 uprv_memcpy(cnv->subChars, subChars, length8); in ucnv_setSubstString()
557 cnv->subCharLen = (int8_t)length8; in ucnv_setSubstString()
/third_party/skia/third_party/externals/icu/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()
248 int32_t length8=getUTF8Length(s16, length16); in UnicodeSetStringSpan() local
249 utf8Length+=length8; in UnicodeSetStringSpan()
250 if(length8>maxLength8) { in UnicodeSetStringSpan()
251 maxLength8=length8; in UnicodeSetStringSpan()
[all …]
Dunistr.cpp930 int32_t length8; in toUTF8() local
932 u_strToUTF8WithSub(target, capacity, &length8, in toUTF8()
937 return length8; in toUTF8()
979 int32_t length8 = 0; in toUTF8() local
981 u_strToUTF8WithSub(utf8, capacity, &length8, in toUTF8()
987 utf8 = (char *)uprv_malloc(length8); in toUTF8()
991 u_strToUTF8WithSub(utf8, length8, &length8, in toUTF8()
1001 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()
/third_party/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()
248 int32_t length8=getUTF8Length(s16, length16); in UnicodeSetStringSpan() local
249 utf8Length+=length8; in UnicodeSetStringSpan()
250 if(length8>maxLength8) { in UnicodeSetStringSpan()
251 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.cpp490 int32_t cloneSize, length8; in ucnv_setSubstString() local
496 length8 = ucnv_fromUChars(clone, chars, (int32_t)sizeof(chars), s, length, err); in ucnv_setSubstString()
530 length8 = length * U_SIZEOF_UCHAR; in ucnv_setSubstString()
537 if (length8 > UCNV_MAX_SUBCHAR_LEN) { in ucnv_setSubstString()
552 if (length8 == 0) { in ucnv_setSubstString()
555 uprv_memcpy(cnv->subChars, subChars, length8); in ucnv_setSubstString()
557 cnv->subCharLen = (int8_t)length8; in ucnv_setSubstString()
/third_party/icu/icu4c/source/test/cintltst/
Ducnvseltst.c451 int32_t length8, length16; in TestSelector() local
453 s = text_nextString(&text, &length8); in TestSelector()
459 s, length8, in TestSelector()
463 s, length8, in TestSelector()
468 verifyResult(ucnvsel_selectForUTF8(sel_rt, s, length8, &status), manual_rt); in TestSelector()
469 verifyResult(ucnvsel_selectForUTF8(sel_fb, s, length8, &status), manual_fb); in TestSelector()
474 u_strFromUTF8(utf16, UPRV_LENGTHOF(utf16), &length16, s, length8, &status); in TestSelector()
Dcreststn.c2914 int32_t length16, length8, i16, i8; in tres_getString() local
2935 length8 = (int32_t)sizeof(buffer8); in tres_getString()
2937 s8 = ures_getUTF8StringByIndex(resB, idx, p8, &length8, forceCopy, status); in tres_getString()
2939 s8 = ures_getUTF8StringByKey(resB, key, p8, &length8, forceCopy, status); in tres_getString()
2941 s8 = ures_getUTF8String(resB, p8, &length8, forceCopy, status); in tres_getString()
2949 p8 = (char *)malloc(++length8); in tres_getString()
2954 s8 = ures_getUTF8StringByIndex(resB, idx, p8, &length8, forceCopy, status); in tres_getString()
2956 s8 = ures_getUTF8StringByKey(resB, key, p8, &length8, forceCopy, status); in tres_getString()
2958 s8 = ures_getUTF8String(resB, p8, &length8, forceCopy, status); in tres_getString()
2975 if((p8 != buffer8 || length8 < (int32_t)sizeof(buffer8)) && s8[length8] != 0) { in tres_getString()
[all …]
/third_party/icu/icu4c/source/test/intltest/
Dusettest.cpp2392 int32_t length8=0; in appendUTF8() local
2393 u_strToUTF8(t, capacity, &length8, s, length, &errorCode); in appendUTF8()
2395 return length8; in appendUTF8()
2418 int32_t length8, utf8Count=0; in UnicodeSetWithStrings() local
2425 utf8Lengths[stringsLength]=length8= in UnicodeSetWithStrings()
2428 if(length8==0) { in UnicodeSetWithStrings()
2431 s8+=length8; in UnicodeSetWithStrings()
2737 int32_t length8; in containsSpanUTF8() local
2739 while((s8=iter.nextUTF8(length8))!=NULL) { in containsSpanUTF8()
2740 if(length8!=0 && length8<=(length-start) && 0==memcmp(s+start, s8, length8)) { in containsSpanUTF8()
[all …]
Dustrtest.cpp253 int32_t length8=from16.extract(0, 0x7fffffff, buffer, (uint32_t)sizeof(buffer)); in TestBasicManipulation() local
254 if(length8!=((int32_t)sizeof(utf8)-1) || 0!=uprv_memcmp(buffer, utf8, sizeof(utf8))) { in TestBasicManipulation()
257 length8=from16.extract(1, 2, buffer, (uint32_t)sizeof(buffer)); in TestBasicManipulation()
258 if(length8!=4 || buffer[length8]!=0 || 0!=uprv_memcmp(buffer, utf8+1, length8)) { in TestBasicManipulation()
/third_party/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()