Home
last modified time | relevance | path

Searched refs:length16 (Results 1 – 8 of 8) sorted by relevance

/external/icu4c/common/
Dunisetspan.cpp231 int32_t length16=string.length(); in UnicodeSetStringSpan() local
233 spanLength=spanSet.span(s16, length16, USET_SPAN_CONTAINED); in UnicodeSetStringSpan()
234 if(spanLength<length16) { // Relevant string. in UnicodeSetStringSpan()
239 if((which&UTF16) && length16>maxLength16) { in UnicodeSetStringSpan()
240 maxLength16=length16; in UnicodeSetStringSpan()
243 int32_t length8=getUTF8Length(s16, length16); in UnicodeSetStringSpan()
311 int32_t length16=string.length(); in UnicodeSetStringSpan() local
312 spanLength=spanSet.span(s16, length16, USET_SPAN_CONTAINED); in UnicodeSetStringSpan()
313 if(spanLength<length16) { // Relevant string. in UnicodeSetStringSpan()
320 spanLength=length16-spanSet.spanBack(s16, length16, USET_SPAN_CONTAINED); in UnicodeSetStringSpan()
[all …]
Dunistr.cpp432 int32_t length16; in fromUTF32() local
434 u_strFromUTF32WithSub(utf16, result.getCapacity(), &length16, in fromUTF32()
439 result.releaseBuffer(length16); in fromUTF32()
441 capacity = length16 + 1; // +1 for the terminating NUL. in fromUTF32()
886 int32_t length16 = length(); in toUTF8() local
887 if(length16 != 0) { in toUTF8()
891 char *utf8 = sink.GetAppendBuffer(length16 < capacity ? length16 : capacity, in toUTF8()
892 3*length16, in toUTF8()
898 getBuffer(), length16, in toUTF8()
908 getBuffer(), length16, in toUTF8()
[all …]
Duresbund.cpp1184 ures_toUTF8String(const UChar *s16, int32_t length16, in ures_toUTF8String() argument
1203 if (length16 == 0) { in ures_toUTF8String()
1216 if (capacity < length16) { in ures_toUTF8String()
1218 return u_strToUTF8(NULL, 0, pLength, s16, length16, status); in ures_toUTF8String()
1220 if (!forceCopy && (length16 <= 0x2aaaaaaa)) { in ures_toUTF8String()
1235 int32_t maxLength = 3 * length16 + 1; in ures_toUTF8String()
1241 return u_strToUTF8(dest, capacity, pLength, s16, length16, status); in ures_toUTF8String()
1250 int32_t length16; in ures_getUTF8String() local
1251 const UChar *s16 = ures_getString(resB, &length16, status); in ures_getUTF8String()
1252 return ures_toUTF8String(s16, length16, dest, pLength, forceCopy, status); in ures_getUTF8String()
[all …]
/external/icu4c/test/cintltst/
Ducnvseltst.c449 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()
Dcreststn.c2805 int32_t length16, length8, i16, i8; in tres_getString() local
2809 length = &length16; in tres_getString()
2821 length16 = *length; in tres_getString()
2872 while(i16 < length16 && i8 < length8) { in tres_getString()
2873 U16_NEXT(s16, i16, length16, c16); in tres_getString()
2881 if(i16 < length16) { in tres_getString()
2883 resB, (long)idx, key, (long)length8, (long)length16); in tres_getString()
2887 resB, (long)idx, key, (long)length8, (long)length16); in tres_getString()
Dtrie2test.c1333 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/
Dusettest.h175 const UChar *s16, int32_t length16,
Dusettest.cpp3211 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()