Home
last modified time | relevance | path

Searched refs:utf8Length (Results 1 – 22 of 22) sorted by relevance

/external/guava/android/guava/src/com/google/common/base/
DUtf8.java53 int utf8Length = utf16Length; in encodedLength() local
65 utf8Length += ((0x7f - c) >>> 31); // branch free! in encodedLength()
67 utf8Length += encodedLengthGeneral(sequence, i); in encodedLength()
72 if (utf8Length < utf16Length) { in encodedLength()
75 "UTF-8 length does not fit in int: " + (utf8Length + (1L << 32))); in encodedLength()
77 return utf8Length; in encodedLength()
82 int utf8Length = 0; in encodedLengthGeneral() local
86 utf8Length += (0x7f - c) >>> 31; // branch free! in encodedLengthGeneral()
88 utf8Length += 2; in encodedLengthGeneral()
99 return utf8Length; in encodedLengthGeneral()
/external/guava/guava/src/com/google/common/base/
DUtf8.java53 int utf8Length = utf16Length; in encodedLength() local
65 utf8Length += ((0x7f - c) >>> 31); // branch free! in encodedLength()
67 utf8Length += encodedLengthGeneral(sequence, i); in encodedLength()
72 if (utf8Length < utf16Length) { in encodedLength()
75 "UTF-8 length does not fit in int: " + (utf8Length + (1L << 32))); in encodedLength()
77 return utf8Length; in encodedLength()
82 int utf8Length = 0; in encodedLengthGeneral() local
86 utf8Length += (0x7f - c) >>> 31; // branch free! in encodedLengthGeneral()
88 utf8Length += 2; in encodedLengthGeneral()
99 return utf8Length; in encodedLengthGeneral()
/external/smali/util/src/main/java/org/jf/util/
DClassFileNameHandler.java150 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/
Dutrie2perf.cpp51 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/
DUtf8Safe.java76 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/libchrome/mojo/public/js/lib/
Dunicode.js44 function utf8Length(str) { function
50 internal.utf8Length = utf8Length;
Dcodec.js407 var encodedSize = kArrayHeaderSize + internal.utf8Length(val);
/external/icu/icu4c/source/test/perf/unisetperf/
Dunisetperf.cpp53 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/protobuf/javanano/src/main/java/com/google/protobuf/nano/
DCodedOutputByteBufferNano.java341 int utf8Length = utf16Length; in encodedLength() local
353 utf8Length += ((0x7f - c) >>> 31); // branch free! in encodedLength()
355 utf8Length += encodedLengthGeneral(sequence, i); in encodedLength()
360 if (utf8Length < utf16Length) { in encodedLength()
363 + (utf8Length + (1L << 32))); in encodedLength()
365 return utf8Length; in encodedLength()
370 int utf8Length = 0; in encodedLengthGeneral() local
374 utf8Length += (0x7f - c) >>> 31; // branch free! in encodedLengthGeneral()
376 utf8Length += 2; in encodedLengthGeneral()
388 return utf8Length; in encodedLengthGeneral()
/external/guava/guava-tests/test/com/google/common/base/
DUtf8Test.java95 int utf8Length = 0; in testEncodedLength_validStrings2() local
99 utf8Length += utf8Lengths.get(randomCodePoint); in testEncodedLength_validStrings2()
100 if (utf8Length != Utf8.encodedLength(sb)) { in testEncodedLength_validStrings2()
105 assertEquals(repro.toString(), utf8Length, Utf8.encodedLength(sb)); in testEncodedLength_validStrings2() local
/external/guava/android/guava-tests/test/com/google/common/base/
DUtf8Test.java95 int utf8Length = 0; in testEncodedLength_validStrings2() local
99 utf8Length += utf8Lengths.get(randomCodePoint); in testEncodedLength_validStrings2()
100 if (utf8Length != Utf8.encodedLength(sb)) { in testEncodedLength_validStrings2()
105 assertEquals(repro.toString(), utf8Length, Utf8.encodedLength(sb)); in testEncodedLength_validStrings2() local
/external/icu/icu4c/source/common/
Dunisetspan.cpp209 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()
Dunisetspan.h127 int32_t utf8Length; variable
/external/icu/icu4c/source/test/perf/utfperf/
Dutfperf.cpp42 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/protobuf/java/core/src/main/java/com/google/protobuf/
DUtf8.java242 int utf8Length = utf16Length; in encodedLength() local
254 utf8Length += ((0x7f - c) >>> 31); // branch free! in encodedLength()
256 utf8Length += encodedLengthGeneral(sequence, i); in encodedLength()
261 if (utf8Length < utf16Length) { in encodedLength()
264 "UTF-8 length does not fit in int: " + (utf8Length + (1L << 32))); in encodedLength()
266 return utf8Length; in encodedLength()
271 int utf8Length = 0; in encodedLengthGeneral() local
275 utf8Length += (0x7f - c) >>> 31; // branch free! in encodedLengthGeneral()
277 utf8Length += 2; in encodedLengthGeneral()
289 return utf8Length; in encodedLengthGeneral()
/external/icu/icu4c/source/test/intltest/
Dconvtest.h48 int32_t utf8Length; member
Dconvtest.cpp1447 utf8Limit=source+cc.utf8Length; in stepFromUTF8()
1680 u_strToUTF8(utf8, UPRV_LENGTHOF(utf8), &cc.utf8Length, in FromUnicodeCase()
1687 cc.utf8Length=-1; in FromUnicodeCase()
1743 if(cc.utf8Length>=0) { in FromUnicodeCase()
Drbbitst.cpp430 int32_t utf8Length; in CharStringAppend() local
431 u_strToUTF8WithSub(NULL, 0, &utf8Length, // Output Buffer, NULL for preflight. in CharStringAppend()
440 char *buffer = dest.getAppendBuffer(utf8Length, utf8Length, capacity, status); in CharStringAppend()
441 u_strToUTF8WithSub(buffer, utf8Length, NULL, in CharStringAppend()
444 dest.append(buffer, utf8Length, status); in CharStringAppend()
/external/icu/libicu/cts_headers/
Dunisetspan.h127 int32_t utf8Length; variable
/external/icu/icu4c/source/test/cintltst/
Dccapitst.c2541 int32_t utf8Length; in testFromTruncatedUTF8() local
2573 utf8Length=charUTF8Length+length; in testFromTruncatedUTF8()
2582 &source, utf8+utf8Length, in testFromTruncatedUTF8()
2607 int32_t utf8Length, expectLength; in testFromBadUTF8() local
2623 utf8Length=charUTF8Length; in testFromBadUTF8()
2630 memcpy(utf8+utf8Length, badUTF8[i], length); in testFromBadUTF8()
2631 utf8Length+=length; in testFromBadUTF8()
2633 memcpy(utf8+utf8Length, charUTF8, charUTF8Length); in testFromBadUTF8()
2634 utf8Length+=charUTF8Length; in testFromBadUTF8()
2645 utf8, utf8Length, in testFromBadUTF8()
/external/caliper/caliper/src/test/resources/com/google/caliper/bridge/
Djdk6-compilation.txt148 130 sun.reflect.UTF8::utf8Length (81 bytes)
Djdk7-compilation.txt176 1818 165 b sun.reflect.UTF8::utf8Length (81 bytes)