/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() 262 int utf8Length = utf8Length(elementName); in getNormalizedName() local [all …]
|
/external/icu/icu4c/source/test/perf/utrie2perf/ |
D | utrie2perf.cpp | 51 utf8(NULL), utf8Length(0), countInputCodePoints(0) { in UTrie2PerfTest() 63 u_strToUTF8(NULL, 0, &utf8Length, buffer, bufferLen, &status); in UTrie2PerfTest() 65 utf8=(char *)malloc(utf8Length); in UTrie2PerfTest() 68 u_strToUTF8(utf8, utf8Length, NULL, buffer, bufferLen, &status); in UTrie2PerfTest() 77 (long)countInputCodePoints, (long)bufferLen, (long)utf8Length, in UTrie2PerfTest() 78 (double)utf8Length/countInputCodePoints); in UTrie2PerfTest() 90 int32_t utf8Length; member in UTrie2PerfTest 166 UBool isFCD=unorm_checkFCDUTF8((const uint8_t *)testcase.utf8, testcase.utf8Length, NULL);
|
/external/flatbuffers/java/com/google/flatbuffers/ |
D | Utf8Safe.java | 76 int utf8Length = utf16Length; in computeEncodedLength() local 88 utf8Length += ((0x7f - c) >>> 31); // branch free! in computeEncodedLength() 90 utf8Length += encodedLengthGeneral(sequence, i); in computeEncodedLength() 95 if (utf8Length < utf16Length) { in computeEncodedLength() 98 + (utf8Length + (1L << 32))); in computeEncodedLength() 100 return utf8Length; in computeEncodedLength() 105 int utf8Length = 0; in encodedLengthGeneral() local 109 utf8Length += (0x7f - c) >>> 31; // branch free! in encodedLengthGeneral() 111 utf8Length += 2; in encodedLengthGeneral() 123 return utf8Length; in encodedLengthGeneral()
|
/external/icu/icu4c/source/test/perf/unisetperf/ |
D | unisetperf.cpp | 53 utf8(NULL), utf8Length(0), countInputCodePoints(0), spanCount(0) { in UnicodeSetPerformanceTest() 70 u_strToUTF8(NULL, 0, &utf8Length, buffer, bufferLen, &status); in UnicodeSetPerformanceTest() 72 utf8=(char *)malloc(utf8Length); in UnicodeSetPerformanceTest() 75 u_strToUTF8(utf8, utf8Length, NULL, buffer, bufferLen, &status); in UnicodeSetPerformanceTest() 84 … (long)countInputCodePoints, (long)bufferLen, (long)utf8Length, (long)spanCount, in UnicodeSetPerformanceTest() 85 … (double)countInputCodePoints/spanCount, (double)bufferLen/spanCount, (double)utf8Length/spanCount, in UnicodeSetPerformanceTest() 86 (double)utf8Length/countInputCodePoints); in UnicodeSetPerformanceTest() 125 int32_t utf8Length; member in UnicodeSetPerformanceTest 344 int32_t length=testcase.utf8Length; in call() 390 int32_t length=testcase.utf8Length; in call()
|
/external/libchrome/mojo/public/js/lib/ |
D | unicode.js | 44 function utf8Length(str) { function 50 internal.utf8Length = utf8Length;
|
D | codec.js | 407 var encodedSize = kArrayHeaderSize + internal.utf8Length(val);
|
/external/guava/guava-tests/test/com/google/common/base/ |
D | Utf8Test.java | 69 int utf8Length = 0; in testEncodedLength_validStrings2() local 73 utf8Length += utf8Lengths.get(randomCodePoint); in testEncodedLength_validStrings2() 74 if (utf8Length != Utf8.encodedLength(sb)) { in testEncodedLength_validStrings2() 79 assertEquals(repro.toString(), utf8Length, Utf8.encodedLength(sb)); in testEncodedLength_validStrings2() local
|
/external/protobuf/javanano/src/main/java/com/google/protobuf/nano/ |
D | CodedOutputByteBufferNano.java | 349 int utf8Length = utf16Length; in encodedLength() local 361 utf8Length += ((0x7f - c) >>> 31); // branch free! in encodedLength() 363 utf8Length += encodedLengthGeneral(sequence, i); in encodedLength() 368 if (utf8Length < utf16Length) { in encodedLength() 371 + (utf8Length + (1L << 32))); in encodedLength() 373 return utf8Length; in encodedLength() 378 int utf8Length = 0; in encodedLengthGeneral() local 382 utf8Length += (0x7f - c) >>> 31; // branch free! in encodedLengthGeneral() 384 utf8Length += 2; in encodedLengthGeneral() 396 return utf8Length; in encodedLengthGeneral()
|
/external/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | Utf8.java | 256 int utf8Length = utf16Length; in encodedLength() local 268 utf8Length += ((0x7f - c) >>> 31); // branch free! in encodedLength() 270 utf8Length += encodedLengthGeneral(sequence, i); in encodedLength() 275 if (utf8Length < utf16Length) { in encodedLength() 278 + (utf8Length + (1L << 32))); in encodedLength() 280 return utf8Length; in encodedLength() 285 int utf8Length = 0; in encodedLengthGeneral() local 289 utf8Length += (0x7f - c) >>> 31; // branch free! in encodedLengthGeneral() 291 utf8Length += 2; in encodedLengthGeneral() 303 return utf8Length; in encodedLengthGeneral()
|
/external/icu/icu4c/source/common/ |
D | unisetspan.cpp | 209 utf8Length(0), in UnicodeSetStringSpan() 246 utf8Length+=length8; in UnicodeSetStringSpan() 271 allocSize=stringsLength*(4+1+1+1+1)+utf8Length; in UnicodeSetStringSpan() 276 allocSize+=stringsLength*4+utf8Length; in UnicodeSetStringSpan() 331 int32_t length8=appendUTF8(s16, length16, s8, utf8Length-utf8Count); in UnicodeSetStringSpan() 369 int32_t length8=appendUTF8(s16, length16, s8, utf8Length-utf8Count); in UnicodeSetStringSpan() 397 utf8Length(otherStringSpan.utf8Length), in UnicodeSetStringSpan() 409 int32_t allocSize=stringsLength*(4+1+1+1+1)+utf8Length; in UnicodeSetStringSpan()
|
D | unisetspan.h | 127 int32_t utf8Length; variable
|
/external/icu/icu4c/source/test/perf/utfperf/ |
D | utfperf.cpp | 42 static int32_t utf8Length, encodedLength, outputLength, countInputCodePoints; variable 92 u_strToUTF8(utf8, (int32_t)sizeof(utf8), &utf8Length, buffer, bufferLen, &status); in UtfPerformanceTest() 271 input8(utf8), input8Length(utf8Length) { in FromUTF8()
|
/external/icu/icu4c/source/test/intltest/ |
D | convtest.h | 48 int32_t utf8Length; member
|
D | convtest.cpp | 1387 utf8Limit=source+cc.utf8Length; in stepFromUTF8() 1620 u_strToUTF8(utf8, UPRV_LENGTHOF(utf8), &cc.utf8Length, in FromUnicodeCase() 1627 cc.utf8Length=-1; in FromUnicodeCase() 1679 if(cc.utf8Length>=0) { in FromUnicodeCase()
|
D | rbbitst.cpp | 397 int32_t utf8Length; in CharStringAppend() local 398 u_strToUTF8WithSub(NULL, 0, &utf8Length, // Output Buffer, NULL for preflight. in CharStringAppend() 407 char *buffer = dest.getAppendBuffer(utf8Length, utf8Length, capacity, status); in CharStringAppend() 408 u_strToUTF8WithSub(buffer, utf8Length, NULL, in CharStringAppend() 411 dest.append(buffer, utf8Length, status); in CharStringAppend()
|
/external/icu/icu4c/source/test/cintltst/ |
D | ccapitst.c | 2523 int32_t utf8Length; in testFromTruncatedUTF8() local 2555 utf8Length=charUTF8Length+length; in testFromTruncatedUTF8() 2564 &source, utf8+utf8Length, in testFromTruncatedUTF8() 2589 int32_t utf8Length, expectLength; in testFromBadUTF8() local 2605 utf8Length=charUTF8Length; in testFromBadUTF8() 2612 memcpy(utf8+utf8Length, badUTF8[i], length); in testFromBadUTF8() 2613 utf8Length+=length; in testFromBadUTF8() 2615 memcpy(utf8+utf8Length, charUTF8, charUTF8Length); in testFromBadUTF8() 2616 utf8Length+=charUTF8Length; in testFromBadUTF8() 2627 utf8, utf8Length, in testFromBadUTF8()
|
/external/caliper/caliper/src/test/resources/com/google/caliper/bridge/ |
D | jdk6-compilation.txt | 148 130 sun.reflect.UTF8::utf8Length (81 bytes)
|
D | jdk7-compilation.txt | 176 1818 165 b sun.reflect.UTF8::utf8Length (81 bytes)
|