/external/icu4c/common/ |
D | unisetspan.cpp | 229 int32_t length16=string.length(); in UnicodeSetStringSpan() local 231 spanLength=spanSet.span(s16, length16, USET_SPAN_CONTAINED); in UnicodeSetStringSpan() 232 if(spanLength<length16) { // Relevant string. in UnicodeSetStringSpan() 237 if((which&UTF16) && length16>maxLength16) { in UnicodeSetStringSpan() 238 maxLength16=length16; in UnicodeSetStringSpan() 241 int32_t length8=getUTF8Length(s16, length16); in UnicodeSetStringSpan() 309 int32_t length16=string.length(); in UnicodeSetStringSpan() local 310 spanLength=spanSet.span(s16, length16, USET_SPAN_CONTAINED); in UnicodeSetStringSpan() 311 if(spanLength<length16) { // Relevant string. in UnicodeSetStringSpan() 318 spanLength=length16-spanSet.spanBack(s16, length16, USET_SPAN_CONTAINED); in UnicodeSetStringSpan() [all …]
|
D | unistr.cpp | 429 int32_t length16; in fromUTF32() local 431 u_strFromUTF32WithSub(utf16, result.getCapacity(), &length16, in fromUTF32() 436 result.releaseBuffer(length16); in fromUTF32() 438 capacity = length16 + 1; // +1 for the terminating NUL. in fromUTF32() 839 int32_t length16 = length(); in toUTF8() local 840 if(length16 != 0) { in toUTF8() 844 char *utf8 = sink.GetAppendBuffer(length16 < capacity ? length16 : capacity, in toUTF8() 845 3*length16, in toUTF8() 851 getBuffer(), length16, in toUTF8() 861 getBuffer(), length16, in toUTF8() [all …]
|
D | uresbund.c | 1191 ures_toUTF8String(const UChar *s16, int32_t length16, in ures_toUTF8String() argument 1210 if (length16 == 0) { in ures_toUTF8String() 1223 if (capacity < length16) { in ures_toUTF8String() 1225 return u_strToUTF8(NULL, 0, pLength, s16, length16, status); in ures_toUTF8String() 1227 if (!forceCopy && (length16 <= 0x2aaaaaaa)) { in ures_toUTF8String() 1242 int32_t maxLength = 3 * length16 + 1; in ures_toUTF8String() 1248 return u_strToUTF8(dest, capacity, pLength, s16, length16, status); in ures_toUTF8String() 1257 int32_t length16; in ures_getUTF8String() local 1258 const UChar *s16 = ures_getString(resB, &length16, status); in ures_getUTF8String() 1259 return ures_toUTF8String(s16, length16, dest, pLength, forceCopy, status); in ures_getUTF8String() [all …]
|
/external/icu4c/test/cintltst/ |
D | ucnvseltst.c | 449 int32_t length8, length16; in TestSelector() local 472 u_strFromUTF8(utf16, LENGTHOF(utf16), &length16, s, length8, &status); in TestSelector() 482 verifyResult(ucnvsel_selectForString(sel_rt, utf16, length16, &status), manual_rt); in TestSelector() 483 verifyResult(ucnvsel_selectForString(sel_fb, utf16, length16, &status), manual_fb); in TestSelector()
|
D | creststn.c | 2828 int32_t length16, length8, i16, i8; in tres_getString() local 2832 length = &length16; in tres_getString() 2844 length16 = *length; in tres_getString() 2895 while(i16 < length16 && i8 < length8) { in tres_getString() 2896 U16_NEXT(s16, i16, length16, c16); in tres_getString() 2904 if(i16 < length16) { in tres_getString() 2906 resB, (long)index, key, (long)length8, (long)length16); in tres_getString() 2910 resB, (long)index, key, (long)length8, (long)length16); in tres_getString()
|
D | trie2test.c | 1333 int32_t length16, length32; in testTrie2FromTrie1() local 1356 length16=utrie_serialize(newTrie1_16, memory1_16, sizeof(memory1_16), in testTrie2FromTrie1() 1360 utrie_unserialize(&trie1_16, memory1_16, length16, &errorCode); in testTrie2FromTrie1()
|
/external/icu4c/test/intltest/ |
D | usettest.h | 175 const UChar *s16, int32_t length16,
|
D | usettest.cpp | 3211 const UChar *s16, int32_t length16, in testSpanBothUTFs() argument 3220 testSpan(sets, s16, length16, TRUE, whichSpans, expectLimits, expectCount, testName, index); in testSpanBothUTFs() 3230 const UChar *s16Limit=s16+length16; in testSpanBothUTFs() 3250 if(expect==length16) { in testSpanBothUTFs() 3791 int32_t length16=string16.length(); in TestStringSpan() local 3811 length16=string16.length(); in TestStringSpan() 3828 length16=string16.length(); in TestStringSpan()
|