Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for nextEscapeIndex (0.07 sec)

  1. android/guava/src/com/google/common/escape/UnicodeEscaper.java

       *
       * <p><b>Note:</b> When implementing an escaper it is a good idea to override this method for
       * 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}).
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 15:45:16 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/escape/UnicodeEscaper.java

       *
       * <p><b>Note:</b> When implementing an escaper it is a good idea to override this method for
       * 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}).
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 15:45:16 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/escape/UnicodeEscaperTest.java

              }
    
              // Inefficient implementation that defines all letters as escapable.
              @Override
              protected int nextEscapeIndex(CharSequence csq, int index, int end) {
                while (index < end && !Character.isLetter(csq.charAt(index))) {
                  index++;
                }
                return index;
              }
            };
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/escape/UnicodeEscaperTest.java

              }
    
              // Inefficient implementation that defines all letters as escapable.
              @Override
              protected int nextEscapeIndex(CharSequence csq, int index, int end) {
                while (index < end && !Character.isLetter(csq.charAt(index))) {
                  index++;
                }
                return index;
              }
            };
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/escape/ArrayBasedUnicodeEscaper.java

          }
        }
        if (cp >= safeMin && cp <= safeMax) {
          return null;
        }
        return escapeUnsafe(cp);
      }
    
      /* Overridden for performance. */
      @Override
      protected final int nextEscapeIndex(CharSequence csq, int index, int end) {
        while (index < end) {
          char c = csq.charAt(index);
          if ((c < replacementsLength && replacements[c] != null)
              || c > safeMaxChar
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 15:45:16 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/net/PercentEscaper.java

      /*
       * Overridden for performance. For unescaped strings this improved the performance of the uri
       * escaper from ~760ns to ~400ns as measured by {@link CharEscapersBenchmark}.
       */
      @Override
      protected int nextEscapeIndex(CharSequence csq, int index, int end) {
        checkNotNull(csq);
        for (; index < end; index++) {
          char c = csq.charAt(index);
          if (c >= safeOctets.length || !safeOctets[c]) {
            break;
          }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 28 01:26:26 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/escape/ArrayBasedUnicodeEscaper.java

          }
        }
        if (cp >= safeMin && cp <= safeMax) {
          return null;
        }
        return escapeUnsafe(cp);
      }
    
      /* Overridden for performance. */
      @Override
      protected final int nextEscapeIndex(CharSequence csq, int index, int end) {
        while (index < end) {
          char c = csq.charAt(index);
          if ((c < replacementsLength && replacements[c] != null)
              || c > safeMaxChar
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 15:45:16 UTC 2025
    - 8.5K bytes
    - Viewed (0)
Back to top