Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for getReplacementArray (0.11 sec)

  1. android/guava-tests/test/com/google/common/escape/ArrayBasedEscaperMapTest.java

        // Non-null array of zero length.
        assertThat(fem.getReplacementArray()).isEmpty();
      }
    
      public void testMapLength() {
        Map<Character, String> map =
            ImmutableMap.of(
                'a', "first",
                'z', "last");
        ArrayBasedEscaperMap fem = ArrayBasedEscaperMap.create(map);
        // Array length is highest character value + 1
        assertThat(fem.getReplacementArray()).hasLength('z' + 1);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Feb 18 15:41:04 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/escape/ArrayBasedEscaperMap.java

      private ArrayBasedEscaperMap(char[][] replacementArray) {
        this.replacementArray = replacementArray;
      }
    
      // Returns the non-null array of replacements for fast lookup.
      char[][] getReplacementArray() {
        return replacementArray;
      }
    
      // Creates a replacement array from the given map. The returned array is a
      // linear lookup table of replacement character sequences indexed by the
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 28 01:26:26 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/escape/ArrayBasedEscaperMap.java

      private ArrayBasedEscaperMap(char[][] replacementArray) {
        this.replacementArray = replacementArray;
      }
    
      // Returns the non-null array of replacements for fast lookup.
      char[][] getReplacementArray() {
        return replacementArray;
      }
    
      // Creates a replacement array from the given map. The returned array is a
      // linear lookup table of replacement character sequences indexed by the
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 28 01:26:26 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/escape/ArrayBasedUnicodeEscaper.java

          int safeMin,
          int safeMax,
          @Nullable String unsafeReplacement) {
        checkNotNull(escaperMap); // GWT specific check (do not optimize)
        this.replacements = escaperMap.getReplacementArray();
        this.replacementsLength = replacements.length;
        if (safeMax < safeMin) {
          // If the safe range is empty, set the range limits to opposite extremes
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 15:45:16 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/escape/ArrayBasedCharEscaper.java

       */
      protected ArrayBasedCharEscaper(ArrayBasedEscaperMap escaperMap, char safeMin, char safeMax) {
    
        checkNotNull(escaperMap); // GWT specific check (do not optimize)
        this.replacements = escaperMap.getReplacementArray();
        this.replacementsLength = replacements.length;
        if (safeMax < safeMin) {
          // If the safe range is empty, set the range limits to opposite extremes
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  6. guava/src/com/google/common/escape/ArrayBasedUnicodeEscaper.java

          int safeMin,
          int safeMax,
          @Nullable String unsafeReplacement) {
        checkNotNull(escaperMap); // GWT specific check (do not optimize)
        this.replacements = escaperMap.getReplacementArray();
        this.replacementsLength = replacements.length;
        if (safeMax < safeMin) {
          // If the safe range is empty, set the range limits to opposite extremes
    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