Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for readPlainTextIdnaMappingTable (0.6 sec)

  1. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/GenerateIdnaMappingTableCode.kt

    }
    
    fun loadIdnaMappingTableData(): IdnaMappingTableData {
      val path = "/okhttp3/internal/idna/IdnaMappingTable.txt".toPath()
      val table =
        FileSystem.RESOURCES.read(path) {
          readPlainTextIdnaMappingTable()
        }
      return buildIdnaMappingTableData(table)
    }
    
    /**
     * Generate a file containing the mapping table's string literals, like this:
     *
     * ```
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  2. 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,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top