- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for utf16Length (0.04 sec)
-
guava/src/com/google/common/hash/Murmur3_32HashFunction.java
@Override public HashCode hashString(CharSequence input, Charset charset) { if (charset.equals(UTF_8)) { int utf16Length = input.length(); int h1 = seed; int i = 0; int len = 0; // This loop optimizes for pure ASCII. while (i + 4 <= utf16Length) { char c0 = input.charAt(i); char c1 = input.charAt(i + 1); char c2 = input.charAt(i + 2);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Apr 14 16:36:11 UTC 2025 - 11.8K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Utf8.java
// Warning to maintainers: this implementation is highly optimized. int utf16Length = sequence.length(); int utf8Length = utf16Length; int i = 0; // This loop optimizes for pure ASCII. while (i < utf16Length && sequence.charAt(i) < 0x80) { i++; } // This loop optimizes for chars less than 0x800. for (; i < utf16Length; i++) { char c = sequence.charAt(i); if (c < 0x800) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 7K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java
@Override public HashCode hashString(CharSequence input, Charset charset) { if (charset.equals(UTF_8)) { int utf16Length = input.length(); int h1 = seed; int i = 0; int len = 0; // This loop optimizes for pure ASCII. while (i + 4 <= utf16Length) { char c0 = input.charAt(i); char c1 = input.charAt(i + 1); char c2 = input.charAt(i + 2);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Apr 14 16:36:11 UTC 2025 - 11.8K bytes - Viewed (0)