Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 15 of 15 for UnicodeEscaper (0.29 sec)

  1. 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"));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/escape/ArrayBasedUnicodeEscaperTest.java

      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) {
              @Override
              protected char[] escapeUnsafe(int c) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 07 23:02:38 GMT 2024
    - 5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/escape/Escaper.java

     * with short strings already known to be free of unpaired surrogates.
     *
     * <p>The two primary implementations of this interface are {@link CharEscaper} and {@link
     * UnicodeEscaper}. They are heavily optimized for performance and greatly simplify the task of
     * implementing new escapers. It is strongly recommended that when implementing a new escaper you
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 01 16:02:17 GMT 2021
    - 4.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/escape/ArrayBasedUnicodeEscaper.java

    import com.google.common.annotations.GwtCompatible;
    import java.util.Map;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A {@link UnicodeEscaper} that uses an array to quickly look up replacement characters for a given
     * code point. An additional safe range is provided that determines whether code points without
    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)
  5. android/guava/src/com/google/common/net/PercentEscaper.java

    package com.google.common.net;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.escape.UnicodeEscaper;
    import javax.annotation.CheckForNull;
    
    /**
     * 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.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.7K bytes
    - Viewed (0)
Back to top