silk.json.schema_format_idna_data.

Unicode 16.0.0 IDNA mapping and derived-property tables used by JSON Schema formats.

Public declarations: 4.

row#

silk
pub fn row(cp: u32) -> usize

Returns the table row for a Unicode scalar, for use by status and replacement.

status#

silk
pub fn status(row: usize) -> u8

Returns 0 for unchanged, 1 for ignored, 2 for mapped, and 3 for disallowed scalars.

replacement#

silk
pub fn replacement(row: usize) -> string<'static>

Returns the UTF-8 replacement of a mapped row; the returned view is static.

pvalid#

silk
pub fn pvalid(cp: u32) -> bool

Returns the IDNA2008 PVALID property, excluding characters requiring contextual checks.

Profiles: aarch64-apple-darwin, aarch64-unknown-linux-gnu, aarch64-unknown-linux-gnu-no-libc, x86_64-unknown-linux-gnu, x86_64-unknown-linux-gnu-no-libc, wasm32-unknown-unknown, wasm32-wasip1, wasm32-wasip2, x86_64-pc-windows-msvc, wasm64-unknown-unknown.

View the source of this page