/external/guava/guava/src/com/google/common/base/ |
D | Utf8.java | 51 int utf8Length = utf16Length; in encodedLength() local 63 utf8Length += ((0x7f - c) >>> 31); // branch free! in encodedLength() 65 utf8Length += encodedLengthGeneral(sequence, i); in encodedLength() 70 if (utf8Length < utf16Length) { in encodedLength() 73 + (utf8Length + (1L << 32))); in encodedLength() 75 return utf8Length; in encodedLength() 80 int utf8Length = 0; in encodedLengthGeneral() local 84 utf8Length += (0x7f - c) >>> 31; // branch free! in encodedLengthGeneral() 86 utf8Length += 2; in encodedLengthGeneral() 98 return utf8Length; in encodedLengthGeneral()
|
/external/smali/util/src/main/java/org/jf/util/ |
D | ClassFileNameHandler.java | 150 private static int utf8Length(String str) { in utf8Length() method in ClassFileNameHandler 151 int utf8Length = 0; in utf8Length() local 155 utf8Length += utf8Length(c); in utf8Length() 158 return utf8Length; in utf8Length() 161 private static int utf8Length(int codePoint) { in utf8Length() method in ClassFileNameHandler 198 int bytesRemoved = utf8Length(codePoints[midPoint]); in shortenPathComponent() 203 bytesRemoved += utf8Length(codePoints[secondStart]); in shortenPathComponent() 211 bytesRemoved += utf8Length(codePoints[firstEnd]); in shortenPathComponent() 215 bytesRemoved += utf8Length(codePoints[secondStart]); in shortenPathComponent() 281 int utf8Length = utf8Length(elementName); in getNormalizedName() local [all …]
|
/external/icu/icu4c/source/test/perf/utrie2perf/ |
D | utrie2perf.cpp | 47 utf8(NULL), utf8Length(0), countInputCodePoints(0) { in UTrie2PerfTest() 59 u_strToUTF8(NULL, 0, &utf8Length, buffer, bufferLen, &status); in UTrie2PerfTest() 61 utf8=(char *)malloc(utf8Length); in UTrie2PerfTest() 64 u_strToUTF8(utf8, utf8Length, NULL, buffer, bufferLen, &status); in UTrie2PerfTest() 73 (long)countInputCodePoints, (long)bufferLen, (long)utf8Length, in UTrie2PerfTest() 74 (double)utf8Length/countInputCodePoints); in UTrie2PerfTest() 86 int32_t utf8Length; member in UTrie2PerfTest 162 UBool isFCD=unorm_checkFCDUTF8((const uint8_t *)testcase.utf8, testcase.utf8Length, NULL);
|
/external/icu/icu4c/source/test/perf/unisetperf/ |
D | unisetperf.cpp | 49 utf8(NULL), utf8Length(0), countInputCodePoints(0), spanCount(0) { in UnicodeSetPerformanceTest() 66 u_strToUTF8(NULL, 0, &utf8Length, buffer, bufferLen, &status); in UnicodeSetPerformanceTest() 68 utf8=(char *)malloc(utf8Length); in UnicodeSetPerformanceTest() 71 u_strToUTF8(utf8, utf8Length, NULL, buffer, bufferLen, &status); in UnicodeSetPerformanceTest() 80 … (long)countInputCodePoints, (long)bufferLen, (long)utf8Length, (long)spanCount, in UnicodeSetPerformanceTest() 81 … (double)countInputCodePoints/spanCount, (double)bufferLen/spanCount, (double)utf8Length/spanCount, in UnicodeSetPerformanceTest() 82 (double)utf8Length/countInputCodePoints); in UnicodeSetPerformanceTest() 121 int32_t utf8Length; member in UnicodeSetPerformanceTest 340 int32_t length=testcase.utf8Length; in call() 386 int32_t length=testcase.utf8Length; in call()
|
/external/protobuf/java/src/main/java/com/google/protobuf/nano/ |
D | CodedOutputByteBufferNano.java | 339 int utf8Length = utf16Length; in encodedLength() local 351 utf8Length += ((0x7f - c) >>> 31); // branch free! in encodedLength() 353 utf8Length += encodedLengthGeneral(sequence, i); in encodedLength() 358 if (utf8Length < utf16Length) { in encodedLength() 361 + (utf8Length + (1L << 32))); in encodedLength() 363 return utf8Length; in encodedLength() 368 int utf8Length = 0; in encodedLengthGeneral() local 372 utf8Length += (0x7f - c) >>> 31; // branch free! in encodedLengthGeneral() 374 utf8Length += 2; in encodedLengthGeneral() 386 return utf8Length; in encodedLengthGeneral()
|
/external/guava/guava-tests/test/com/google/common/base/ |
D | Utf8Test.java | 70 int utf8Length = 0; in testEncodedLength_validStrings2() local 74 utf8Length += utf8Lengths.get(randomCodePoint); in testEncodedLength_validStrings2() 75 if (utf8Length != Utf8.encodedLength(sb)) { in testEncodedLength_validStrings2() 80 assertEquals(repro.toString(), utf8Length, Utf8.encodedLength(sb)); in testEncodedLength_validStrings2() local
|
/external/icu/icu4c/source/common/ |
D | unisetspan.cpp | 207 utf8Length(0), in UnicodeSetStringSpan() 244 utf8Length+=length8; in UnicodeSetStringSpan() 269 allocSize=stringsLength*(4+1+1+1+1)+utf8Length; in UnicodeSetStringSpan() 274 allocSize+=stringsLength*4+utf8Length; in UnicodeSetStringSpan() 329 int32_t length8=appendUTF8(s16, length16, s8, utf8Length-utf8Count); in UnicodeSetStringSpan() 367 int32_t length8=appendUTF8(s16, length16, s8, utf8Length-utf8Count); in UnicodeSetStringSpan() 395 utf8Length(otherStringSpan.utf8Length), in UnicodeSetStringSpan() 407 int32_t allocSize=stringsLength*(4+1+1+1+1)+utf8Length; in UnicodeSetStringSpan()
|
D | unisetspan.h | 125 int32_t utf8Length; variable
|
/external/icu/icu4c/source/test/perf/utfperf/ |
D | utfperf.cpp | 38 static int32_t utf8Length, encodedLength, outputLength, countInputCodePoints; variable 88 u_strToUTF8(utf8, (int32_t)sizeof(utf8), &utf8Length, buffer, bufferLen, &status); in UtfPerformanceTest() 267 input8(utf8), input8Length(utf8Length) { in FromUTF8()
|
/external/icu/icu4c/source/test/intltest/ |
D | convtest.h | 46 int32_t utf8Length; member
|
D | convtest.cpp | 1272 utf8Limit=source+cc.utf8Length; in stepFromUTF8() 1505 u_strToUTF8(utf8, UPRV_LENGTHOF(utf8), &cc.utf8Length, in FromUnicodeCase() 1512 cc.utf8Length=-1; in FromUnicodeCase() 1564 if(cc.utf8Length>=0) { in FromUnicodeCase()
|
D | rbbitst.cpp | 884 int32_t utf8Length; in CharStringAppend() local 885 u_strToUTF8WithSub(NULL, 0, &utf8Length, // Output Buffer, NULL for preflight. in CharStringAppend() 894 char *buffer = dest.getAppendBuffer(utf8Length, utf8Length, capacity, status); in CharStringAppend() 895 u_strToUTF8WithSub(buffer, utf8Length, NULL, in CharStringAppend() 898 dest.append(buffer, utf8Length, status); in CharStringAppend()
|
/external/icu/icu4c/source/test/cintltst/ |
D | ccapitst.c | 2500 int32_t utf8Length; in testFromTruncatedUTF8() local 2532 utf8Length=charUTF8Length+length; in testFromTruncatedUTF8() 2541 &source, utf8+utf8Length, in testFromTruncatedUTF8() 2566 int32_t utf8Length, expectLength; in testFromBadUTF8() local 2582 utf8Length=charUTF8Length; in testFromBadUTF8() 2589 memcpy(utf8+utf8Length, badUTF8[i], length); in testFromBadUTF8() 2590 utf8Length+=length; in testFromBadUTF8() 2592 memcpy(utf8+utf8Length, charUTF8, charUTF8Length); in testFromBadUTF8() 2593 utf8Length+=charUTF8Length; in testFromBadUTF8() 2604 utf8, utf8Length, in testFromBadUTF8()
|