Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 92 for mescapes (0.05 sec)

  1. guava-tests/test/com/google/common/net/UrlEscaperTesting.java

        assertUnicodeEscaping(e, "%F4%8F%BF%BF", '\uDBFF', '\uDFFF');
    
        assertEquals("", e.escape(""));
        assertEquals("safestring", e.escape("safestring"));
        assertEquals("embedded%00null", e.escape("embedded\0null"));
        assertEquals("max%EF%BF%BFchar", e.escape("max\uffffchar"));
      }
    
      // Helper to assert common expected behaviour of uri escapers.
      static void assertBasicUrlEscaper(UnicodeEscaper e) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 17:53:22 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/escape/EscapersTest.java

        Escaper escaper = Escapers.nullEscaper();
        EscaperAsserts.assertBasic(escaper);
        String s = "\0\n\t\\az09~\uD800\uDC00\uFFFF";
        assertEquals("null escaper should have no effect", s, escaper.escape(s));
      }
    
      public void testBuilderInitialStateNoReplacement() {
        // Unsafe characters aren't modified by default (unsafeReplacement == null).
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/net/UrlEscaperTesting.java

        assertUnicodeEscaping(e, "%F4%8F%BF%BF", '\uDBFF', '\uDFFF');
    
        assertEquals("", e.escape(""));
        assertEquals("safestring", e.escape("safestring"));
        assertEquals("embedded%00null", e.escape("embedded\0null"));
        assertEquals("max%EF%BF%BFchar", e.escape("max\uffffchar"));
      }
    
      // Helper to assert common expected behaviour of uri escapers.
      static void assertBasicUrlEscaper(UnicodeEscaper e) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 17:53:22 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/escape/ArrayBasedUnicodeEscaper.java

              || c < safeMinChar) {
            return escapeSlow(s, i);
          }
        }
        return s;
      }
    
      /**
       * Escapes a single Unicode code point using the replacement array and safe range values. If the
       * given character does not have an explicit replacement and lies outside the safe range then
       * {@link #escapeUnsafe} is called.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/escape/UnicodeEscaperTest.java

          "\0abyz\u0080\u0100\u0800\u1000ABYZ\uffff" + SMALLEST_SURROGATE + "0189" + LARGEST_SURROGATE;
    
      // Escapes nothing
      private static final UnicodeEscaper NOP_ESCAPER =
          new UnicodeEscaper() {
            @Override
            protected char @Nullable [] escape(int c) {
              return null;
            }
          };
    
      // Escapes everything except [a-zA-Z0-9]
      private static final UnicodeEscaper SIMPLE_ESCAPER =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/escape/UnicodeEscaperTest.java

          "\0abyz\u0080\u0100\u0800\u1000ABYZ\uffff" + SMALLEST_SURROGATE + "0189" + LARGEST_SURROGATE;
    
      // Escapes nothing
      private static final UnicodeEscaper NOP_ESCAPER =
          new UnicodeEscaper() {
            @Override
            protected char @Nullable [] escape(int c) {
              return null;
            }
          };
    
      // Escapes everything except [a-zA-Z0-9]
      private static final UnicodeEscaper SIMPLE_ESCAPER =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/escape/ArrayBasedEscaperMap.java

       *
       * @param replacements a map of characters to their escaped representations
       */
      public static ArrayBasedEscaperMap create(Map<Character, String> replacements) {
        return new ArrayBasedEscaperMap(createReplacementArray(replacements));
      }
    
      // The underlying replacement array we can share between multiple escaper
      // instances.
      private final char[][] replacementArray;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. compat/maven-embedder/src/main/java/org/apache/maven/cli/props/MavenProperties.java

         * is that in JavaScript, a single quote must be escaped.</p>
         *
         * <p>Example:</p>
         * <pre>
         * input string: He didn't say, "Stop!"
         * output string: He didn't say, \"Stop!\"
         * </pre>
         *
         *
         * @param str  String to escape values in, may be null
         * @return String with escaped values, <code>null</code> if null string input
         */
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 38.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/net/UrlEscapersTest.java

        UnicodeEscaper e = (UnicodeEscaper) urlFormParameterEscaper();
        // Verify that these are the same escaper (as documented)
        assertSame(e, urlFormParameterEscaper());
        assertBasicUrlEscaper(e);
    
        /*
         * Specified as safe by RFC 2396 but not by java.net.URLEncoder. These tests will start failing
         * when the escaper is made compliant with RFC 2396, but that's a good thing (just change them
         * to assertUnescaped).
         */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 17:53:22 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/net/UrlEscapersTest.java

        UnicodeEscaper e = (UnicodeEscaper) urlFormParameterEscaper();
        // Verify that these are the same escaper (as documented)
        assertSame(e, urlFormParameterEscaper());
        assertBasicUrlEscaper(e);
    
        /*
         * Specified as safe by RFC 2396 but not by java.net.URLEncoder. These tests will start failing
         * when the escaper is made compliant with RFC 2396, but that's a good thing (just change them
         * to assertUnescaped).
         */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 17:53:22 UTC 2024
    - 2.7K bytes
    - Viewed (0)
Back to top