|
ELinks 0.19.1
|
#include <ctype.h>#include <errno.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sys/types.h>#include "elinks.h"#include "intl/libintl.h"#include "main/object.h"#include "protocol/map.h"#include "protocol/protocol.h"#include "protocol/uri.h"#include "util/conv.h"#include "util/error.h"#include "util/file.h"#include "util/hash.h"#include "util/memory.h"#include "util/string.h"
Data Structures | |
| struct | uri_cache_entry |
| struct | uri_cache |
Macros | |
| #define | can_compare_uri_components(comp) |
| #define | wants(x) |
| #define | normalize_uri_reparse(str) |
| #define | normalize_uri_noparse(uri) |
| #define | MAX_TRANSLATION_ATTEMPTS 32 |
| #define | ADD_EXTENSION_FROM_TYPE(string, type, ext) |
| #define | URI_LIST_GRANULARITY 0x3 |
| #define | realloc_uri_list(list) |
Functions | |
| static int | end_of_dir (unsigned char c) |
| static int | is_uri_dir_sep (const struct uri *uri, unsigned char pos) |
| int | is_in_domain (char *domain, char *server, int server_len) |
| int | is_ip_address (const char *address, int addresslen) |
| int | end_with_known_tld (const char *s, int slen) |
| static int | check_whether_file_exists (char *name) |
| static void | encode_file_uri_string (struct string *string, char *uristring) |
| static int | get_protocol_length (const char *url) |
| uri_errno_T | parse_uri (struct uri *uri, char *uristring) |
| int | get_uri_port (const struct uri *uri) |
| static int | compare_component (const char *a, int alen, const char *b, int blen) |
| int | compare_uri (const struct uri *a, const struct uri *b, uri_component_T components) |
| struct string * | add_uri_to_string (struct string *string, const struct uri *uri, uri_component_T components) |
| char * | get_uri_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 * | normalize_uri (struct uri *uri, char *uristring) |
| static struct uri * | transform_file_url (struct uri *uri, const char *cwd) |
| static char * | translate_url (const char *url, char *cwd) |
| char * | join_urls (struct uri *base, const char *rel) |
| static protocol_T | find_uri_protocol (char *newurl) |
| struct uri * | get_composed_uri (struct uri *uri, uri_component_T components) |
| struct uri * | get_translated_uri (char *uristring, char *cwd) |
| char * | get_extension_from_uri (struct uri *uri) |
| static int | safe_char (unsigned char c) |
| 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 (char *src) |
| void | decode_uri_string (struct string *string) |
| void | decode_uri_for_display (char *src) |
| void | decode_uri_string_for_display (struct string *string) |
| struct uri * | add_to_uri_list (struct uri_list *list, struct uri *uri) |
| void | free_uri_list (struct uri_list *list) |
| static void | check_uri_sanity (struct uri *uri) |
| static struct uri_cache_entry * | get_uri_cache_entry (char *string, int length) |
| struct uri * | get_uri (char *string, uri_component_T components) |
| void | done_uri (struct uri *uri) |
Variables | |
| static struct uri_cache | uri_cache |
| #define can_compare_uri_components | ( | comp | ) |
| #define MAX_TRANSLATION_ATTEMPTS 32 |
| #define normalize_uri_noparse | ( | uri | ) |
| #define normalize_uri_reparse | ( | str | ) |
| #define realloc_uri_list | ( | list | ) |
| #define URI_LIST_GRANULARITY 0x3 |
| #define wants | ( | x | ) |
| 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 ) |
|
inlinestatic |
|
static |
|
inlinestatic |
| int compare_uri | ( | const struct uri * | a, |
| const struct uri * | b, | ||
| uri_component_T | components ) |
| void decode_uri | ( | char * | src | ) |
| void decode_uri_for_display | ( | char * | src | ) |
| void decode_uri_string | ( | struct string * | string | ) |
| void decode_uri_string_for_display | ( | struct string * | string | ) |
| void done_uri | ( | struct uri * | uri | ) |
|
static |
| 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 ) |
|
inlinestatic |
| int end_with_known_tld | ( | const char * | s, |
| int | slen ) |
|
static |
| 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 ) |
|
inlinestatic |
| 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 ) |
|
inlinestatic |
| char * join_urls | ( | struct uri * | base, |
| const char * | rel ) |
| char * normalize_uri | ( | struct uri * | uri, |
| char * | uristring ) |
| uri_errno_T parse_uri | ( | struct uri * | uri, |
| char * | uristring ) |
|
inlinestatic |
|
static |
|
static |