- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 120 for chark (0.13 sec)
-
android/guava-tests/test/com/google/common/primitives/CharArrayAsListTest.java
return insertionOrder; } } public static class SampleChars extends SampleElements<Character> { public SampleChars() { super((char) 0, (char) 1, (char) 2, (char) 3, (char) 4); } }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Jun 01 09:32:35 GMT 2023 - 5.7K bytes - Viewed (0) -
android/guava/src/com/google/common/escape/CharEscaperBuilder.java
/** * Convert this builder into an array of char[]s where the maximum index is the value of the * highest character that has been seen. The array will be sparse in the sense that any unseen * index will default to null. * * @return a "sparse" array that holds the replacement mappings. */ public char[] @Nullable [] toArray() { char[][] result = new char[max + 1][];
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Jan 18 20:55:09 GMT 2022 - 4K bytes - Viewed (0) -
android/guava/src/com/google/common/escape/ArrayBasedEscaperMap.java
// original character value. @VisibleForTesting static char[][] createReplacementArray(Map<Character, String> map) { checkNotNull(map); // GWT specific check (do not optimize) if (map.isEmpty()) { return EMPTY_REPLACEMENT_ARRAY; } char max = Collections.max(map.keySet()); char[][] replacements = new char[max + 1][]; for (Character c : map.keySet()) {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Jan 18 20:55:09 GMT 2022 - 3.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CharSequenceReaderTest.java
// read char by char CharSequenceReader reader = new CharSequenceReader(charSequence); for (int i = 0; i < expected.length(); i++) { assertEquals(expected.charAt(i), reader.read()); } assertFullyRead(reader); // read all to one array reader = new CharSequenceReader(charSequence); char[] buf = new char[expected.length()];
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 6.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/escape/ArrayBasedUnicodeEscaperTest.java
private final char[] unknown = new char[] {'?'}; @Override protected char[] escapeUnsafe(int c) { return unknown; } }; EscaperAsserts.assertBasic(replacingEscaper); // Replacements are applied first regardless of whether the character is in // the safe range or not ('&' is a safe char while '\t' and '\n' are not). assertEquals(
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 07 23:02:38 GMT 2024 - 5K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/escape/super/com/google/common/escape/Platform.java
final class Platform { private static final char[] CHAR_BUFFER = new char[1024]; static char[] charBufferFromThreadLocal() { // ThreadLocal is not available to GWT, so we always reuse the same // instance. It is always safe to return the same instance because // javascript is single-threaded, and only used by blocks that doesn't // involve async callbacks. return CHAR_BUFFER; } private Platform() {}
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 1.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/Fingerprint2011Test.java
} } public void testUtf8() { char[] charsA = new char[128]; char[] charsB = new char[128]; for (int i = 0; i < charsA.length; i++) { if (i < 100) { charsA[i] = 'a'; charsB[i] = 'a'; } else { // Both two-byte characters, but must be different charsA[i] = (char) (0x0180 + i); charsB[i] = (char) (0x0280 + i); } }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Dec 29 14:55:25 GMT 2021 - 7.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/escape/UnicodeEscaperTest.java
new UnicodeEscaper() { // Canonical escaper method that only escapes lower case ASCII letters. @Override protected char @Nullable [] escape(int cp) { return ('a' <= cp && cp <= 'z') ? new char[] {Character.toUpperCase((char) cp)} : null; } // Inefficient implementation that defines all letters as escapable. @Override
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Apr 19 19:24:36 GMT 2023 - 6.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/escape/EscapersTest.java
return new CharEscaper() { @Override protected char[] escape(char c) { return replacementMap.get(c); } }; } // A trivial non-optimized escaper for testing. static UnicodeEscaper createSimpleUnicodeEscaper( final ImmutableMap<Integer, char[]> replacementMap) { return new UnicodeEscaper() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Oct 10 19:45:10 GMT 2022 - 5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/net/PercentEscaperTest.java
assertThat(expected).hasMessageThat().isEqualTo(msg); } } public void testBadArguments_plusforspace() { // space can be a safe char if plusForSpace is false PercentEscaper unused = new PercentEscaper(" ", false); // space cannot be a safe char is plusForSpace is true String msg = "plusForSpace cannot be specified when space is a 'safe' character"; try { new PercentEscaper(" ", true);
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Oct 10 19:45:10 GMT 2022 - 5.2K bytes - Viewed (0)