|
ELinks 0.19.1
|

Data Structures | |
| struct | uri |
| struct | uri_list |
Macros | |
| #define | POST_CHAR 1 |
| #define | POST_CHAR_S "\001" |
| #define | FILE_CHAR '\002' |
| #define | POSITION_CHAR '\003' |
| #define | POSITION_CHAR_S "\003" |
| #define | struri(uri) |
| #define | foreach_uri(uri, index, list) |
| #define | LOWEST_PORT 0 |
| #define | HIGHEST_PORT 65535 |
| #define | uri_port_is_valid(port) |
Typedefs | |
| typedef int | uri_errno_T |
| typedef unsigned int | uri_component_T |
Enumerations | |
| enum | uri_errno { URI_ERRNO_OK , URI_ERRNO_EMPTY , URI_ERRNO_INVALID_PROTOCOL , URI_ERRNO_NO_SLASHES , URI_ERRNO_TOO_MANY_SLASHES , URI_ERRNO_TRAILING_DOTS , URI_ERRNO_NO_HOST , URI_ERRNO_NO_PORT_COLON , URI_ERRNO_NO_HOST_SLASH , URI_ERRNO_IPV6_SECURITY , URI_ERRNO_INVALID_PORT , URI_ERRNO_INVALID_PORT_RANGE } |
| enum | uri_component { URI_NONE = 0 , URI_PROTOCOL = (1 << 0) , URI_IP_FAMILY = (1 << 1) , URI_USER = (1 << 2) , URI_PASSWORD = (1 << 3) , URI_HOST = (1 << 4) , URI_PORT = (1 << 5) , URI_DEFAULT_PORT = (1 << 6) , URI_DATA = (1 << 7) , URI_FRAGMENT = (1 << 8) , URI_POST = (1 << 9) , URI_POST_INFO = (1 << 10) , URI_IDN = (1 << 11) , URI_PATH = (1 << 12) , URI_FILENAME = (1 << 13) , URI_QUERY = (1 << 14) , URI_SPECIAL = URI_DEFAULT_PORT | URI_PATH | URI_FILENAME | URI_QUERY , URI_RARE = URI_SPECIAL | URI_POST | URI_POST_INFO | URI_IDN , URI_PUBLIC = ~(URI_PASSWORD | URI_RARE) | URI_POST_INFO , URI_ORIGINAL = ~URI_RARE , URI_BASE = ~(URI_RARE | URI_FRAGMENT) | URI_POST , URI_BASE_FRAGMENT = URI_BASE | URI_FRAGMENT , URI_SERVER = ~(URI_RARE | URI_DATA | URI_FRAGMENT) , URI_HTTP_AUTH = ~(URI_RARE | URI_USER | URI_PASSWORD | URI_DATA | URI_FRAGMENT) , URI_HTTP_HOST = URI_HOST | URI_PORT | URI_IDN , URI_HTTP_REFERRER_HOST = URI_PROTOCOL | URI_HOST | URI_PORT , URI_HTTP_REFERRER = URI_HTTP_REFERRER_HOST | URI_DATA , URI_HTTP_CONNECT = URI_HOST | URI_PORT | URI_DEFAULT_PORT , URI_DIR_LOCATION = URI_PROTOCOL | URI_HOST | URI_PORT | URI_IDN , URI_DNS_HOST = URI_HOST | URI_IDN , URI_HOST_PORT = URI_HOST | URI_PORT , URI_PROXY = ~(URI_RARE | URI_FRAGMENT) | URI_IDN , URI_KEEPALIVE = URI_PROTOCOL | URI_USER | URI_PASSWORD | URI_HOST | URI_PORT , URI_FORM_GET = URI_SERVER | URI_PATH } |
Functions | |
| uri_errno_T | parse_uri (struct uri *uri, char *uristring) |
| struct uri * | add_to_uri_list (struct uri_list *list, struct uri *uri) |
| void | free_uri_list (struct uri_list *list) |
| struct uri * | get_uri (char *string, uri_component_T components) |
| void | done_uri (struct uri *uri) |
| static struct uri * | get_uri_reference (struct uri *uri) |
| struct uri * | get_composed_uri (struct uri *uri, uri_component_T components) |
| struct uri * | get_translated_uri (char *uristring, char *cwd) |
| char * | normalize_uri (struct uri *uri, char *uristring) |
| int | compare_uri (const struct uri *uri1, const struct uri *uri2, uri_component_T components) |
| struct string * | add_uri_to_string (struct string *string, const struct uri *uri, uri_component_T components) |
| struct string * | add_string_uri_to_string (struct string *string, char *uristring, uri_component_T components) |
| char * | get_uri_string (const struct uri *uri, uri_component_T components) |
| int | get_uri_port (const struct uri *uri) |
| void | encode_uri_string (struct string *string, const char *name, int namelen, int convert_slashes) |
| void | encode_uri_string_percent (struct string *string, const char *name, int namelen) |
| void | encode_win32_uri_string (struct string *string, char *name, int namelen) |
| void | decode_uri_string (struct string *string) |
| void | decode_uri (char *uristring) |
| void | decode_uri_string_for_display (struct string *string) |
| void | decode_uri_for_display (char *uristring) |
| char * | get_extension_from_uri (struct uri *uri) |
| char * | join_urls (struct uri *base, const char *relative) |
| int | end_with_known_tld (const char *s, int slen) |
| static int | get_real_uri_length (struct uri *uri) |
| int | is_ip_address (const char *address, int addresslen) |
| int | is_in_domain (char *domain, char *server, int server_len) |
| #define FILE_CHAR '\002' |
| #define foreach_uri | ( | uri, | |
| index, | |||
| list ) |
| #define HIGHEST_PORT 65535 |
| #define LOWEST_PORT 0 |
| #define POSITION_CHAR '\003' |
| #define POSITION_CHAR_S "\003" |
| #define POST_CHAR 1 |
| #define POST_CHAR_S "\001" |
| #define uri_port_is_valid | ( | port | ) |
| typedef unsigned int uri_component_T |
| typedef int uri_errno_T |
| enum uri_component |
| enum uri_errno |
| struct string * add_string_uri_to_string | ( | struct string * | string, |
| char * | uristring, | ||
| uri_component_T | components ) |
| struct string * add_uri_to_string | ( | struct string * | string, |
| const struct uri * | uri, | ||
| uri_component_T | components ) |
| int compare_uri | ( | const struct uri * | uri1, |
| const struct uri * | uri2, | ||
| uri_component_T | components ) |
| void decode_uri | ( | char * | uristring | ) |
| void decode_uri_for_display | ( | char * | uristring | ) |
| void decode_uri_string | ( | struct string * | string | ) |
| void decode_uri_string_for_display | ( | struct string * | string | ) |
| void done_uri | ( | struct uri * | uri | ) |
| void encode_uri_string | ( | struct string * | string, |
| const char * | name, | ||
| int | namelen, | ||
| int | convert_slashes ) |
| void encode_uri_string_percent | ( | struct string * | string, |
| const char * | name, | ||
| int | namelen ) |
| void encode_win32_uri_string | ( | struct string * | string, |
| char * | name, | ||
| int | namelen ) |
| int end_with_known_tld | ( | const char * | s, |
| int | slen ) |
| void free_uri_list | ( | struct uri_list * | list | ) |
| struct uri * get_composed_uri | ( | struct uri * | uri, |
| uri_component_T | components ) |
| char * get_extension_from_uri | ( | struct uri * | uri | ) |
|
inlinestatic |
| struct uri * get_translated_uri | ( | char * | uristring, |
| char * | cwd ) |
| struct uri * get_uri | ( | char * | string, |
| uri_component_T | components ) |
| int get_uri_port | ( | const struct uri * | uri | ) |
| char * get_uri_string | ( | const struct uri * | uri, |
| uri_component_T | components ) |
| int is_in_domain | ( | char * | domain, |
| char * | server, | ||
| int | server_len ) |
| int is_ip_address | ( | const char * | address, |
| int | addresslen ) |
| char * join_urls | ( | struct uri * | base, |
| const char * | relative ) |
| char * normalize_uri | ( | struct uri * | uri, |
| char * | uristring ) |
| uri_errno_T parse_uri | ( | struct uri * | uri, |
| char * | uristring ) |