Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for mergeAdjacentDeltaMappedRanges (0.21 sec)

  1. okhttp-idna-mapping-table/src/test/kotlin/okhttp3/internal/idn/MappingTablesTest.kt

          Mapping(0x40080, 0x400ff, TYPE_DISALLOWED, ByteString.EMPTY),
        )
      }
    
      @Test fun mergeAdjacentDeltaMappedRangesWithMultipleDeltas() {
        assertThat(
          mergeAdjacentDeltaMappedRanges(
            mutableListOf(
              InlineDelta(1, 5),
              InlineDelta(2, 5),
              InlineDelta(3, 5),
              MappedRange.External(4, "a".encodeUtf8()),
            ),
          ),
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  2. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/MappingTables.kt

          }
      }
    
      for (sectionList in result.values) {
        mergeAdjacentDeltaMappedRanges(sectionList)
      }
    
      return result.toMap()
    }
    
    /**
     * Modifies [ranges] to combine any adjacent [MappedRange.InlineDelta] of same size to single entry.
     * @returns same instance of [ranges] for convenience
     */
    internal fun mergeAdjacentDeltaMappedRanges(ranges: MutableList<MappedRange>): MutableList<MappedRange> {
      var i = 0
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.2K bytes
    - Viewed (0)
Back to top