- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 922 for Escape (0.18 sec)
-
guava-gwt/src/com/google/common/escape/Escape.gwt.xml
David P. Baker <******@****.***> 1641482883 -0800
XML - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Jan 06 15:30:58 GMT 2022 - 1.4K bytes - Viewed (0) -
android/guava/src/com/google/common/escape/Escaper.java
* individual {@code char} values, it is not safe to assume that {@code escape(s)} is equivalent to * {@code escape(s.substring(0, n)) + escape(s.substring(n))} for arbitrary {@code n}. This is * because of the possibility of splitting a surrogate pair. The only case in which it is safe to * escape strings and concatenate the results is if you can rule out this possibility, either by
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Fri Oct 01 16:02:17 GMT 2021 - 4.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/escape/testing/EscaperAsserts.java
* @param cp the Unicode code point to escape */ public static void assertEscaping(UnicodeEscaper escaper, String expected, int cp) { String escaped = computeReplacement(escaper, cp); Assert.assertNotNull(escaped); Assert.assertEquals(expected, escaped); } /** * Asserts that an 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-tests/test/com/google/common/escape/ArrayBasedUnicodeEscaperTest.java
return NO_CHARS; } }; EscaperAsserts.assertBasic(escaper); assertEquals("<tab>Fish <and> Chips<newline>", escaper.escape("\tFish & Chips\n")); // Verify that everything else is left unescaped. String safeChars = "\0\u0100\uD800\uDC00\uFFFF"; assertEquals(safeChars, escaper.escape(safeChars)); // Ensure that Unicode escapers behave correctly wrt badly formed input.
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Feb 07 23:02:38 GMT 2024 - 5K bytes - Viewed (1) -
android/guava-tests/test/com/google/common/net/UrlEscapersTest.java
assertUnicodeEscaping(e, "%F4%8F%BF%BF", '\uDBFF', '\uDFFF'); assertEquals("", e.escape("")); assertEquals("safestring", e.escape("safestring")); assertEquals("embedded%00null", e.escape("embedded\0null")); assertEquals("max%EF%BF%BFchar", e.escape("max\uffffchar")); } // Helper to assert common expected behaviour of uri escapers.
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue May 15 20:25:06 GMT 2018 - 4.9K bytes - Viewed (0) -
android/guava/src/com/google/common/escape/Escapers.java
* * @param escaper the instance to be wrapped * @return a UnicodeEscaper with the same behavior as the given instance * @throws NullPointerException if escaper is null * @throws IllegalArgumentException if escaper is not a UnicodeEscaper or a CharEscaper */ static UnicodeEscaper asUnicodeEscaper(Escaper escaper) { checkNotNull(escaper); if (escaper instanceof UnicodeEscaper) {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Apr 26 20:07:17 GMT 2023 - 10.5K bytes - Viewed (0) -
android/guava/src/com/google/common/escape/CharEscaper.java
* * <p>An escaper is expected to be able to deal with any {@code char} value, so this method should * not throw any exceptions. * * @param c the character to escape if necessary * @return the replacement characters, or {@code null} if no escaping was needed */ @CheckForNull protected abstract char[] escape(char c); /**
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Jan 18 20:55:09 GMT 2022 - 6.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/escape/ArrayBasedUnicodeEscaperTest.java
return NO_CHARS; } }; EscaperAsserts.assertBasic(escaper); assertEquals("<tab>Fish <and> Chips<newline>", escaper.escape("\tFish & Chips\n")); // Verify that everything else is left unescaped. String safeChars = "\0\u0100\uD800\uDC00\uFFFF"; assertEquals(safeChars, escaper.escape(safeChars)); // Ensure that Unicode escapers behave correctly wrt badly formed input.
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Feb 07 23:02:38 GMT 2024 - 5K bytes - Viewed (0) -
guava-tests/test/com/google/common/escape/EscapersTest.java
Escaper escaper = Escapers.nullEscaper(); EscaperAsserts.assertBasic(escaper); String s = "\0\n\t\\az09~\uD800\uDC00\uFFFF"; assertEquals("null escaper should have no effect", s, escaper.escape(s)); } public void testBuilderInitialStateNoReplacement() { // Unsafe characters aren't modified by default (unsafeReplacement == null).
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Oct 10 19:45:10 GMT 2022 - 5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/escape/testing/EscaperAsserts.java
* @param cp the Unicode code point to escape */ public static void assertEscaping(UnicodeEscaper escaper, String expected, int cp) { String escaped = computeReplacement(escaper, cp); Assert.assertNotNull(escaped); Assert.assertEquals(expected, escaped); } /** * Asserts that an 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)