- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 118 for charsA (0.03 sec)
-
android/guava/src/com/google/common/primitives/Chars.java
* Returns the {@code char} value that is equal to {@code value}, if possible. * * @param value any value in the range of the {@code char} type * @return the {@code char} value that equals {@code value} * @throws IllegalArgumentException if {@code value} is greater than {@link Character#MAX_VALUE} * or less than {@link Character#MIN_VALUE} */ public static char checkedCast(long value) { char result = (char) value;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 24.2K bytes - Viewed (0) -
guava/src/com/google/common/primitives/Chars.java
* Returns the {@code char} value that is equal to {@code value}, if possible. * * @param value any value in the range of the {@code char} type * @return the {@code char} value that equals {@code value} * @throws IllegalArgumentException if {@code value} is greater than {@link Character#MAX_VALUE} * or less than {@link Character#MIN_VALUE} */ public static char checkedCast(long value) { char result = (char) value;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 24.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/Utf8Test.java
/** Tests that round tripping of all two byte permutations work. */ @GwtIncompatible // java.nio.charset.Charset public void testIsWellFormed_1Byte() { testBytes(1, EXPECTED_ONE_BYTE_ROUNDTRIPPABLE_COUNT); } /** Tests that round tripping of all two byte permutations work. */ @GwtIncompatible // java.nio.charset.Charset public void testIsWellFormed_2Bytes() { testBytes(2, EXPECTED_TWO_BYTE_ROUNDTRIPPABLE_COUNT);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 12.8K bytes - Viewed (0) -
android/guava/src/com/google/common/base/CharMatcher.java
private static final class AnyOf extends CharMatcher { private final char[] chars; AnyOf(CharSequence chars) { this.chars = chars.toString().toCharArray(); Arrays.sort(this.chars); } @Override public boolean matches(char c) { return Arrays.binarySearch(chars, c) >= 0; } @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 53.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/CharMatcherTest.java
Set<Character> positive = Sets.newHashSetWithExpectedSize(chars.length); for (char c : chars) { positive.add(c); } for (int c = 0; c <= Character.MAX_VALUE; c++) { assertFalse(positive.contains(Character.valueOf((char) c)) ^ m.matches((char) c)); } } static char[] randomChars(Random rand, int size) { Set<Character> chars = new HashSet<>(size);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 30.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/CharMatcherTest.java
Set<Character> positive = Sets.newHashSetWithExpectedSize(chars.length); for (char c : chars) { positive.add(c); } for (int c = 0; c <= Character.MAX_VALUE; c++) { assertFalse(positive.contains(Character.valueOf((char) c)) ^ m.matches((char) c)); } } static char[] randomChars(Random rand, int size) { Set<Character> chars = new HashSet<>(size);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 30.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/HashTestUtils.java
HashFunction hashFunction, Random random) { int size = random.nextInt(8) + 1; char[] chars = new char[size]; for (int i = 0; i < chars.length; i++) { chars[i] = random.nextBoolean() ? randomLowSurrogate(random) : randomHighSurrogate(random); } String string = new String(chars); assertEquals( hashFunction.hashUnencodedChars(string),
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 25.6K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Utf8.java
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) { utf8Length += (0x7f - c) >>> 31; // branch free! } else {
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/collect/ImmutableListMultimap.java
* Stream.of("banana", "apple", "carrot", "asparagus", "cherry") * .collect( * flatteningToImmutableListMultimap( * str -> str.charAt(0), * str -> str.substring(1).chars().mapToObj(c -> (char) c)); * * // is equivalent to * * static final ImmutableListMultimap<Character, Character> FIRST_LETTER_MULTIMAP =
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 19K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/CharsTest.java
.isEqualTo(1); assertThat( Chars.indexOf( new char[] {(char) 2, (char) 3, (char) 2, (char) 3, (char) 4, (char) 2, (char) 3}, new char[] {(char) 2, (char) 3, (char) 4})) .isEqualTo(2); assertThat( Chars.indexOf( new char[] {(char) 2, (char) 2, (char) 3, (char) 4, (char) 2, (char) 3, (char) 4},
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 25.9K bytes - Viewed (0)