- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 45 for Escapers (0.05 seconds)
-
guava-tests/test/com/google/common/escape/UnicodeEscaperTest.java
"\0abyz\u0080\u0100\u0800\u1000ABYZ\uffff" + SMALLEST_SURROGATE + "0189" + LARGEST_SURROGATE; // Escapes nothing private static final UnicodeEscaper NOP_ESCAPER = new UnicodeEscaper() { @Override protected char @Nullable [] escape(int c) { return null; } }; // Escapes everything except [a-zA-Z0-9] private static final UnicodeEscaper SIMPLE_ESCAPER =
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 05:21:26 GMT 2026 - 6K 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) -
android/guava/src/com/google/common/escape/ArrayBasedUnicodeEscaper.java
* highest valued code point that requires escaping. For example a replacement map containing the * single character '{@code \}{@code u1000}' will require approximately 16K of memory. If you need * to create multiple escaper instances that have the same character replacement mapping consider * using {@link ArrayBasedEscaperMap}. * * @author David Beaumont * @since 15.0 */ @GwtCompatible
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Feb 13 15:45:16 GMT 2025 - 8.5K bytes - Click Count (0) -
android/guava/src/com/google/common/escape/ArrayBasedCharEscaper.java
* highest valued character that requires escaping. For example a replacement map containing the * single character '{@code \}{@code u1000}' will require approximately 16K of memory. If you need * to create multiple escaper instances that have the same character replacement mapping consider * using {@link ArrayBasedEscaperMap}. * * @author Sven Mawson * @author David Beaumont * @since 15.0 */ @GwtCompatible
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 6.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/escape/CharEscaperBuilderTest.java
public void testAddEscapes() { char[] cs = {'a', 'b', 'c'}; CharEscaperBuilder builder = new CharEscaperBuilder().addEscapes(cs, "Z"); Escaper escaper = builder.toEscaper(); assertThat(escaper.escape("abcdef")).isEqualTo("ZZZdef"); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Feb 18 15:41:04 GMT 2025 - 1.1K bytes - Click Count (0) -
android/guava/src/com/google/common/escape/ArrayBasedEscaperMap.java
import java.util.Map; /** * An implementation-specific parameter class suitable for initializing {@link * ArrayBasedCharEscaper} or {@link ArrayBasedUnicodeEscaper} instances. This class should be used * when more than one escaper is created using the same character replacement mapping to allow the * underlying (implementation specific) data structures to be shared. *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 28 01:26:26 GMT 2024 - 3.2K 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) -
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) -
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)