- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for mappings (0.22 sec)
-
okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/SimpleIdnaMappingTable.kt
* permissive and permits the `_` character. * * [mapping table]: https://www.unicode.org/reports/tr46/#IDNA_Mapping_Table * [mapping step]: https://www.unicode.org/reports/tr46/#ProcessingStepMap */ class SimpleIdnaMappingTable internal constructor( internal val mappings: List<Mapping>, ) { /**
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 6.8K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/idn/IdnaMappingTableTest.kt
@Test fun compareConstructedAndGeneratedCompactTables() { assertThat(IDNA_MAPPING_TABLE.sections).isEqualTo(compactTable.sections) assertThat(IDNA_MAPPING_TABLE.ranges).isEqualTo(compactTable.ranges) assertThat(IDNA_MAPPING_TABLE.mappings).isEqualTo(compactTable.mappings) } private fun String.map(): String { val buffer = Buffer() for (codePoint in codePoints()) {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 8.9K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt
* that of the preceding section. * * b2b3s2 is the offset into the ranges data. It is shifted by 2 because ranges are 4-byte aligned. * * Mappings Data (4,719 bytes) * =========================== * * This is UTF-8 character data. It is indexed into by b2b3 in the ranges dataset. * * Mappings may overlap. * * ASCII-Only * ========== *
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Tue Apr 02 11:39:58 GMT 2024 - 9K bytes - Viewed (0) -
okhttp-idna-mapping-table/README.md
OkHttp IDNA Mapping Table ========================= This module contains supporting tools for building the IDNA mapping table.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Tue May 02 11:21:58 GMT 2023 - 174 bytes - Viewed (0) -
okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/IdnaMappingTableData.kt
* limitations under the License. */ package okhttp3.internal.idn /** Recipe to build an `IdnaMappingTable`. */ class IdnaMappingTableData( val sections: String, val ranges: String, val mappings: String,
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Tue May 02 11:21:58 GMT 2023 - 777 bytes - Viewed (0) -
okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/MappingTables.kt
return result } /** Returns a copy of [mappings] with adjacent ranges merged wherever possible. */ internal fun mergeAdjacentRanges(mappings: List<Mapping>): List<Mapping> { var index = 0 val result = mutableListOf<Mapping>() while (index < mappings.size) { val mapping = mappings[index] val type = canonicalizeType(mapping.type) val mappedTo = mapping.mappedTo var unionWith: Mapping = mapping
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 8.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/idn/StringprepTablesReaderTest.kt
| """.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", ), mappings.mappings, ) }
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) -
okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/GenerateIdnaMappingTableCode.kt
} return buildIdnaMappingTableData(table) } /** * Generate a file containing the mapping table's string literals, like this: * * ``` * internal val IDNA_MAPPING_TABLE: IdnaMappingTable = IdnaMappingTable( * sections = "...", * ranges = "...", * mappings = "", * ) * ``` */ fun generateMappingTableFile(data: IdnaMappingTableData): FileSpec {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2.8K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/idn/StringprepReader.kt
val unassigned = readCodePointSet(base / "rfc3454.A.1.txt") val mapping = MappingListCodePointMapping( mutableMapOf<Int, String>() .apply { putAll(readCodePointMapping(base / "rfc3454.B.1.txt").mappings) putAll(readCodePointMapping(base / "rfc3454.B.2.txt").mappings) }, ) val prohibitSet = RangeListCodePointSet( ranges =
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) -
okhttp/src/test/java/okhttp3/internal/idn/IdnStringprep.kt
* [RFC 3491]: https://datatracker.ietf.org/doc/html/rfc3491 */ class Stringprep( /** Unassigned code points. */ val unassigned: CodePointSet, /** Mappings. Note table B.3 is not used in RFC 3491. */ val mapping: CodePointMapping, /** Prohibited code points. */ val prohibitSet: CodePointSet, /** RandALCat code points; bidi category is "R" or "AL". */ val randalcatSet: CodePointSet,
Plain Text - Registered: Fri Mar 29 11:42:11 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3.2K bytes - Viewed (0)