Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for ArrayBasedCharEscaper (0.23 sec)

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

       * @param safeMax the highest character value in the safe range
       */
      protected ArrayBasedCharEscaper(
          Map<Character, String> replacementMap, char safeMin, char safeMax) {
    
        this(ArrayBasedEscaperMap.create(replacementMap), safeMin, safeMax);
      }
    
      /**
       * Creates a new ArrayBasedCharEscaper instance with the given replacement map and specified safe
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 18 20:55:09 GMT 2022
    - 6.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/escape/ArrayBasedCharEscaperTest.java

              '\t', "<tab>",
              '&', "<and>");
    
      public void testSafeRange() throws IOException {
        // Basic escaping of unsafe chars (wrap them in {,}'s)
        CharEscaper wrappingEscaper =
            new ArrayBasedCharEscaper(NO_REPLACEMENTS, 'A', 'Z') {
              @Override
              protected char[] escapeUnsafe(char c) {
                return ("{" + c + "}").toCharArray();
              }
            };
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 23:02:38 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/escape/ArrayBasedCharEscaperTest.java

              '\t', "<tab>",
              '&', "<and>");
    
      public void testSafeRange() throws IOException {
        // Basic escaping of unsafe chars (wrap them in {,}'s)
        CharEscaper wrappingEscaper =
            new ArrayBasedCharEscaper(NO_REPLACEMENTS, 'A', 'Z') {
              @Override
              protected char[] escapeUnsafe(char c) {
                return ("{" + c + "}").toCharArray();
              }
            };
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 23:02:38 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/escape/ArrayBasedEscaperMap.java

     * ArrayBasedCharEscaper} or {@link ArrayBasedUnicodeEscaper} instances. This class should be used
     * when more than one escaper is created using the same character replacement mapping to allow the
     * underlying (implementation specific) data structures to be shared.
     *
     * <p>The size of the data structure used by ArrayBasedCharEscaper and ArrayBasedUnicodeEscaper is
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 18 20:55:09 GMT 2022
    - 3.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/escape/Escapers.java

      /**
       * A builder for simple, fast escapers.
       *
       * <p>Typically an escaper needs to deal with the escaping of high valued characters or code
       * points. In these cases it is necessary to extend either {@link ArrayBasedCharEscaper} or {@link
       * ArrayBasedUnicodeEscaper} to provide the desired behavior. However this builder is suitable for
       * creating escapers that replace a relative small set of characters.
       *
       * @author David Beaumont
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 10.5K bytes
    - Viewed (0)
  6. 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
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 23:02:38 GMT 2024
    - 5K bytes
    - Viewed (0)
  7. 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
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 23:02:38 GMT 2024
    - 5K bytes
    - Viewed (1)
Back to top