Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for PercentEscaper (0.23 sec)

  1. 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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. 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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. 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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jul 19 16:02:36 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  4. 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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jul 19 16:02:36 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  5. 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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jan 18 20:55:09 UTC 2022
    - 13.2K bytes
    - Viewed (0)
Back to top