- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 45 for Escapers (0.06 seconds)
-
android/guava/src/com/google/common/escape/Escapers.java
/** * Static utility methods pertaining to {@link Escaper} instances. * * @author Sven Mawson * @author David Beaumont * @since 15.0 */ @GwtCompatible public final class Escapers { private Escapers() {} /** * Returns an {@link Escaper} that does no escaping, passing all character data through unchanged. */ public static Escaper nullEscaper() { return NULL_ESCAPER; }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 6.9K bytes - Click Count (0) -
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) -
android/guava/src/com/google/common/escape/Escaper.java
* your own escapers, use {@link CharEscaperBuilder}, or extend {@code CharEscaper} or {@code * UnicodeEscaper}. * * @author David Beaumont * @since 15.0 */ @DoNotMock("Use Escapers.nullEscaper() or another methods from the *Escapers classes") @GwtCompatible @SuppressWarnings("EscapedEntity") // We do mean for the user to see "<" etc. public abstract class Escaper {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Feb 13 15:45:16 GMT 2025 - 4.7K bytes - Click Count (0) -
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/net/UrlEscapers.java
/** * Returns an {@link Escaper} instance that escapes strings so they can be safely included in <a * href="https://url.spec.whatwg.org/#syntax-url-path-segment">URL path segments</a>. The returned * escaper escapes all non-ASCII characters, even though <a * href="https://url.spec.whatwg.org/#url-code-points">many of these are accepted in modern * URLs</a>. (<a href="https://url.spec.whatwg.org/#path-state">If the escaper were to leave theseCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 7.1K 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) -
android/guava/src/com/google/common/xml/package-info.java
* or implied. See the License for the specific language governing permissions and limitations under * the License. */ /** * Escapers * for * XML. * * <p>This package is a part of the open-source <a href="https://github.com/google/guava">Guava</a> * library. */ @CheckReturnValue @NullMarked package com.google.common.xml;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 14:50:24 GMT 2024 - 911 bytes - Click Count (0) -
android/guava/src/com/google/common/net/PercentEscaper.java
/** * A {@code UnicodeEscaper} that escapes some set of Java characters using a UTF-8 based percent * encoding scheme. The set of safe characters (those which remain unescaped) can be specified on * construction. * * <p>This class is primarily used for creating URI escapers in {@link UrlEscapers} but can be used * directly if required. While URI escapers impose specific semantics on which characters areCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 28 01:26:26 GMT 2024 - 8.6K bytes - Click Count (0)