Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for readPlainTextIdnaMappingTable (0.2 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/idn/IdnaMappingTableTest.kt

      @BeforeEach
      fun setUp() {
        val path = "/okhttp3/internal/idna/IdnaMappingTable.txt".toPath()
        val plainTable =
          FileSystem.RESOURCES.read(path) {
            readPlainTextIdnaMappingTable()
          }
        table = plainTable
        val data = buildIdnaMappingTableData(plainTable)
        compactTable =
          IdnaMappingTable(
            sections = data.sections,
            ranges = data.ranges,
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 8.9K bytes
    - Click Count (0)
  2. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/SimpleIdnaMappingTable.kt

     *
     * For lines that contain a mapping target, the next thing is a sequence of hex code points (like
     * 0031 2044 0034).
     *
     * All other data is ignored.
     */
    fun BufferedSource.readPlainTextIdnaMappingTable(): SimpleIdnaMappingTable {
      val mappedTo = Buffer()
      val result = mutableListOf<Mapping>()
    
      while (!exhausted()) {
        // Skip comment and empty lines.
        when (select(optionsDelimiter)) {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 6.9K bytes
    - Click Count (0)
Back to Top