Synopsis#include <glib.h> #define G_URI_RESERVED_CHARS_ALLOWED_IN_PATH #define G_URI_RESERVED_CHARS_ALLOWED_IN_PATH_ELEMENT #define G_URI_RESERVED_CHARS_ALLOWED_IN_USERINFO #define G_URI_RESERVED_CHARS_GENERIC_DELIMITERS #define G_URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS char* g_uri_parse_scheme (const char *uri); char* g_uri_escape_string (const char *unescaped, const char *reserved_chars_allowed, gboolean allow_utf8); char* g_uri_unescape_string (const char *escaped_string, const char *illegal_characters); char* g_uri_unescape_segment (const char *escaped_string, const char *escaped_string_end, const char *illegal_characters); DescriptionFunctions for manipulating Universal Resource Identifiers (URIs) as defined by RFC 3986. It is highly recommended that you have read and understand RFC 3986 for understanding this API.
DetailsG_URI_RESERVED_CHARS_ALLOWED_IN_PATH#define G_URI_RESERVED_CHARS_ALLOWED_IN_PATH Allowed characters in a path. Includes "!$&'()*+,;=:@/".
G_URI_RESERVED_CHARS_ALLOWED_IN_PATH_ELEMENT#define G_URI_RESERVED_CHARS_ALLOWED_IN_PATH_ELEMENT Allowed characters in path elements. Includes "!$&'()*+,;=:@".
G_URI_RESERVED_CHARS_ALLOWED_IN_USERINFO#define G_URI_RESERVED_CHARS_ALLOWED_IN_USERINFO Allowed characters in userinfo as defined in RFC 3986. Includes "!$&'()*+,;=:".
G_URI_RESERVED_CHARS_GENERIC_DELIMITERS#define G_URI_RESERVED_CHARS_GENERIC_DELIMITERS Generic delimiters characters as defined in RFC 3986. Includes ":/?#[]@".
G_URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS#define G_URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS Subcomponent delimiter characters as defined in RFC 3986. Includes "!$&'()*+,;=".
g_uri_parse_scheme ()char* g_uri_parse_scheme (const char *uri); Gets the scheme portion of a URI string. RFC 3986 decodes the scheme as: URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] Common schemes include "file", "http", "svn+ssh", etc.
Since 2.16 g_uri_escape_string ()char* g_uri_escape_string (const char *unescaped, const char *reserved_chars_allowed, gboolean allow_utf8); Escapes a string for use in a URI.
Normally all characters that are not "unreserved" (i.e. ASCII alphanumerical
characters plus dash, dot, underscore and tilde) are escaped.
But if you specify characters in
Since 2.16 g_uri_unescape_string ()char* g_uri_unescape_string (const char *escaped_string, const char *illegal_characters); Unescapes a whole escaped string.
If any of the characters in
Since 2.16 g_uri_unescape_segment ()char* g_uri_unescape_segment (const char *escaped_string, const char *escaped_string_end, const char *illegal_characters); Unescapes a segment of an escaped string.
If any of the characters in
Since 2.16 |