Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for PercentEscaper (0.14 sec)

  1. android/guava/src/com/google/common/net/PercentEscaper.java

     * href="https://url.spec.whatwg.org/#percent-encode">uppercase</a> hexadecimal sequences.
     *
     * @author David Beaumont
     * @since 15.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public final class PercentEscaper extends UnicodeEscaper {
    
      // In some escapers spaces are escaped to '+'
      private static final char[] PLUS_SIGN = {'+'};
    
      // Percent escapers output upper case hex digits (uri escapers require this).
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 8.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/net/PercentEscaper.java

     * href="https://url.spec.whatwg.org/#percent-encode">uppercase</a> hexadecimal sequences.
     *
     * @author David Beaumont
     * @since 15.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public final class PercentEscaper extends UnicodeEscaper {
    
      // In some escapers spaces are escaped to '+'
      private static final char[] PLUS_SIGN = {'+'};
    
      // Percent escapers output upper case hex digits (uri escapers require this).
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 8.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/net/PercentEscaperTest.java

      }
    
      /** Tests the various ways that the space character can be handled */
      public void testPlusForSpace() {
        UnicodeEscaper basicEscaper = new PercentEscaper("", false);
        UnicodeEscaper plusForSpaceEscaper = new PercentEscaper("", true);
        UnicodeEscaper spaceEscaper = new PercentEscaper(" ", false);
    
        assertEquals("string%20with%20spaces", basicEscaper.escape("string with spaces"));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 5.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/net/PercentEscaperTest.java

      }
    
      /** Tests the various ways that the space character can be handled */
      public void testPlusForSpace() {
        UnicodeEscaper basicEscaper = new PercentEscaper("", false);
        UnicodeEscaper plusForSpaceEscaper = new PercentEscaper("", true);
        UnicodeEscaper spaceEscaper = new PercentEscaper(" ", false);
    
        assertEquals("string%20with%20spaces", basicEscaper.escape("string with spaces"));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 5.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/net/UrlEscapers.java

       *
       */
      public static Escaper urlFormParameterEscaper() {
        return URL_FORM_PARAMETER_ESCAPER;
      }
    
      private static final Escaper URL_FORM_PARAMETER_ESCAPER =
          new PercentEscaper(URL_FORM_PARAMETER_OTHER_SAFE_CHARS, true);
    
      /**
       * Returns an {@link Escaper} instance that escapes strings so they can be safely included in <a
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 28 15:04:33 UTC 2021
    - 6.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/net/UrlEscapers.java

       *
       */
      public static Escaper urlFormParameterEscaper() {
        return URL_FORM_PARAMETER_ESCAPER;
      }
    
      private static final Escaper URL_FORM_PARAMETER_ESCAPER =
          new PercentEscaper(URL_FORM_PARAMETER_OTHER_SAFE_CHARS, true);
    
      /**
       * Returns an {@link Escaper} instance that escapes strings so they can be safely included in <a
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 28 15:04:33 UTC 2021
    - 6.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/escape/UnicodeEscaper.java

       * efficiency by inlining the implementation of {@link #nextEscapeIndex(CharSequence, int, int)}
       * directly. Doing this for {@link com.google.common.net.PercentEscaper} more than doubled the
       * performance for unescaped strings (as measured by {@code CharEscapersBenchmark}).
       *
       * @param string the literal string to be escaped
       * @return the escaped form of {@code string}
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 18 20:55:09 UTC 2022
    - 13.2K bytes
    - Viewed (0)
  8. guava/src/com/google/common/escape/UnicodeEscaper.java

       * efficiency by inlining the implementation of {@link #nextEscapeIndex(CharSequence, int, int)}
       * directly. Doing this for {@link com.google.common.net.PercentEscaper} more than doubled the
       * performance for unescaped strings (as measured by {@code CharEscapersBenchmark}).
       *
       * @param string the literal string to be escaped
       * @return the escaped form of {@code string}
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 18 20:55:09 UTC 2022
    - 13.2K bytes
    - Viewed (0)
Back to top