Skip to content

IRIToURI

[Source]

Convert an IRI to a URI by percent-encoding all non-ASCII bytes.

Each component is processed byte-by-byte: bytes >= 0x80 become %HH, existing %XX triplets pass through unchanged, and ASCII bytes pass through unchanged. The scheme component is always ASCII per RFC 3986 and is passed through without modification.

Always succeeds — any byte sequence is valid input.

primitive val IRIToURI

Constructors

create

[Source]

new val create()
: IRIToURI val^

Returns


Public Functions

apply

[Source]

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

Parameters

Returns


eq

[Source]

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

Parameters

Returns


ne

[Source]

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

Parameters

Returns