D
Language
Phobos
Comparisons
object
std
std.base64
std.boxer
std.compiler
std.conv
std.ctype
std.date
std.file
std.format
std.gc
std.intrinsic
std.math
std.md5
std.mmfile
std.openrj
std.outbuffer
std.path
std.process
std.random
std.recls
std.regexp
std.socket
std.socketstream
std.stdint
std.stdio
std.cstream
std.stream
std.string
std.system
std.thread
std.uri
std.utf
std.zip
std.zlib
std.windows
std.linux
std.c
std.c.stdio
std.c.windows
std.c.linux
|
std.uri
Encode and decode Uniform Resource Identifiers (URIs).
URIs are used in internet transfer protocols.
Valid URI characters consist of letters, digits, and
the characters ;/?:@&=+$,-_.!~*'(). Escape sequences
consist of '%' followed by two hex digits.
- char[] decode(char[] encodedURI)
- Decodes the URI string encodedURI into a UTF-8 string
and returns it. Escape sequences that resolve to valid URI
characters are not replaced. Escape sequences that resolve
to the '#' character are not replaced.
- char[] decodeComponent(char[] encodedURIComponent)
- Decodes the URI string encodedURI into a UTF-8 string
and returns it. All escape sequences are decoded.
- char[] encode(char[] uri)
- Encodes the UTF-8 string uri into a URI and returns
that URI. Any character not a valid URI character is escaped.
The '#' character is not escaped.
- char[] encodeComponent(char[] uriComponent)
- Encodes the UTF-8 string uri into a URI and returns
that URI. Any character not a letter, digit, or one of
-_.!~*'() is escaped.
|