/external/chromium/third_party/icu/source/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 | 427 int32_t length16; in fromUTF32() local 429 u_strFromUTF32WithSub(utf16, result.getCapacity(), &length16, in fromUTF32() 434 result.releaseBuffer(length16); in fromUTF32() 436 capacity = length16 + 1; // +1 for the terminating NUL. in fromUTF32() 826 int32_t length16 = length(); in toUTF8() local 827 if(length16 != 0) { in toUTF8() 831 char *utf8 = sink.GetAppendBuffer(length16 < capacity ? length16 : capacity, in toUTF8() 832 3*length16, in toUTF8() 838 getBuffer(), length16, in toUTF8() 848 getBuffer(), length16, in toUTF8() [all …]
|
D | uresbund.c | 1054 ures_toUTF8String(const UChar *s16, int32_t length16, in ures_toUTF8String() argument 1073 if (length16 == 0) { in ures_toUTF8String() 1086 if (capacity < length16) { in ures_toUTF8String() 1088 return u_strToUTF8(NULL, 0, pLength, s16, length16, status); in ures_toUTF8String() 1090 if (!forceCopy && (length16 <= 0x2aaaaaaa)) { in ures_toUTF8String() 1105 int32_t maxLength = 3 * length16 + 1; in ures_toUTF8String() 1111 return u_strToUTF8(dest, capacity, pLength, s16, length16, status); in ures_toUTF8String() 1120 int32_t length16; in ures_getUTF8String() local 1121 const UChar *s16 = ures_getString(resB, &length16, status); in ures_getUTF8String() 1122 return ures_toUTF8String(s16, length16, dest, pLength, forceCopy, status); in ures_getUTF8String() [all …]
|
/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 | 428 int32_t length16; in fromUTF32() local 430 u_strFromUTF32WithSub(utf16, result.getCapacity(), &length16, in fromUTF32() 435 result.releaseBuffer(length16); in fromUTF32() 437 capacity = length16 + 1; // +1 for the terminating NUL. in fromUTF32() 838 int32_t length16 = length(); in toUTF8() local 839 if(length16 != 0) { in toUTF8() 843 char *utf8 = sink.GetAppendBuffer(length16 < capacity ? length16 : capacity, in toUTF8() 844 3*length16, in toUTF8() 850 getBuffer(), length16, in toUTF8() 860 getBuffer(), length16, in toUTF8() [all …]
|
D | uresbund.c | 1177 ures_toUTF8String(const UChar *s16, int32_t length16, in ures_toUTF8String() argument 1196 if (length16 == 0) { in ures_toUTF8String() 1209 if (capacity < length16) { in ures_toUTF8String() 1211 return u_strToUTF8(NULL, 0, pLength, s16, length16, status); in ures_toUTF8String() 1213 if (!forceCopy && (length16 <= 0x2aaaaaaa)) { in ures_toUTF8String() 1228 int32_t maxLength = 3 * length16 + 1; in ures_toUTF8String() 1234 return u_strToUTF8(dest, capacity, pLength, s16, length16, status); in ures_toUTF8String() 1243 int32_t length16; in ures_getUTF8String() local 1244 const UChar *s16 = ures_getString(resB, &length16, status); in ures_getUTF8String() 1245 return ures_toUTF8String(s16, length16, dest, pLength, forceCopy, status); in ures_getUTF8String() [all …]
|
/external/chromium/third_party/icu/source/test/cintltst/ |
D | ucnvseltst.c | 445 int32_t length8, length16; in TestSelector() local 468 u_strFromUTF8(utf16, LENGTHOF(utf16), &length16, s, length8, &status); in TestSelector() 478 verifyResult(ucnvsel_selectForString(sel_rt, utf16, length16, &status), manual_rt); in TestSelector() 479 verifyResult(ucnvsel_selectForString(sel_fb, utf16, length16, &status), manual_fb); in TestSelector()
|
D | creststn.c | 2808 int32_t length16, length8, i16, i8; in tres_getString() local 2812 length = &length16; in tres_getString() 2824 length16 = *length; in tres_getString() 2875 while(i16 < length16 && i8 < length8) { in tres_getString() 2876 U16_NEXT(s16, i16, length16, c16); in tres_getString() 2884 if(i16 < length16) { in tres_getString() 2886 resB, (long)index, key, (long)length8, (long)length16); in tres_getString() 2890 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/cintltst/ |
D | ucnvseltst.c | 446 int32_t length8, length16; in TestSelector() local 469 u_strFromUTF8(utf16, LENGTHOF(utf16), &length16, s, length8, &status); in TestSelector() 479 verifyResult(ucnvsel_selectForString(sel_rt, utf16, length16, &status), manual_rt); in TestSelector() 480 verifyResult(ucnvsel_selectForString(sel_fb, utf16, length16, &status), manual_fb); in TestSelector()
|
D | creststn.c | 2826 int32_t length16, length8, i16, i8; in tres_getString() local 2830 length = &length16; in tres_getString() 2842 length16 = *length; in tres_getString() 2893 while(i16 < length16 && i8 < length8) { in tres_getString() 2894 U16_NEXT(s16, i16, length16, c16); in tres_getString() 2902 if(i16 < length16) { in tres_getString() 2904 resB, (long)index, key, (long)length8, (long)length16); in tres_getString() 2908 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 | 3200 const UChar *s16, int32_t length16, in testSpanBothUTFs() argument 3209 testSpan(sets, s16, length16, TRUE, whichSpans, expectLimits, expectCount, testName, index); in testSpanBothUTFs() 3219 const UChar *s16Limit=s16+length16; in testSpanBothUTFs() 3239 if(expect==length16) { in testSpanBothUTFs() 3780 int32_t length16=string16.length(); in TestStringSpan() local 3800 length16=string16.length(); in TestStringSpan() 3817 length16=string16.length(); in TestStringSpan()
|
/external/chromium/third_party/icu/source/test/intltest/ |
D | usettest.h | 175 const UChar *s16, int32_t length16,
|
D | usettest.cpp | 3163 const UChar *s16, int32_t length16, in testSpanBothUTFs() argument 3172 testSpan(sets, s16, length16, TRUE, whichSpans, expectLimits, expectCount, testName, index); in testSpanBothUTFs() 3182 const UChar *s16Limit=s16+length16; in testSpanBothUTFs() 3202 if(expect==length16) { in testSpanBothUTFs() 3743 int32_t length16=string16.length(); in TestStringSpan() local 3763 length16=string16.length(); in TestStringSpan() 3780 length16=string16.length(); in TestStringSpan()
|