- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 22 for Escapers (0.04 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
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) -
android/guava/src/com/google/common/xml/XmlEscapers.java
*/ public static Escaper xmlContentEscaper() { return XML_CONTENT_ESCAPER; } /** * Returns an {@link Escaper} instance that escapes special characters in a string so it can * safely be included in XML document as an attribute value. See section <a * href="http://www.w3.org/TR/2008/REC-xml-20081126/#AVNormalize">3.3.3</a> of the XML * specification. *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Sep 11 17:06:34 GMT 2025 - 6.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/escape/EscapersTest.java
Escaper escaper = Escapers.builder().setSafeRange('a', 'z').build(); assertThat(escaper.escape("The Quick Brown Fox")).isEqualTo("The Quick Brown Fox"); } public void testBuilderInitialStateNoneUnsafe() { // No characters are unsafe by default (safeMin == 0, safeMax == 0xFFFF). Escaper escaper = Escapers.builder().setUnsafeReplacement("X").build();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 05:21:26 GMT 2026 - 4.1K 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/src/com/google/common/escape/UnicodeEscaper.java
* correctly if you are considering implementing a new escaper you should favor using UnicodeEscaper * wherever possible. * * <p>A {@code UnicodeEscaper} instance is required to be stateless, and safe when used concurrently * by multiple threads. * * <p>Popular escapers are defined as constants in classes like {@linkCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Jan 24 04:06:11 GMT 2026 - 13.2K bytes - Click Count (0) -
android/guava/src/com/google/common/escape/CharEscaperBuilder.java
} return result; } /** * Convert this builder into a char escaper which is just a decorator around the underlying array * of replacement char[]s. * * @return an escaper that escapes based on the underlying array. */ public Escaper toEscaper() { return new CharArrayDecorator(toArray()); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jul 17 15:26:41 GMT 2025 - 3.9K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/ldap/LdapUtil.java
package org.codelibs.fess.ldap; /** * Utility class for LDAP operations. */ public final class LdapUtil { private LdapUtil() { } /** * Escapes special characters in a value for use in LDAP search filters. * This method escapes characters that have special meaning in LDAP filter expressions * to prevent LDAP injection attacks. * * @param value the value to escape (null is treated as empty string)Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Jan 02 08:06:20 GMT 2026 - 2K 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)