/external/icu4c/common/ |
H A D | unisetspan.cpp | 168 int32_t length8=0; local 169 u_strToUTF8(NULL, 0, &length8, s, length, &errorCode); 171 return length8; 183 int32_t length8=0; local 184 u_strToUTF8((char *)t, capacity, &length8, s, length, &errorCode); 186 return length8; 243 int32_t length8=getUTF8Length(s16, length16); local 244 utf8Length+=length8; 245 if(length8>maxLength8) { 246 maxLength8=length8; 329 int32_t length8=appendUTF8(s16, length16, s8, utf8Length-utf8Count); local 367 int32_t length8=appendUTF8(s16, length16, s8, utf8Length-utf8Count); local 977 int32_t length8; local 1157 int32_t length8; local 1449 int32_t length8; local 1492 int32_t length8; local [all...] |
H A D | ucnv.c | 483 int32_t cloneSize, length8; local 489 length8 = ucnv_fromUChars(clone, chars, (int32_t)sizeof(chars), s, length, err); 523 length8 = length * U_SIZEOF_UCHAR; 530 if (length8 > UCNV_MAX_SUBCHAR_LEN) { 545 if (length8 == 0) { 548 uprv_memcpy(cnv->subChars, subChars, length8); 550 cnv->subCharLen = (int8_t)length8;
|
H A D | unistr.cpp | 846 int32_t length8; local 848 u_strToUTF8WithSub(target, capacity, &length8, 853 return length8; 895 int32_t length8 = 0; local 897 u_strToUTF8WithSub(utf8, capacity, &length8, 903 utf8 = (char *)uprv_malloc(length8); 907 u_strToUTF8WithSub(utf8, length8, &length8, 917 sink.Append(utf8, length8);
|
/external/icu4c/test/cintltst/ |
H A D | ucnvseltst.c | 449 int32_t length8, length16; local 451 s = text_nextString(&text, &length8); 457 s, length8, 461 s, length8, 466 verifyResult(ucnvsel_selectForUTF8(sel_rt, s, length8, &status), manual_rt); 467 verifyResult(ucnvsel_selectForUTF8(sel_fb, s, length8, &status), manual_fb); 472 u_strFromUTF8(utf16, LENGTHOF(utf16), &length16, s, length8, &status);
|
H A D | creststn.c | 2805 int32_t length16, length8, i16, i8; local 2826 length8 = (int32_t)sizeof(buffer8); 2828 s8 = ures_getUTF8StringByIndex(resB, idx, p8, &length8, forceCopy, status); 2830 s8 = ures_getUTF8StringByKey(resB, key, p8, &length8, forceCopy, status); 2832 s8 = ures_getUTF8String(resB, p8, &length8, forceCopy, status); 2840 p8 = (char *)malloc(++length8); 2845 s8 = ures_getUTF8StringByIndex(resB, idx, p8, &length8, forceCopy, status); 2847 s8 = ures_getUTF8StringByKey(resB, key, p8, &length8, forceCopy, status); 2849 s8 = ures_getUTF8String(resB, p8, &length8, forceCopy, status); 2866 if((p8 != buffer8 || length8 < sizeo 2913 int32_t length8; local [all...] |
/external/icu4c/test/intltest/ |
H A D | ustrtest.cpp | 251 int32_t length8=from16.extract(0, 0x7fffffff, buffer, (uint32_t)sizeof(buffer)); local 252 if(length8!=((int32_t)sizeof(utf8)-1) || 0!=uprv_memcmp(buffer, utf8, sizeof(utf8))) { 255 length8=from16.extract(1, 2, buffer, (uint32_t)sizeof(buffer)); 256 if(length8!=4 || buffer[length8]!=0 || 0!=uprv_memcmp(buffer, utf8+1, length8)) {
|
H A D | usettest.cpp | 2297 int32_t length8=0; local 2298 u_strToUTF8(t, capacity, &length8, s, length, &errorCode); 2300 return length8; 2323 int32_t length8, utf8Count=0; local 2330 utf8Lengths[stringsLength]=length8= 2333 if(length8==0) { 2336 s8+=length8; 2651 int32_t length8; local 2653 while((s8=iter.nextUTF8(length8))!=NULL) { 2654 if(length8! 2675 int32_t length8; local 2763 int32_t length8; local 2786 int32_t length8; local 3244 int32_t length8=(int32_t)(t-(char *)s8); local [all...] |