Skip to content

URIToIRI

[Source]

Convert a URI to an IRI by selectively decoding percent-encoded UTF-8 sequences that represent allowed IRI characters.

Percent-encoded sequences that decode to valid UTF-8 ucschar codepoints (RFC 3987 section 2.2) are replaced with their literal UTF-8 bytes. In the query component, iprivate codepoints are also decoded. Bidi formatting characters (U+200E, U+200F, U+202A-202E) always stay percent-encoded per RFC 3987 section 4.1.

Sequences that don't form valid UTF-8, or decode to codepoints outside the allowed ranges, remain percent-encoded. Always succeeds.

primitive val URIToIRI

Constructors

create

[Source]

new val create()
: URIToIRI val^

Returns


Public Functions

apply

[Source]

fun box apply(
  uri: URI val)
: URI val

Parameters

Returns


eq

[Source]

fun box eq(
  that: URIToIRI val)
: Bool val

Parameters

Returns


ne

[Source]

fun box ne(
  that: URIToIRI val)
: Bool val

Parameters

Returns