Home
last modified time | relevance | path

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

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DUnicodeSetStringSpan.java112 int length16 = string.length(); in UnicodeSetStringSpan() local
114 if (spanLength < length16) { // Relevant string. in UnicodeSetStringSpan()
117 if (/* (0 != (which & UTF16)) && */ length16 > maxLength16) { in UnicodeSetStringSpan()
118 maxLength16 = length16; in UnicodeSetStringSpan()
155 int length16 = string.length(); in UnicodeSetStringSpan() local
157 if (spanLength < length16) { // Relevant string. in UnicodeSetStringSpan()
164 spanLength = length16 in UnicodeSetStringSpan()
165 - spanSet.spanBack(string, length16, SpanCondition.CONTAINED); in UnicodeSetStringSpan()
182 c = string.codePointBefore(length16); in UnicodeSetStringSpan()
402 int length16 = string.length(); in spanWithStrings() local
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DUnicodeSetStringSpan.java116 int length16 = string.length(); in UnicodeSetStringSpan() local
118 if (spanLength < length16) { // Relevant string. in UnicodeSetStringSpan()
121 if (/* (0 != (which & UTF16)) && */ length16 > maxLength16) { in UnicodeSetStringSpan()
122 maxLength16 = length16; in UnicodeSetStringSpan()
159 int length16 = string.length(); in UnicodeSetStringSpan() local
161 if (spanLength < length16) { // Relevant string. in UnicodeSetStringSpan()
168 spanLength = length16 in UnicodeSetStringSpan()
169 - spanSet.spanBack(string, length16, SpanCondition.CONTAINED); in UnicodeSetStringSpan()
186 c = string.codePointBefore(length16); in UnicodeSetStringSpan()
406 int length16 = string.length(); in spanWithStrings() local
[all …]
/external/icu/icu4c/source/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.cpp437 int32_t length16; in fromUTF32() local
439 u_strFromUTF32WithSub(utf16, result.getCapacity(), &length16, in fromUTF32()
444 result.releaseBuffer(length16); in fromUTF32()
446 capacity = length16 + 1; // +1 for the terminating NUL. in fromUTF32()
942 int32_t length16 = length(); in toUTF8() local
943 if(length16 != 0) { in toUTF8()
947 char *utf8 = sink.GetAppendBuffer(length16 < capacity ? length16 : capacity, in toUTF8()
948 3*length16, in toUTF8()
954 getBuffer(), length16, in toUTF8()
964 getBuffer(), length16, in toUTF8()
[all …]
Duresbund.cpp1262 ures_toUTF8String(const UChar *s16, int32_t length16, in ures_toUTF8String() argument
1281 if (length16 == 0) { in ures_toUTF8String()
1294 if (capacity < length16) { in ures_toUTF8String()
1296 return u_strToUTF8(NULL, 0, pLength, s16, length16, status); in ures_toUTF8String()
1298 if (!forceCopy && (length16 <= 0x2aaaaaaa)) { in ures_toUTF8String()
1313 int32_t maxLength = 3 * length16 + 1; in ures_toUTF8String()
1319 return u_strToUTF8(dest, capacity, pLength, s16, length16, status); in ures_toUTF8String()
1328 int32_t length16; in ures_getUTF8String() local
1329 const UChar *s16 = ures_getString(resB, &length16, status); in ures_getUTF8String()
1330 return ures_toUTF8String(s16, length16, dest, pLength, forceCopy, status); in ures_getUTF8String()
[all …]
/external/icu/icu4c/source/test/cintltst/
Ducnvseltst.c447 int32_t length8, length16; in TestSelector() local
470 u_strFromUTF8(utf16, UPRV_LENGTHOF(utf16), &length16, s, length8, &status); in TestSelector()
480 verifyResult(ucnvsel_selectForString(sel_rt, utf16, length16, &status), manual_rt); in TestSelector()
481 verifyResult(ucnvsel_selectForString(sel_fb, utf16, length16, &status), manual_fb); in TestSelector()
Dcreststn.c2874 int32_t length16, length8, i16, i8; in tres_getString() local
2878 length = &length16; in tres_getString()
2890 length16 = *length; in tres_getString()
2941 while(i16 < length16 && i8 < length8) { in tres_getString()
2942 U16_NEXT(s16, i16, length16, c16); in tres_getString()
2950 if(i16 < length16) { in tres_getString()
2952 resB, (long)idx, key, (long)length8, (long)length16); in tres_getString()
2956 resB, (long)idx, key, (long)length8, (long)length16); in tres_getString()
Dtrie2test.c1331 int32_t length16, length32; in testTrie2FromTrie1() local
1354 length16=utrie_serialize(newTrie1_16, memory1_16, sizeof(memory1_16), in testTrie2FromTrie1()
1358 utrie_unserialize(&trie1_16, memory1_16, length16, &errorCode); in testTrie2FromTrie1()
/external/dng_sdk/source/
Ddng_string.cpp1203 uint32 length16 = 0; in Set_UTF16() local
1205 while (s [length16] != 0) in Set_UTF16()
1207 length16 = SafeUint32Add (length16, 1); in Set_UTF16()
1210 const uint16 *sEnd = s + length16; in Set_UTF16()
1213 SafeUint32Add (SafeUint32Mult (length16, 6), 1); in Set_UTF16()
/external/pcre/dist/
Dpcre_jit_test.c1155 int length16; in regression_tests() local
1366length16 = convert_utf8_to_utf16(current->input, regtest_buf16, regtest_offsetmap16, REGTEST_MAX_L… in regression_tests()
1368 length16 = copy_char8_to_char16(current->input, regtest_buf16, REGTEST_MAX_LENGTH16); in regression_tests()
1372 …return_value16[0] = pcre16_exec(re16, extra16, regtest_buf16, length16, current->start_offset & OF… in regression_tests()
1375 …return_value16[0] = pcre16_jit_exec(re16, extra16, regtest_buf16, length16, current->start_offset … in regression_tests()
1384 …return_value16[1] = pcre16_exec(re16, &dummy_extra16, regtest_buf16, length16, current->start_offs… in regression_tests()
/external/icu/icu4c/source/test/intltest/
Dusettest.h180 const UChar *s16, int32_t length16,
Dusettest.cpp3243 const UChar *s16, int32_t length16, in testSpanBothUTFs() argument
3252 testSpan(sets, s16, length16, TRUE, whichSpans, expectLimits, expectCount, testName, index); in testSpanBothUTFs()
3262 const UChar *s16Limit=s16+length16; in testSpanBothUTFs()
3282 if(expect==length16) { in testSpanBothUTFs()
3823 int32_t length16=string16.length(); in TestStringSpan() local
3824 (void)length16; // Suppress set but not used warning. in TestStringSpan()
3844 length16=string16.length(); in TestStringSpan()
3861 length16=string16.length(); in TestStringSpan()
/external/icu/icu4c/source/test/perf/collperf2/
Dcollperf2.cpp1360 int32_t length16 = d16->lengthOf(i); in getData8FromData16() local
1364 u_strToUTF8(NULL, 0, &length8, s16, length16, &status); in getData8FromData16()
1374 u_strToUTF8(d8->last(), capacity8, NULL, s16, length16, &status); in getData8FromData16()