- Sort Score
- Num 10 results
- Language All
Results 1 - 8 of 8 for IdnaMappingTable (0.47 seconds)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt
* strictly ASCII. This is intended to make it efficient to encode this data as a string, and to * index into it as a string. * * The mappings data contains non-ASCII characters. */ internal class IdnaMappingTable internal constructor( val sections: String, val ranges: String, val mappings: String, ) { /** * Returns true if the [codePoint] was applied successfully. Returns false if it was disallowed.
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 9K bytes - Click Count (0) -
okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/GenerateIdnaMappingTableCode.kt
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: * * ``` * internal val IDNA_MAPPING_TABLE: IdnaMappingTable = IdnaMappingTable( * sections = "...", * ranges = "...",
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 2.8K bytes - Click Count (1) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/idn/IdnaMappingTableTest.kt
private lateinit var compactTable: IdnaMappingTable @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,
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) -
okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/MappingTables.kt
* limitations under the License. */ package okhttp3.internal.idn import kotlin.math.abs import kotlin.streams.toList import okio.Buffer /** Index [table] for compactness as specified by `IdnaMappingTable`. */ fun buildIdnaMappingTableData(table: SimpleIdnaMappingTable): IdnaMappingTableData { val simplified = mergeAdjacentRanges(table.mappings) val withoutSectionSpans = withoutSectionSpans(simplified)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 8.3K bytes - Click Count (0) -
okhttp/build.gradle.kts
} val generateIdnaMappingTable = tasks.register<JavaExec>("generateIdnaMappingTable") { val idnaOutput = layout.buildDirectory.dir("generated/sources/idnaMappingTable") outputs.dir(idnaOutput) mainClass.set("okhttp3.internal.idn.GenerateIdnaMappingTableCode") args(idnaOutput.get()) classpath = generateIdnaMappingTableConfiguration } kotlin {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Feb 04 22:16:39 GMT 2026 - 11.4K bytes - Click Count (0) -
android-test-app/proguard-rules.pro
# no rules should be needed -whyareyoukeeping class okhttp3.internal.idn.IdnaMappingTable { *;Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Aug 03 19:38:06 GMT 2025 - 100 bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/UrlComponentEncodingTester.kt
companion object { /** Arbitrary code point that's 2 bytes in UTF-8 and valid in IdnaMappingTable.txt. */ private const val UNICODE_2 = 0x1a5 /** Arbitrary code point that's 3 bytes in UTF-8 and valid in IdnaMappingTable.txt. */ private const val UNICODE_3 = 0x2202 /** Arbitrary code point that's 4 bytes in UTF-8 and valid in IdnaMappingTable.txt. */ private const val UNICODE_4 = 0x1d11e /**Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 12.3K bytes - Click Count (0) -
okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/SimpleIdnaMappingTable.kt
when (val newline = indexOf('\n'.code.toByte())) { -1L -> skip(buffer.size) // Exhaust this source. else -> skip(newline + 1) } } /** * Reads lines from `IdnaMappingTable.txt`. * * Comment lines are either blank or start with a `#` character. Lines may also end with a comment. * All comments are ignored. * * Regular lines contain fields separated by semicolons. *
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)