- Comments
- D
- Search
- Home

Last update Sun Jul 1 11:16:39 2007

# 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 ;/?:@&=+$,-.!~*'() Reserved URI characters are ;/?:@&=+$, Escape sequences consist of % followed by two hex digits.
See Also:
RFC 3986
Wikipedia

const(char)[] decode(const(char)[] encodedURI);
  Decodes the URI string encodedURI into a UTF-8 string and returns it. Escape sequences that resolve to reserved URI characters are not replaced. Escape sequences that resolve to the '#' character are not replaced.
const(char)[] decodeComponent(const(char)[] encodedURIComponent);
  Decodes the URI string encodedURI into a UTF-8 string and returns it. All escape sequences are decoded.
const(char)[] encode(const(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.
const(char)[] encodeComponent(const(char)[] uriComponent);
  Encodes the UTF-8 string uriComponent into a URI and returns that URI. Any character not a letter, digit, or one of -.!~*'() is escaped.

Copyright © 1999-2007 by Digital Mars, All Rights Reserved | Page generated by Ddoc.