Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for Escapers (0.13 sec)

  1. 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;
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  2. 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 these
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  3. 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.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jun 20 17:15:33 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  4. 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();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  5. 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 these
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/net/UrlEscaperTesting.java

    @GwtCompatible
    @NullUnmarked
    final class UrlEscaperTesting {
      /**
       * Helper to assert common expected behaviour of uri escapers. You should call
       * assertBasicUrlEscaper() unless the escaper explicitly does not escape '%'.
       */
      static void assertBasicUrlEscaperExceptPercent(UnicodeEscaper e) {
        // URL escapers should throw null pointer exceptions for null input
        try {
          e.escape((String) null);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  7. 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 "&lt;" etc.
    public abstract class Escaper {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 15:45:16 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  8. 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 are
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 28 01:26:26 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/escape/testing/EscaperAsserts.java

      private EscaperAsserts() {}
    
      /**
       * Asserts that an escaper behaves correctly with respect to null inputs.
       *
       * @param escaper the non-null escaper to test
       */
      public static void assertBasic(Escaper escaper) throws IOException {
        // Escapers operate on characters: no characters, no escaping.
        Assert.assertEquals("", escaper.escape(""));
        // Assert that escapers throw null pointer exceptions.
        try {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jan 18 20:55:09 UTC 2022
    - 3.8K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/escape/testing/EscaperAsserts.java

      private EscaperAsserts() {}
    
      /**
       * Asserts that an escaper behaves correctly with respect to null inputs.
       *
       * @param escaper the non-null escaper to test
       */
      public static void assertBasic(Escaper escaper) throws IOException {
        // Escapers operate on characters: no characters, no escaping.
        Assert.assertEquals("", escaper.escape(""));
        // Assert that escapers throw null pointer exceptions.
        try {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jan 18 20:55:09 UTC 2022
    - 3.8K bytes
    - Viewed (0)
Back to top