Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for readCodePointMappings (0.22 sec)

  1. okhttp/src/test/java/okhttp3/internal/idn/StringprepReader.kt

       */
      fun readCodePointMapping(path: Path): MappingListCodePointMapping {
        fileSystem.source(path).buffer().use { source ->
          return source.readCodePointMappings()
        }
      }
    }
    
    private val optionsSemicolon =
      Options.of(
        // 0 is ';'.
        ";".encodeUtf8(),
      )
    
    private val optionsSemicolonOrNewlineOrDash =
      Options.of(
    Plain Text
    - Registered: Fri Mar 29 11:42:11 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/idn/StringprepTablesReaderTest.kt

          """
          |    180C; ; Map to nothing
          |    0041; 0061; Case map
          |    0390; 03B9 0308 0301; Case map
          |
          """.trimMargin(),
        )
    
        val mappings = buffer.readCodePointMappings()
        assertEquals(
          mapOf(
            // Map to nothing.
            0x180c to "",
            // Case map.
            'A'.code to "a",
            // Case map.
            'ΐ'.code to "\u03B9\u0308\u0301",
          ),
    Plain Text
    - Registered: Fri Mar 29 11:42:11 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.4K bytes
    - Viewed (0)
Back to top