IRIToURI¶
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.
Constructors¶
create¶
Returns¶
- IRIToURI val^
Public Functions¶
apply¶
Parameters¶
- iri: URI val
Returns¶
- URI val
eq¶
Parameters¶
- that: IRIToURI val
Returns¶
- Bool val
ne¶
Parameters¶
- that: IRIToURI val
Returns¶
- Bool val