Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 91 for escaping (0.23 sec)

  1. android/guava/src/com/google/common/escape/CharEscaper.java

       * called by the {@link #escape(String)} method when it discovers that escaping is required. It is
       * protected to allow subclasses to override the fastpath escaping function to inline their
       * escaping test. See {@link CharEscaperBuilder} for an example usage.
       *
       * @param s the literal string to be escaped
       * @param index the index to start escaping from
       * @return the escaped form of {@code string}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 18 20:55:09 GMT 2022
    - 6.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/escape/ArrayBasedCharEscaper.java

     * array contains information about special ASCII characters such as {@code \\t} and {@code \\n}
     * while {@link #escapeUnsafe} is overridden to handle general escaping of the form {@code \\uxxxx}.
     *
     * <p>The size of the data structure used by {@link ArrayBasedCharEscaper} is proportional to the
     * highest valued character that requires escaping. For example a replacement map containing the
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 18 20:55:09 GMT 2022
    - 6.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/escape/UnicodeEscaper.java

       * called by the {@link #escape(String)} method when it discovers that escaping is required. It is
       * protected to allow subclasses to override the fastpath escaping function to inline their
       * escaping test. See {@link CharEscaperBuilder} for an example usage.
       *
       * <p>This method is not reentrant and may only be invoked by the top level {@link
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 18 20:55:09 GMT 2022
    - 13.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/escape/Escapers.java

    @ElementTypesAreNonnullByDefault
    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;
      }
    
      // An Escaper that efficiently performs no escaping.
      // Extending CharEscaper (instead of Escaper) makes Escapers.compose() easier.
      private static final Escaper NULL_ESCAPER =
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 10.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/escape/ArrayBasedUnicodeEscaper.java

     * general way.
     *
     * <p>A good example of usage of this class is for HTML escaping where the replacement array
     * contains information about the named HTML entities such as {@code &amp;} and {@code &quot;} while
     * {@link #escapeUnsafe} is overridden to handle general escaping of the form {@code &#NNNNN;}.
     *
     * <p>The size of the data structure used by {@link ArrayBasedUnicodeEscaper} is proportional to the
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/net/UrlEscapers.java

       * href="https://goo.gl/MplK6I">URL form parameter names and values</a>. Escaping is performed
       * with the UTF-8 character encoding. The caller is responsible for <a
       * href="https://goo.gl/9EfkM1">replacing any unpaired carriage return or line feed characters
       * with a CR+LF pair</a> on any non-file inputs before escaping them with this escaper.
       *
       * <p>When escaping a String, the following rules apply:
       *
       * <ul>
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 28 15:04:33 GMT 2021
    - 6.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/xml/XmlEscapers.java

     * elements' text contents. When possible, avoid manual escaping by using templating systems and
     * high-level APIs that provide autoescaping. For example, consider <a
     * href="http://www.xom.nu/">XOM</a> or <a href="http://www.jdom.org/">JDOM</a>.
     *
     * <p><b>Note:</b> Currently the escapers provided by this class do not escape any characters
     * outside the ASCII character range. Unlike HTML escaping the XML escapers will not escape
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 18 20:55:09 GMT 2022
    - 6.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/html/HtmlEscapers.java

     * most elements' text contents. When possible, avoid manual escaping by using templating
     * systems and high-level APIs that provide autoescaping.
     * One Google-authored templating system available for external use is <a
     * href="https://developers.google.com/closure/templates/">Closure Templates</a>.
     *
     * <p>HTML escaping is particularly tricky: For example, <a href="http://goo.gl/5TgZb">some
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 14 22:08:54 GMT 2021
    - 3K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/escape/ArrayBasedUnicodeEscaperTest.java

              '&', "<and>");
      private static final char[] NO_CHARS = new char[0];
    
      public void testReplacements() throws IOException {
        // In reality this is not a very sensible escaper to have (if you are only
        // escaping elements from a map you would use a ArrayBasedCharEscaper).
        UnicodeEscaper escaper =
            new ArrayBasedUnicodeEscaper(
                SIMPLE_REPLACEMENTS, Character.MIN_VALUE, Character.MAX_CODE_POINT, null) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 23:02:38 GMT 2024
    - 5K bytes
    - Viewed (1)
  10. guava-testlib/src/com/google/common/escape/testing/EscaperAsserts.java

        // Escapers operate on characters: no characters, no escaping.
        Assert.assertEquals("", escaper.escape(""));
        // Assert that escapers throw null pointer exceptions.
        try {
          escaper.escape((String) null);
          Assert.fail("exception not thrown when escaping a null string");
        } catch (NullPointerException e) {
          // pass
        }
      }
    
      /**
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Jan 18 20:55:09 GMT 2022
    - 3.8K bytes
    - Viewed (0)
Back to top