Manipulate and Parse URLs
List of Global Functions
Build - Build URL from tokens as parsed with Parse
Check - Check URL
EscapeString - Escape reserved characters in string used as a part of URL (e.g. '%' => '%25', '@' => '%40'...)
Parse - Tokenize URL
UnEscapeString - Escape reserved characters in string used as a part of URL (e.g. '%' => '%25', '@' => '%40'...)
List of Global Variables
transform_map_filename - Transform map used for (un)escaping characters in file location part of an URL. It doesn't contain '%' because this character must be used in a particular order (the first or the last) during processing
transform_map_passwd - Transform map used for (un)escaping characters in username/password part of an URL. It doesn't contain '%' because this character must be used in a particular order (the first or the last) during processing
transform_map_query - Transform map used for (un)escaping characters in query part of a URL. It doesn't contain '%' because this character must be used in a particular order (the first or the last) during processing
Build URL from tokens as parsed with Parse
Function parameters
map tokens
Return value
string - url, empty string if invalid data is used to build the url.
Escape reserved characters in string used as a part of URL (e.g. '%' => '%25', '@' => '%40'...)
Function parameters
string in
map<string,string> transform
Return value
string - escaped string
Tokenize URL
Function parameters
string url
Return value
map - URL split to tokens
Transform map used for (un)escaping characters in file location part of an URL. It doesn't contain '%' because this character must be used in a particular order (the first or the last) during processing
Transform map used for (un)escaping characters in username/password part of an URL. It doesn't contain '%' because this character must be used in a particular order (the first or the last) during processing