- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 10 for Escapers (0.19 seconds)
-
guava-tests/test/com/google/common/net/UrlEscaperTesting.java
@NullUnmarked final class UrlEscaperTesting { /** * Helper to assert common expected behaviour of uri escapers. You should call * assertBasicUrlEscaper() unless the escaper explicitly does not escape '%'. */ @SuppressWarnings("nullness") // test of a bogus call static void assertBasicUrlEscaperExceptPercent(UnicodeEscaper e) { // URL escapers should throw null pointer exceptions for null input try { e.escape((String) null);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 3.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/net/UrlEscaperTesting.java
@NullUnmarked final class UrlEscaperTesting { /** * Helper to assert common expected behaviour of uri escapers. You should call * assertBasicUrlEscaper() unless the escaper explicitly does not escape '%'. */ @SuppressWarnings("nullness") // test of a bogus call static void assertBasicUrlEscaperExceptPercent(UnicodeEscaper e) { // URL escapers should throw null pointer exceptions for null input try { e.escape((String) null);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 3.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/xml/XmlEscapersTest.java
// Test all escapes assertThat(xmlAttributeEscaper.escape("a\"b<c>d&e\"f'")) .isEqualTo("a"b<c>d&e"f'"); // Test '\t', '\n' and '\r' are escaped. assertThat(xmlAttributeEscaper.escape("a\tb\nc\rd")).isEqualTo("a	b
c
d"); } // Helper to assert common properties of xml escapers. static void assertBasicXmlEscaper(Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/xml/XmlEscapersTest.java
// Test all escapes assertThat(xmlAttributeEscaper.escape("a\"b<c>d&e\"f'")) .isEqualTo("a"b<c>d&e"f'"); // Test '\t', '\n' and '\r' are escaped. assertThat(xmlAttributeEscaper.escape("a\tb\nc\rd")).isEqualTo("a	b
c
d"); } // Helper to assert common properties of xml escapers. static void assertBasicXmlEscaper(Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/net/UrlEscapersTest.java
UnicodeEscaper e = (UnicodeEscaper) urlFormParameterEscaper(); // Verify that these are the same escaper (as documented) assertThat(urlFormParameterEscaper()).isSameInstanceAs(e); assertBasicUrlEscaper(e); /* * Specified as safe by RFC 2396 but not by java.net.URLEncoder. These tests will start failing * when the escaper is made compliant with RFC 2396, but that's a good thing (just change them * to assertUnescaped).
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 2.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/net/UrlEscapersTest.java
UnicodeEscaper e = (UnicodeEscaper) urlFormParameterEscaper(); // Verify that these are the same escaper (as documented) assertThat(urlFormParameterEscaper()).isSameInstanceAs(e); assertBasicUrlEscaper(e); /* * Specified as safe by RFC 2396 but not by java.net.URLEncoder. These tests will start failing * when the escaper is made compliant with RFC 2396, but that's a good thing (just change them * to assertUnescaped).
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 2.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/net/PercentEscaperTest.java
/** * Tests for {@link PercentEscaper}. * * @author David Beaumont */ @GwtCompatible @NullUnmarked public class PercentEscaperTest extends TestCase { /** Tests that the simple escaper treats 0-9, a-z and A-Z as safe */ public void testSimpleEscaper() { UnicodeEscaper e = new PercentEscaper("", false); for (char c = 0; c < 128; c++) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 5.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/net/PercentEscaperTest.java
/** * Tests for {@link PercentEscaper}. * * @author David Beaumont */ @GwtCompatible @NullUnmarked public class PercentEscaperTest extends TestCase { /** Tests that the simple escaper treats 0-9, a-z and A-Z as safe */ public void testSimpleEscaper() { UnicodeEscaper e = new PercentEscaper("", false); for (char c = 0; c < 128; c++) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 5.4K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/api/json/SearchApiManager.java
} /** * Escapes a callback name. * @param callbackName The callback name. * @return The escaped callback name. */ protected String escapeCallbackName(final String callbackName) { return "/**/" + callbackName.replaceAll("[^0-9a-zA-Z_\\$\\.]", StringUtil.EMPTY); } /** * Escapes a JSON object. * @param obj The object to escape.Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 27 13:56:32 GMT 2026 - 55.4K bytes - Click Count (1) -
src/main/java/org/codelibs/fess/chat/ChatClient.java
System.currentTimeMillis() - startTime); return Collections.emptyList(); } } /** * Escapes special characters in the value for use in Fess queries. * * @param value the value to escape * @return the escaped value */ protected String escapeQueryValue(final String value) {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 21 06:04:58 GMT 2026 - 56.6K bytes - Click Count (0)