Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for safeChars (0.06 seconds)

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

       */
      public PercentEscaper(String safeChars, boolean plusForSpace) {
        // TODO(dbeaumont): Switch to static factory methods for creation now that class is final.
        // TODO(dbeaumont): Support escapers where alphanumeric chars are not safe.
        checkNotNull(safeChars); // eager for GWT.
        // Avoid any misunderstandings about the behavior of this escaper
        if (safeChars.matches(".*[0-9A-Za-z].*")) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 28 01:26:26 GMT 2024
    - 8.6K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/escape/ArrayBasedUnicodeEscaperTest.java

        assertThat(escaper.escape("\tFish & Chips\n")).isEqualTo("<tab>Fish <and> Chips<newline>");
    
        // Verify that everything else is left unescaped.
        String safeChars = "\0\u0100\uD800\uDC00\uFFFF";
        assertThat(escaper.escape(safeChars)).isEqualTo(safeChars);
    
        // Ensure that Unicode escapers behave correctly wrt badly formed input.
        String badUnicode = "\uDC00\uD800";
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Feb 18 15:41:04 GMT 2025
    - 5.2K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/net/PercentEscaperTest.java

        assertThat(e.escape("foo|bar")).isEqualTo("foo%7Cbar");
        assertThat(e.escape("foo%7Cbar")).isEqualTo("foo%7Cbar"); // idempotent
      }
    
      /** Test that giving a null 'safeChars' string causes a {@link NullPointerException}. */
      @SuppressWarnings("nullness") // test of a bogus call
      public void testBadArguments_null() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 5.4K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/net/PercentEscaperTest.java

        assertThat(e.escape("foo|bar")).isEqualTo("foo%7Cbar");
        assertThat(e.escape("foo%7Cbar")).isEqualTo("foo%7Cbar"); // idempotent
      }
    
      /** Test that giving a null 'safeChars' string causes a {@link NullPointerException}. */
      @SuppressWarnings("nullness") // test of a bogus call
      public void testBadArguments_null() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 5.4K bytes
    - Click Count (0)
Back to Top