- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for safeChars (0.13 sec)
-
android/guava/src/com/google/common/net/PercentEscaper.java
*/ public PercentEscaper(String safeChars, boolean plusForSpace) { // TODO(dbeaumont): Switch to static factory methods for creation now that class is final. // TODO(dbeaumont): Support escapers where alphanumeric chars are not safe. checkNotNull(safeChars); // eager for GWT. // Avoid any misunderstandings about the behavior of this escaper if (safeChars.matches(".*[0-9A-Za-z].*")) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Dec 28 01:26:26 UTC 2024 - 8.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/escape/ArrayBasedUnicodeEscaperTest.java
assertThat(escaper.escape("\tFish & Chips\n")).isEqualTo("<tab>Fish <and> Chips<newline>"); // Verify that everything else is left unescaped. String safeChars = "\0\u0100\uD800\uDC00\uFFFF"; assertThat(escaper.escape(safeChars)).isEqualTo(safeChars); // Ensure that Unicode escapers behave correctly wrt badly formed input. String badUnicode = "\uDC00\uD800";
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Feb 18 15:41:04 UTC 2025 - 5.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/net/PercentEscaperTest.java
UnicodeEscaper e = new PercentEscaper("%", false); assertEquals("foo%7Cbar", e.escape("foo|bar")); assertEquals("foo%7Cbar", e.escape("foo%7Cbar")); // idempotent } /** Test that giving a null 'safeChars' string causes a {@link NullPointerException}. */ public void testBadArguments_null() { assertThrows(NullPointerException.class, () -> new PercentEscaper(null, false)); } /**
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 20:34:52 UTC 2025 - 5.3K bytes - Viewed (0)