- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 278 for characters (0.19 sec)
-
android/guava-tests/test/com/google/common/hash/Fingerprint2011Test.java
public void testReallySimpleFingerprints() { assertEquals(8473225671271759044L, fingerprint("test".getBytes(UTF_8))); // 32 characters long assertEquals(7345148637025587076L, fingerprint(Strings.repeat("test", 8).getBytes(UTF_8))); // 256 characters long assertEquals(4904844928629814570L, fingerprint(Strings.repeat("test", 64).getBytes(UTF_8))); } public void testStringsConsistency() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Dec 29 14:55:25 GMT 2021 - 7.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/xml/XmlEscapersTest.java
assertEquals("<tab>", xmlEscaper.escape("<tab>")); // Test all non-escaped ASCII characters. String s = "!@#$%^*()_+=-/?\\|]}[{,.;:" + "abcdefghijklmnopqrstuvwxyz" + "ABCDEFGHIJKLMNOPQRSTUVWXYZ" + "1234567890"; assertEquals(s, xmlEscaper.escape(s)); // Test ASCII control characters. for (char ch = 0; ch < 0x20; ch++) { if (ch == '\t' || ch == '\n' || ch == '\r') {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Dec 16 19:54:45 GMT 2020 - 4.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/escape/ArrayBasedUnicodeEscaperTest.java
assertEquals(safeInput, surrogateEscaper.escape(safeInput)); // A surrogate pair defining a code point outside the safe range (but both // of the surrogate characters lie within the safe range). It is important // not to accidentally treat this as a sequence of safe characters. String unsafeInput = "\uDBFF\uDFFF"; // 0x10FFFF assertEquals("X", surrogateEscaper.escape(unsafeInput)); }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 07 23:02:38 GMT 2024 - 5K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/HashCode.java
private static final long serialVersionUID = 0; } /** * Creates a {@code HashCode} from a hexadecimal ({@code base 16}) encoded string. The string must * be at least 2 characters long, and contain only valid, lower-cased hexadecimal characters. * * <p>This method accepts the exact format generated by {@link #toString}. If you require more
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Apr 20 18:43:59 GMT 2021 - 12.6K bytes - Viewed (0) -
android/guava/src/com/google/common/io/CharSource.java
import java.util.List; import javax.annotation.CheckForNull; import org.checkerframework.checker.nullness.qual.Nullable; /** * A readable source of characters, such as a text file. Unlike a {@link Reader}, a {@code * CharSource} is not an open, stateful stream of characters that can be read and closed. Instead, * it is an immutable <i>supplier</i> of {@code Reader} instances. * * <p>{@code CharSource} provides two kinds of methods: *
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed May 17 14:35:11 GMT 2023 - 22.4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/escape/testing/EscaperAsserts.java
/** * Asserts that an escaper does not escape the given character. * * @param escaper the non-null escaper to test * @param c the character to test */ public static void assertUnescaped(CharEscaper escaper, char c) { Assert.assertNull(computeReplacement(escaper, c)); } /** * Asserts that a Unicode escaper does not escape the given character. * * @param escaper the non-null escaper to test
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Jan 18 20:55:09 GMT 2022 - 3.8K bytes - Viewed (0) -
guava/src/com/google/common/base/SmallCharMatcher.java
import com.google.common.annotations.VisibleForTesting; import com.google.common.base.CharMatcher.NamedFastMatcher; import java.util.BitSet; /** * An immutable version of CharMatcher for smallish sets of characters that uses a hash table with * linear probing to check for matches. * * @author Christopher Swenson */ @GwtIncompatible // no precomputation is done in GWT @ElementTypesAreNonnullByDefault
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Fri Feb 09 15:49:48 GMT 2024 - 4.5K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/Funnels.java
into.putBytes(from); } @Override public String toString() { return "Funnels.byteArrayFunnel()"; } } /** * Returns a funnel that extracts the characters from a {@code CharSequence}, a character at a * time, without performing any encoding. If you need to use a specific encoding, use {@link * Funnels#stringFunnel(Charset)} instead. *
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed May 25 20:32:46 GMT 2022 - 7.3K bytes - Viewed (0) -
android/guava/src/com/google/common/escape/ArrayBasedEscaperMap.java
* when more than one escaper is created using the same character replacement mapping to allow the * underlying (implementation specific) data structures to be shared. * * <p>The size of the data structure used by ArrayBasedCharEscaper and ArrayBasedUnicodeEscaper is * proportional to the highest valued character that has a replacement. For example a replacement * map containing the single character '{@literal \}u1000' will require approximately 16K of memory.
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/xml/XmlEscapersTest.java
assertEquals("<tab>", xmlEscaper.escape("<tab>")); // Test all non-escaped ASCII characters. String s = "!@#$%^*()_+=-/?\\|]}[{,.;:" + "abcdefghijklmnopqrstuvwxyz" + "ABCDEFGHIJKLMNOPQRSTUVWXYZ" + "1234567890"; assertEquals(s, xmlEscaper.escape(s)); // Test ASCII control characters. for (char ch = 0; ch < 0x20; ch++) { if (ch == '\t' || ch == '\n' || ch == '\r') {
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 4.7K bytes - Viewed (0)