Dillo v3.1.1-98-g318d1f14
|
Go to the source code of this file.
Classes | |
struct | Dstr |
struct | Dlist |
Macros | |
#define | FALSE (0) |
#define | TRUE (!FALSE) |
#define | MAX(a, b) (((a) > (b)) ? (a) : (b)) |
#define | MIN(a, b) (((a) < (b)) ? (a) : (b)) |
#define | dIsspace(c) isspace((uchar_t)(c)) |
#define | dIsalnum(c) isalnum((uchar_t)(c)) |
#define | D_ASCII_TOUPPER(c) (((c) >= 'a' && (c) <= 'z') ? (c) - 0x20 : (c)) |
#define | D_ASCII_TOLOWER(c) (((c) >= 'A' && (c) <= 'Z') ? (c) + 0x20 : (c)) |
#define | VOIDP2INT(p) ((long)(p)) |
#define | INT2VOIDP(i) ((void*)((long)(i))) |
#define | dNew(type, count) ((type *) dMalloc ((unsigned) sizeof (type) * (count))) |
#define | dNew0(type, count) ((type *) dMalloc0 ((unsigned) sizeof (type) * (count))) |
#define | D_STMT_START do |
#define | D_STMT_END while (0) |
#define | dReturn_if(expr) |
#define | dReturn_val_if(expr, val) |
#define | dReturn_if_fail(expr) |
#define | dReturn_val_if_fail(expr, val) |
#define | dStrerror strerror |
#define | Dstr_char_t char |
Typedefs | |
typedef int(* | dCompareFunc) (const void *a, const void *b) |
Functions | |
void * | dMalloc (size_t size) |
void * | dRealloc (void *mem, size_t size) |
void * | dMalloc0 (size_t size) |
void | dFree (void *mem) |
char * | dStrdup (const char *s) |
char * | dStrndup (const char *s, size_t sz) |
char * | dStrconcat (const char *s1,...) |
Concatenate a NULL-terminated list of strings. | |
char * | dStrstrip (char *s) |
Remove leading and trailing whitespace. | |
char * | dStrnfill (size_t len, char c) |
Return a new string of length 'len' filled with 'c' characters. | |
char * | dStrsep (char **orig, const char *delim) |
strsep() implementation | |
void | dStrshred (char *s) |
Clear the contents of the string. | |
char * | dStriAsciiStr (const char *haystack, const char *needle) |
Case insensitive strstr. | |
int | dStrAsciiCasecmp (const char *s1, const char *s2) |
int | dStrnAsciiCasecmp (const char *s1, const char *s2, size_t n) |
Dstr * | dStr_new (const char *s) |
Create a new string. | |
Dstr * | dStr_sized_new (int sz) |
Create a new string with a given size. | |
void | dStr_fit (Dstr *ds) |
Return memory if there's too much allocated. | |
void | dStr_free (Dstr *ds, int all) |
Free a dillo string. | |
void | dStr_append_c (Dstr *ds, int c) |
Append one character. | |
void | dStr_append (Dstr *ds, const char *s) |
Append a C string to a Dstr. | |
void | dStr_append_l (Dstr *ds, const char *s, int l) |
Append a C string to a Dstr (providing length). | |
void | dStr_insert (Dstr *ds, int pos_0, const char *s) |
Insert a C string, at a given position, into a Dstr. | |
void | dStr_insert_l (Dstr *ds, int pos_0, const char *s, int l) |
Insert a C string, at a given position, into a Dstr (providing length). | |
void | dStr_truncate (Dstr *ds, int len) |
Truncate a Dstr to be 'len' bytes long. | |
void | dStr_shred (Dstr *ds) |
Clear a Dstr. | |
void | dStr_erase (Dstr *ds, int pos_0, int len) |
Erase a substring. | |
void | dStr_vsprintfa (Dstr *ds, const char *format, va_list argp) |
vsprintf-like function that appends. | |
void | dStr_vsprintf (Dstr *ds, const char *format, va_list argp) |
vsprintf-like function. | |
void | dStr_sprintf (Dstr *ds, const char *format,...) |
Printf-like function. | |
void | dStr_sprintfa (Dstr *ds, const char *format,...) |
Printf-like function that appends. | |
int | dStr_cmp (Dstr *ds1, Dstr *ds2) |
Compare two dStrs. | |
char * | dStr_memmem (Dstr *haystack, Dstr *needle) |
Return a pointer to the first occurrence of needle in haystack. | |
const char * | dStr_printable (Dstr *in, int maxlen) |
Return a printable representation of the provided Dstr, limited to a length of roughly maxlen. | |
Dlist * | dList_new (int size) |
Create a new empty list. | |
void | dList_free (Dlist *lp) |
Free a list (not its elements) | |
void | dList_append (Dlist *lp, void *data) |
Append a data item to the list. | |
void | dList_prepend (Dlist *lp, void *data) |
Prepend a data item to the list. | |
void | dList_insert_pos (Dlist *lp, void *data, int pos0) |
Insert an element at a given position [0 based]. | |
int | dList_length (Dlist *lp) |
For completing the ADT. | |
void | dList_remove (Dlist *lp, const void *data) |
void | dList_remove_fast (Dlist *lp, const void *data) |
Remove a data item without preserving order. | |
void * | dList_nth_data (Dlist *lp, int n0) |
Return the nth data item, NULL when not found or 'n0' is out of range. | |
void * | dList_find (Dlist *lp, const void *data) |
Return the found data item, or NULL if not present. | |
int | dList_find_idx (Dlist *lp, const void *data) |
Search a data item. | |
void * | dList_find_custom (Dlist *lp, const void *data, dCompareFunc func) |
Search a data item using a custom function. | |
void | dList_sort (Dlist *lp, dCompareFunc func) |
Sort the list using a custom function. | |
void | dList_insert_sorted (Dlist *lp, void *data, dCompareFunc func) |
Insert an element into a sorted list. | |
void * | dList_find_sorted (Dlist *lp, const void *data, dCompareFunc func) |
Search a sorted list. | |
int | dParser_parse_rc_line (char **line, char **name, char **value) |
Take a dillo rc line and return 'name' and 'value' pointers to it. | |
void | dLib_show_messages (bool_t show) |
char * | dGetcwd (void) |
Return the current working directory in a new string. | |
char * | dGethomedir (void) |
Return the home directory in a static string (don't free) | |
char * | dGetline (FILE *stream) |
Get a line from a FILE stream. | |
int | dClose (int fd) |
Close a FD handling EINTR. | |
int | dUsleep (unsigned long us) |
Portable usleep() function. | |
#define D_ASCII_TOLOWER | ( | c | ) | (((c) >= 'A' && (c) <= 'Z') ? (c) + 0x20 : (c)) |
#define D_ASCII_TOUPPER | ( | c | ) | (((c) >= 'a' && (c) <= 'z') ? (c) - 0x20 : (c)) |
#define dNew | ( | type, | |
count | |||
) | ((type *) dMalloc ((unsigned) sizeof (type) * (count))) |
#define dNew0 | ( | type, | |
count | |||
) | ((type *) dMalloc0 ((unsigned) sizeof (type) * (count))) |
#define dReturn_if | ( | expr | ) |
#define dReturn_if_fail | ( | expr | ) |
#define dReturn_val_if | ( | expr, | |
val | |||
) |
#define dReturn_val_if_fail | ( | expr, | |
val | |||
) |
int dClose | ( | int | fd | ) |
Close a FD handling EINTR.
Definition at line 951 of file dlib.c.
Referenced by a_Dns_freeall(), a_Dpi_send_blocking_cmd(), a_Dpip_dsh_close(), a_Http_connect_done(), ckd_close(), Cookies_fopen(), Dpi_check_dpid_ids(), Dpi_connect_socket(), Dpi_get_server_port(), Dpi_start_dpid(), Http_connect_socket(), Http_socket_free(), Http_socket_reuse(), ignore_dpi_sockets(), IO_close_fd(), main(), main(), read_log_cb(), start_filter_plugin(), start_server_plugin(), stop_active_dpis(), Tls_close_by_key(), and Tls_close_by_key().
void dFree | ( | void * | mem | ) |
Definition at line 68 of file dlib.c.
Referenced by a_Bitvec_free(), a_Bookmarks_add(), a_Bookmarks_chat_add(), a_Bw_free(), a_Cache_set_content_type(), a_Capi_ccc(), a_Capi_dpi_send_data(), a_Capi_open_url(), a_Cookies_get_query(), a_Cookies_get_query(), a_Cookies_set(), a_Cookies_set(), a_Decode_free(), a_Decode_transfer_free(), a_Dialog_input(), a_Dicache_close(), a_Dicache_freeall(), a_Dicache_set_cmap(), a_Dns_freeall(), a_Domain_freeall(), a_Domain_parse(), a_Dpi_ccc(), a_Dpi_rd_dpi_socket_dir(), a_Dpi_srs(), a_Dpiapi_dialog(), a_Dpip_check_auth(), a_Dpip_dsh_free(), a_History_freeall(), a_History_set_title_by_url(), a_Hsts_set(), a_Html_common_image_attrs(), a_Html_image_new(), a_Html_load_stylesheet(), a_Http_ccc(), a_Http_connect_done(), a_Http_freeall(), a_Http_set_proxy_passwd(), a_IO_ccc(), a_Klist_free(), a_Klist_remove(), a_Menu_history_popup(), a_Menu_page_popup(), a_Misc_content_type_cmp(), a_Nav_expect_done(), a_Nav_free(), a_Prefs_freeall(), a_UIcmd_get_passwd(), a_UIcmd_open_file(), a_UIcmd_open_urlstr(), a_UIcmd_search_dialog(), a_UIcmd_view_page_source(), a_Url_free(), a_Url_new(), a_Web_free(), Auth_do_auth_dialog(), Auth_do_auth_dialog_cb(), Auth_do_auth_required(), Auth_parse_free(), Auth_realm_add_path(), Auth_realm_delete(), Bms_check_import(), Bms_del(), Bms_load(), Bms_save(), Bms_sec_del(), Bms_update_sec_title(), Bms_update_title(), Bmsrv_add_bm(), Bmsrv_dpi_send_status_msg(), Bmsrv_modify_add_section(), Bmsrv_modify_add_url(), Bmsrv_modify_update(), Bmsrv_parse_token(), Bmsrv_send_modify_answer(), Bmsrv_send_modify_page(), Bmsrv_send_modify_update(), Bmsrv_send_reload_request(), StyleEngine::buildUserStyle(), Cache_auth_callback(), Cache_auth_free(), Cache_client_dequeue(), Cache_entry_free(), Cache_parse_header(), Cache_provide_redirection_blocked_page(), Cache_savelink_cb(), Capi_conn_resume(), Capi_conn_unref(), Capi_dpi_send_source(), Capi_url_uses_dpi(), UI::change_panel(), cleanup(), Cookie_control_init(), Cookies_delete_node(), Cookies_free_cookie(), Cookies_get(), Cookies_init(), Cookies_parse(), Cookies_parse_date(), Cookies_rc_check(), Cookies_server_timediff(), Cookies_validate_path(), Decode_charset_free(), Decode_compression_free(), Decode_deflate(), Keys::delKeyCmd(), dGetcwd(), Dicache_remove(), dList_free(), Dns_queue_remove(), Dns_server_req(), Dpi_conn_free(), Dpi_connect_socket(), Dpi_connect_socket(), Dpi_get_server_port(), Dpi_get_server_port(), Dpi_parse_token(), Dpi_read_comm_keys(), Dpi_read_comm_keys(), Dpi_read_comm_keys(), Dpi_start_dpid(), Dpi_start_dpid(), Dpiapi_dialog_answer_cb(), dStr_free(), dStr_resize(), expires_extremes(), expires_server_ahead(), expires_server_behind(), File_dillodir_free(), File_dillodir_new(), File_info2html(), File_normalize_path(), File_print_parent_dir(), File_remove_client(), File_send_dir(), File_send_error_page(), File_send_file(), File_serve_client(), File_toggle_html_style(), fill_services_list(), CssProperty::free(), Keys::free(), Paths::free(), free_dpi_attr(), free_plugin_list(), free_services_list(), DilloHtml::freeParseData(), get_command(), get_dpi_attr(), get_dpi_dir(), get_message(), Paths::getPrefsFP(), help_cb(), Hsts_free_policy(), Html_parse_doctype(), Html_parse_entity(), Html_process_space(), Html_process_word(), Html_tag_content_frame(), Html_tag_content_map(), Html_tag_content_textarea(), Html_tag_open_a(), Html_tag_open_button(), Html_tag_open_font(), Html_tag_open_form(), Html_tag_open_hr(), Html_tag_open_input(), Html_tag_open_meta(), Html_tag_open_select(), Html_write_raw(), Http_connect_queued_sockets(), Http_connect_tls(), Http_dns_cb(), Http_fd_map_remove_all(), Http_fd_map_remove_entry(), Http_get(), Http_get_connect_str(), Http_make_query_str(), Http_must_use_proxy(), Http_send_query(), Http_server_remove(), Http_servers_remove_all(), Http_socket_free(), Image_free(), Paths::init(), init_sockdir(), IO_free(), main(), main(), make_wget_argv(), makeStartUrl(), maxage(), Menu_bugmeter_validate(), mk_sockdir(), Nav_stack_clean(), Nav_stack_truncate(), Keys::parse(), CssParser::parseImport(), Keys::parseKey(), parseOption(), Png_free(), read_req_cb(), register_all(), register_service(), save_comm_keys(), send_bm_page(), send_decoded_data(), send_failure_message(), send_html_text(), send_numbered_text(), send_plain_text(), send_sockport(), srv_parse_tok(), stop_active_dpis(), Tls_cert_authorities_freeall(), Tls_check_cert_hostname(), Tls_close_by_key(), Tls_close_by_key(), Tls_examine_certificate(), Tls_examine_certificate(), Tls_fd_map_remove_all(), Tls_fd_map_remove_all(), Tls_fd_map_remove_entry(), Tls_fd_map_remove_entry(), Tls_load_certificates(), Tls_load_certificates(), Tls_remove_duplicate_certificates(), Tls_servers_freeall(), Tls_servers_freeall(), try_ftp_transfer(), tst_dir(), UIcmd_make_save_filename(), UIcmd_make_search_str(), UIcmd_save(), DilloHtml::write(), CssSimpleSelector::~CssSimpleSelector(), DilloHtml::~DilloHtml(), and DoctreeNode::~DoctreeNode().
char * dGetcwd | ( | void | ) |
Return the current working directory in a new string.
Definition at line 888 of file dlib.c.
Referenced by Paths::init().
char * dGethomedir | ( | void | ) |
Return the home directory in a static string (don't free)
Definition at line 906 of file dlib.c.
References DLIB_MSG, dStrconcat(), and dStrdup().
Referenced by a_Dpi_rd_dpi_socket_dir(), a_Dpi_sockdir_file(), a_Dpip_check_auth(), Bms_check_import(), StyleEngine::buildUserStyle(), cleanup(), Cookie_control_init(), Cookies_init(), Cookies_rc_check(), Dpi_read_comm_keys(), Dpi_read_comm_keys(), Dpi_read_comm_keys(), Dpi_start_dpid(), Dpi_start_dpid(), File_normalize_path(), fill_services_list(), Paths::getPrefsFP(), Paths::init(), main(), register_all(), register_service(), save_comm_keys(), Tls_load_certificates(), Tls_load_certificates(), and Tls_save_certificate_home().
char * dGetline | ( | FILE * | stream | ) |
Get a line from a FILE stream.
Return value: read line on success, NULL on EOF.
Definition at line 928 of file dlib.c.
References dReturn_val_if_fail, dStr_append_c(), dStr_free(), dStr_sized_new(), Dstr::len, and Dstr::str.
Referenced by a_Domain_parse(), a_Dpi_rd_dpi_socket_dir(), a_Dpip_check_auth(), Bms_load(), Dpi_read_comm_keys(), Dpi_read_comm_keys(), Dpi_read_comm_keys(), fill_services_list(), get_dpi_dir(), and Keys::parse().
void dLib_show_messages | ( | bool_t | show | ) |
void dList_append | ( | Dlist * | lp, |
void * | data | ||
) |
Append a data item to the list.
Definition at line 597 of file dlib.c.
References dList_insert_pos(), and Dlist::len.
Referenced by a_Bw_add_client(), a_Bw_add_doc(), a_Bw_add_url(), a_Prefs_init(), a_Web_new(), Auth_do_auth_dialog_cb(), Auth_realm_add_path(), Bms_add(), Bms_sec_add(), Cache_client_enqueue(), Cache_delayed_process_queue(), Cache_parse_multiple_fields(), Capi_conn_ref(), Cookies_add_cookie(), Dns_note_hosts(), File_add_client(), File_dillodir_new(), fill_services_list(), Http_fd_map_add_entry(), Http_server_get(), Http_socket_enqueue(), Nav_stack_append(), parseOption(), Tls_fd_map_add_entry(), Tls_fd_map_add_entry(), and Tls_update_cert_authorities_data().
void * dList_find | ( | Dlist * | lp, |
const void * | data | ||
) |
Return the found data item, or NULL if not present.
Definition at line 672 of file dlib.c.
References dList_find_idx(), and Dlist::list.
Referenced by a_Bw_remove_client(), a_Bw_remove_doc(), a_Web_valid(), Cache_delayed_process_queue(), and Capi_conn_valid().
void * dList_find_custom | ( | Dlist * | lp, |
const void * | data, | ||
dCompareFunc | func | ||
) |
Search a data item using a custom function.
func() is given the list item and the user data as parameters. Return: data item when found, NULL otherwise.
Definition at line 704 of file dlib.c.
References Dlist::len, and Dlist::list.
Referenced by a_Bw_add_url(), a_Bw_get_url_doc(), a_Cache_client_get_if_unique(), a_Cache_stop_client(), a_Http_ccc(), a_Http_connect_done(), a_Tls_mbedtls_close_by_fd(), a_Tls_mbedtls_connection(), a_Tls_openssl_close_by_fd(), a_Tls_openssl_connection(), Bms_del(), Bms_get(), Bms_get_sec(), Bms_move(), Bms_sec_del(), Bms_update_sec_title(), Bms_update_title(), Capi_conn_find(), Cookies_add_cookie(), Http_fd_map_add_entry(), Http_fd_map_remove_entry(), send_sockport(), Tls_fd_map_add_entry(), Tls_fd_map_add_entry(), Tls_fd_map_remove_entry(), Tls_fd_map_remove_entry(), and Tls_update_cert_authorities_data().
int dList_find_idx | ( | Dlist * | lp, |
const void * | data | ||
) |
Search a data item.
Return value: its index if found, -1 if not present. (this is useful for a list of integers, for finding number zero).
Definition at line 683 of file dlib.c.
References Dlist::len, and Dlist::list.
Referenced by dList_find().
void * dList_find_sorted | ( | Dlist * | lp, |
const void * | data, | ||
dCompareFunc | func | ||
) |
Search a sorted list.
Return the found data item, or NULL if not present. func() is given the list item and the user data as parameters.
Definition at line 796 of file dlib.c.
References Dlist::len, and Dlist::list.
Referenced by a_Dicache_get_entry(), a_Klist_get_data(), a_Klist_remove(), a_Tls_mbedtls_connect_ready(), a_Tls_mbedtls_reset_server_state(), a_Tls_openssl_connect_ready(), a_Tls_openssl_reset_server_state(), Cache_entry_search(), Cookies_add_cookie(), Cookies_add_matching_cookies(), Cookies_rm_expired_cookies(), Cookies_too_many(), Keys::delKeyCmd(), Dicache_add_entry(), Dicache_remove(), Keys::getKeyCmd(), Hsts_get_policy(), Tls_cert_status(), Tls_cert_status(), Tls_connect(), and Tls_handshake().
void dList_free | ( | Dlist * | lp | ) |
Free a list (not its elements)
Definition at line 564 of file dlib.c.
References dFree(), and Dlist::list.
Referenced by a_Bw_free(), a_Cache_freeall(), a_Dicache_freeall(), a_Dns_freeall(), a_Hsts_freeall(), a_Klist_free(), a_Prefs_freeall(), Auth_realm_delete(), Cache_auth_free(), Cache_parse_header(), Cache_parse_multiple_fields(), Cookies_delete_node(), Cookies_get(), Cookies_save_and_free(), Dns_server(), File_dillodir_free(), Keys::free(), free_services_list(), Http_fd_map_remove_all(), Http_server_remove(), Http_servers_remove_all(), Tls_cert_authorities_freeall(), Tls_fd_map_remove_all(), Tls_fd_map_remove_all(), Tls_servers_freeall(), and Tls_servers_freeall().
void dList_insert_pos | ( | Dlist * | lp, |
void * | data, | ||
int | pos0 | ||
) |
Insert an element at a given position [0 based].
Definition at line 576 of file dlib.c.
References dRealloc(), Dlist::len, Dlist::list, and Dlist::sz.
Referenced by Cookies_add_matching_cookies(), dList_append(), dList_insert_sorted(), dList_prepend(), and Http_socket_enqueue().
void dList_insert_sorted | ( | Dlist * | lp, |
void * | data, | ||
dCompareFunc | func | ||
) |
Insert an element into a sorted list.
The comparison function receives two list elements.
Definition at line 769 of file dlib.c.
References dList_insert_pos(), Dlist::len, and Dlist::list.
Referenced by a_Klist_insert(), a_Tls_mbedtls_connect_ready(), a_Tls_openssl_connect_ready(), Cache_entry_add(), Cookies_add_cookie(), Dicache_add_entry(), Hsts_set_policy(), Keys::init(), Keys::parseKey(), and Tls_update_cert_authorities_data().
int dList_length | ( | Dlist * | lp | ) |
For completing the ADT.
Definition at line 613 of file dlib.c.
References Dlist::len.
Referenced by a_Bw_add_client(), a_Bw_close_client(), a_Bw_free(), a_Bw_get_current_doc(), a_Capi_conn_abort_by_url(), a_Dialog_input(), a_Dicache_cleanup(), a_Dicache_freeall(), a_Dns_freeall(), a_Hsts_freeall(), a_Klist_free(), a_Klist_length(), a_Klist_remove(), a_Nav_stack_size(), a_Prefs_freeall(), a_UIcmd_set_buttons_sens(), a_Web_free(), a_Web_new(), Auth_realm_delete(), Bms_cond_load(), Bms_del(), Bms_normalize(), Bms_sec_del(), Cache_parse_multiple_fields(), Cache_process_queue(), Capi_conn_resume(), Capi_conn_unref(), Cookies_add_cookie(), Cookies_add_matching_cookies(), Cookies_get(), Cookies_get_LRU(), Cookies_load_cookies(), Cookies_rm_expired_cookies(), Cookies_too_many(), Dns_server(), File_check_fds(), File_dillodir_free(), File_send_dir(), fill_services_list(), free_services_list(), Keys::getShortcut(), Http_connect_queued_sockets(), Http_connect_socket(), Http_fd_map_remove_all(), Http_server_get(), Http_servers_remove_all(), Http_socket_enqueue(), Http_socket_reuse(), Nav_stack_truncate(), parseOption(), Tls_cert_authorities_freeall(), Tls_cert_authorities_print_summary(), Tls_fd_map_remove_all(), Tls_fd_map_remove_all(), Tls_servers_freeall(), Tls_servers_freeall(), and UIcmd_find_search_str().
Dlist * dList_new | ( | int | size | ) |
Create a new empty list.
Definition at line 548 of file dlib.c.
References dNew, Dlist::len, Dlist::list, and Dlist::sz.
Referenced by a_Auth_init(), a_Bw_new(), a_Cache_init(), a_Capi_init(), a_Dicache_init(), a_Hsts_init(), a_Http_init(), a_Klist_insert(), a_Prefs_init(), a_Tls_mbedtls_init(), a_Tls_openssl_init(), a_Web_init(), Auth_do_auth_dialog_cb(), Cache_parse_multiple_fields(), Cookies_add_cookie(), Cookies_get(), Cookies_load_cookies(), Dns_server(), File_dillodir_new(), fill_services_list(), Http_server_get(), Keys::init(), main(), and Tls_update_cert_authorities_data().
void * dList_nth_data | ( | Dlist * | lp, |
int | n0 | ||
) |
Return the nth data item, NULL when not found or 'n0' is out of range.
Definition at line 662 of file dlib.c.
References Dlist::len, and Dlist::list.
Referenced by a_Auth_do_auth(), a_Bw_cleanup(), a_Bw_free(), a_Bw_get_current_doc(), a_Bw_stop_clients(), a_Cache_client_get_if_unique(), a_Cache_freeall(), a_Cache_process_dbuf(), a_Capi_conn_abort_by_url(), a_Cookies_set(), a_Dialog_input(), a_Dicache_cleanup(), a_Dicache_freeall(), a_Dns_freeall(), a_Hsts_freeall(), a_Klist_free(), a_Nav_get_top_uidx(), a_Nav_get_uidx(), a_Prefs_freeall(), Auth_host_by_url(), Auth_realm_add_path(), Auth_realm_by_name(), Auth_realm_by_path(), Auth_realm_delete(), Auth_realm_includes_path(), Bms_free(), Bms_normalize(), Bms_save(), Bmsrv_send_modify_page(), Cache_auth_free(), Cache_delayed_process_queue_callback(), Cache_entry_remove(), Cache_parse_header(), Cache_process_queue(), Capi_conn_resume(), Cookies_add_matching_cookies(), Cookies_get(), Cookies_get_LRU(), Cookies_rm_expired_cookies(), Cookies_save_and_free(), Dns_server(), File_check_fds(), File_dillodir_free(), File_send_dir(), File_serve_clients(), Keys::free(), free_services_list(), Keys::getShortcut(), Http_connect_queued_sockets(), Http_connect_socket(), Http_fd_map_remove_all(), Http_server_get(), Http_server_remove(), Http_servers_remove_all(), Http_socket_enqueue(), Http_socket_reuse(), Nav_get_scroll_pos(), Nav_save_scroll_pos(), Nav_stack_clean(), Nav_stack_truncate(), parseOption(), send_bm_page(), Tls_cert_authorities_freeall(), Tls_cert_authorities_print_summary(), Tls_fd_map_remove_all(), Tls_fd_map_remove_all(), Tls_servers_freeall(), Tls_servers_freeall(), UIcmd_find_search_str(), and UIcmd_make_search_str().
void dList_prepend | ( | Dlist * | lp, |
void * | data | ||
) |
Prepend a data item to the list.
Definition at line 605 of file dlib.c.
References dList_insert_pos().
void dList_remove | ( | Dlist * | lp, |
const void * | data | ||
) |
Definition at line 641 of file dlib.c.
References Dlist::len, and Dlist::list.
Referenced by a_Cache_stop_client(), a_Klist_remove(), a_Web_free(), Bms_del(), Bms_sec_del(), Cache_client_dequeue(), Cache_delayed_process_queue_callback(), Cache_entry_add(), Cache_entry_remove(), Capi_conn_unref(), Cookies_add_cookie(), Cookies_add_matching_cookies(), Cookies_delete_node(), Cookies_rm_expired_cookies(), Cookies_too_many(), Keys::delKeyCmd(), Dicache_remove(), File_remove_client(), Hsts_remove_policy(), Http_connect_queued_sockets(), Http_servers_remove_all(), Http_socket_activate(), and parseOption().
void dList_remove_fast | ( | Dlist * | lp, |
const void * | data | ||
) |
Remove a data item without preserving order.
Definition at line 623 of file dlib.c.
References Dlist::len, and Dlist::list.
Referenced by a_Bw_cleanup(), a_Bw_remove_client(), a_Bw_remove_doc(), a_Bw_stop_clients(), a_Cache_freeall(), a_Dicache_freeall(), a_Klist_free(), Auth_do_auth_dialog_cb(), Auth_realm_add_path(), Cookies_add_cookie(), Cookies_add_matching_cookies(), Cookies_rm_expired_cookies(), Cookies_too_many(), Keys::free(), Http_fd_map_remove_entry(), Http_server_remove(), Nav_stack_clean(), Nav_stack_truncate(), Tls_fd_map_remove_entry(), and Tls_fd_map_remove_entry().
void dList_sort | ( | Dlist * | lp, |
dCompareFunc | func | ||
) |
Sort the list using a custom function.
Definition at line 758 of file dlib.c.
References Dlist::len, Dlist::list, and QuickSort().
Referenced by File_dillodir_new(), and fill_services_list().
void * dMalloc | ( | size_t | size | ) |
Definition at line 45 of file dlib.c.
Referenced by a_Misc_encode_base64(), a_Misc_readtag(), dMalloc0(), and Png_datainfo_callback().
int dParser_parse_rc_line | ( | char ** | line, |
char ** | name, | ||
char ** | value | ||
) |
Take a dillo rc line and return 'name' and 'value' pointers to it.
Notes:
Return value: 1 on blank line or comment, 0 on successful value/pair, -1 otherwise.
Definition at line 834 of file dlib.c.
References dIsspace, dReturn_val_if_fail, and dStrstrip().
Referenced by fill_services_list(), and Keys::parse().
void * dRealloc | ( | void * | mem, |
size_t | size | ||
) |
Definition at line 53 of file dlib.c.
Referenced by a_Imgbuf_new(), a_Misc_readtag(), a_Url_decode_hex_str(), a_Url_decode_hex_str(), dList_insert_pos(), dStr_resize(), and register_all().
void dStr_append | ( | Dstr * | ds, |
const char * | s | ||
) |
Append a C string to a Dstr.
Definition at line 316 of file dlib.c.
References dStr_append_l().
Referenced by a_Dpip_build_cmd(), a_Html_parse_entities(), a_Http_ccc(), a_UIcmd_view_page_source(), a_Url_set_ismap_coords(), Cookies_get(), Digest_Dstr_append_token_value(), dStr_new(), dStr_printable(), dStrconcat(), Escape_html_str(), File_prepare_send_dir(), File_send_error_page(), Html_get_attr2(), Html_process_word(), Html_write_raw(), CssParser::parseUrl(), CssParser::parseValue(), Tls_cert_authorities_print_summary(), Tls_cert_cn_mismatch(), UIcmd_make_search_str(), and Url_resolve_relative().
void dStr_append_c | ( | Dstr * | ds, |
int | c | ||
) |
Append one character.
Definition at line 349 of file dlib.c.
References dStr_append_l(), Dstr_char_t, Dstr::len, Dstr::str, and Dstr::sz.
Referenced by a_Dpip_build_cmd(), a_Html_parse_entities(), a_Misc_escape_chars(), a_Misc_rdtag(), Auth_unquote_value(), DilloHtml::bugMessage(), Cache_get_header(), dGetline(), Digest_Dstr_append_token_value(), dStr_printable(), Escape_html_str(), Escape_uri_str(), generate_boundary(), Html_get_attr2(), Html_process_word(), Http_make_content_type(), CssParser::parseValue(), Tls_cert_authorities_print_summary(), UIcmd_make_search_str(), and Url_resolve_relative().
void dStr_append_l | ( | Dstr * | ds, |
const char * | s, | ||
int | l | ||
) |
Append a C string to a Dstr (providing length).
Note: It also works with embedded nil characters.
Definition at line 308 of file dlib.c.
References dStr_insert_l(), and Dstr::len.
Referenced by a_Cache_process_dbuf(), a_Decode_transfer_process(), a_Dpip_dsh_trywrite(), a_Dpip_dsh_write(), a_Html_parse_entities(), a_IO_ccc(), a_Misc_file2dstr(), a_Url_dup(), Cache_entry_inject(), Capi_url_uses_dpi(), Decode_charset(), Decode_deflate(), Decode_gzip(), Decode_raw_deflate(), Dpi_append_dbuf(), Dpi_blocking_read(), Dpi_blocking_read(), Dpip_dsh_read(), dStr_append(), dStr_append_c(), dStr_printable(), Html_process_space(), Html_process_word(), Http_make_content_type(), Http_make_query_str(), IO_read(), and try_ftp_transfer().
void dStr_erase | ( | Dstr * | ds, |
int | pos_0, | ||
int | len | ||
) |
Erase a substring.
Definition at line 388 of file dlib.c.
References Dstr::len, and Dstr::str.
Referenced by a_Decode_transfer_process(), a_Dpip_dsh_read_token2(), a_Dpip_dsh_tryflush(), Cache_get_header(), Decode_charset(), File_normalize_path(), Html_get_attr2(), Html_get_javascript_link(), Html_tag_close_textarea(), IO_write(), and Url_resolve_relative().
void dStr_fit | ( | Dstr * | ds | ) |
Return memory if there's too much allocated.
Definition at line 269 of file dlib.c.
References dStr_resize(), and Dstr::len.
Referenced by Cache_entry_inject(), Cache_finish_msg(), and Cache_get_header().
void dStr_free | ( | Dstr * | ds, |
int | all | ||
) |
Free a dillo string.
if 'all' free everything, else free the structure only.
Definition at line 337 of file dlib.c.
References dFree(), and Dstr::str.
Referenced by a_Bw_free(), a_Cache_init(), a_Cache_process_dbuf(), a_Cache_set_content_type(), a_Decode_transfer_free(), a_Digest_authorization_hdr(), a_Digest_compute_digest(), a_Dpip_build_cmd(), a_Dpip_dsh_free(), a_Html_parse_entities(), a_Http_ccc(), a_Misc_escape_chars(), a_Misc_rdtag(), a_UIcmd_set_msg(), a_UIcmd_view_page_source(), a_Url_free(), a_Url_new(), a_Url_set_data(), Auth_parse_token_value(), Bms_check_import(), Bms_save(), StyleEngine::buildUserStyle(), Cache_entry_free(), Cache_parse_header(), Cache_ref_data(), Cache_unref_data(), Capi_url_uses_dpi(), Cookies_get(), Decode_charset_free(), Decode_deflate(), dGetline(), Digest_create_response(), Dpi_blocking_read(), Dpi_blocking_read(), Dpi_conn_free(), dStrconcat(), Escape_html_str(), Escape_uri_str(), File_normalize_path(), File_prepare_send_dir(), File_send_error_page(), DilloHtml::freeParseData(), Html_tag_open_meta(), Http_get_connect_str(), Http_make_query_str(), Http_send_query(), Http_socket_free(), IO_free(), Menu_bugmeter_validate(), CssParser::parseUrl(), CssParser::parseValue(), Tls_cert_authorities_print_summary(), Tls_check_cert_hostname(), Tls_make_bad_cert_msg(), try_ftp_transfer(), UIcmd_make_search_str(), UIcmd_save_file_check(), and Url_resolve_relative().
void dStr_insert | ( | Dstr * | ds, |
int | pos_0, | ||
const char * | s | ||
) |
Insert a C string, at a given position, into a Dstr.
Definition at line 298 of file dlib.c.
References dStr_insert_l().
void dStr_insert_l | ( | Dstr * | ds, |
int | pos_0, | ||
const char * | s, | ||
int | l | ||
) |
Insert a C string, at a given position, into a Dstr (providing length).
Note: It also works with embedded nil characters.
Definition at line 278 of file dlib.c.
References dStr_resize(), Dstr::len, Dstr::str, and Dstr::sz.
Referenced by dStr_append_l(), and dStr_insert().
Dstr * dStr_new | ( | const char * | s | ) |
Create a new string.
Initialized to 's' or empty if 's == NULL'
Definition at line 325 of file dlib.c.
References dStr_append(), and dStr_sized_new().
Referenced by a_Bw_new(), a_Cache_init(), a_Decode_charset_init(), a_Decode_transfer_init(), a_Digest_authorization_hdr(), a_Digest_compute_digest(), a_UIcmd_view_page_source(), a_Url_dup(), a_Url_new(), Auth_unquote_value(), Bms_check_import(), Bms_save(), Bmsrv_send_modify_page(), Bmsrv_send_modify_update(), Cache_entry_init(), Cache_parse_header(), Capi_url_uses_dpi(), Cookies_get(), Decode_charset(), Decode_deflate(), Decode_gzip(), Decode_raw_deflate(), Digest_create_response(), DilloHtml::DilloHtml(), File_prepare_send_dir(), Http_connect_tls(), Http_get_connect_str(), Http_make_content_type(), Http_make_query_str(), CssParser::parseUrl(), CssParser::parseValue(), send_bm_page(), Tls_cert_authorities_print_summary(), Tls_check_cert_hostname(), and Tls_make_bad_cert_msg().
const char * dStr_printable | ( | Dstr * | in, |
int | maxlen | ||
) |
Return a printable representation of the provided Dstr, limited to a length of roughly maxlen.
This is NOT threadsafe.
Definition at line 513 of file dlib.c.
References dStr_append(), dStr_append_c(), dStr_append_l(), dStr_sized_new(), dStr_truncate(), HEX, Dstr::len, and Dstr::str.
Referenced by a_Capi_dpi_verify_request(), a_IO_ccc(), and Http_make_query_str().
void dStr_shred | ( | Dstr * | ds | ) |
Dstr * dStr_sized_new | ( | int | sz | ) |
Create a new string with a given size.
Initialized to ""
Definition at line 254 of file dlib.c.
References dNew, dStr_resize(), and Dstr::str.
Referenced by a_Decode_transfer_process(), a_Dpip_build_cmd(), a_Dpip_dsh_new(), a_Html_parse_entities(), a_Misc_escape_chars(), a_Misc_file2dstr(), a_Misc_rdtag(), a_UIcmd_set_msg(), a_Url_dup(), a_Url_str(), Cache_entry_init(), Cache_parse_header(), dGetline(), DilloHtml::DilloHtml(), Dpi_blocking_read(), Dpi_blocking_read(), Dpi_conn_new(), dStr_new(), dStr_printable(), dStrconcat(), Escape_html_str(), Escape_uri_str(), File_normalize_path(), File_send_error_page(), Html_tag_open_meta(), IO_new(), md5hexdigest(), Menu_bugmeter_validate(), try_ftp_transfer(), UIcmd_make_search_str(), UIcmd_save_file_check(), and Url_resolve_relative().
void dStr_sprintf | ( | Dstr * | ds, |
const char * | format, | ||
... | |||
) |
Printf-like function.
Definition at line 450 of file dlib.c.
References dStr_vsprintf().
Referenced by a_Digest_compute_digest(), a_Url_str(), Bms_check_import(), Bms_save(), Bmsrv_send_modify_page(), Bmsrv_send_modify_update(), Digest_create_response(), File_normalize_path(), Html_tag_open_meta(), Http_make_query_str(), Menu_bugmeter_validate(), send_bm_page(), Tls_check_cert_hostname(), and UIcmd_save_file_check().
void dStr_sprintfa | ( | Dstr * | ds, |
const char * | format, | ||
... | |||
) |
Printf-like function that appends.
Definition at line 464 of file dlib.c.
References dStr_vsprintfa().
Referenced by a_Digest_authorization_hdr(), DilloHtml::bugMessage(), Cookies_get(), Digest_Dstr_append_token_value(), Http_get_connect_str(), Http_make_query_str(), md5hexdigest(), Tls_cert_authorities_print_summary(), Tls_cert_bad_hash(), Tls_cert_bad_key(), Tls_cert_bad_pk_alg(), Tls_cert_cn_mismatch(), Tls_cert_expired(), Tls_cert_not_valid_yet(), Tls_cert_trust_chain_failed(), Tls_check_cert_hostname(), and Tls_make_bad_cert_msg().
void dStr_truncate | ( | Dstr * | ds, |
int | len | ||
) |
Truncate a Dstr to be 'len' bytes long.
Definition at line 368 of file dlib.c.
References Dstr::len, and Dstr::str.
Referenced by a_Dpip_dsh_read_token2(), a_Dpip_dsh_write(), a_Html_stash_init(), a_Url_set_ismap_coords(), Cache_entry_inject(), Dpi_get_token(), dStr_printable(), dStr_vsprintf(), File_normalize_path(), Html_get_attr2(), Html_get_javascript_link(), Http_make_query_str(), DilloHtml::initDw(), IO_read(), IO_write(), try_ftp_transfer(), and Url_resolve_relative().
void dStr_vsprintf | ( | Dstr * | ds, |
const char * | format, | ||
va_list | argp | ||
) |
vsprintf-like function.
Definition at line 439 of file dlib.c.
References dStr_truncate(), and dStr_vsprintfa().
Referenced by a_UIcmd_set_msg(), and dStr_sprintf().
void dStr_vsprintfa | ( | Dstr * | ds, |
const char * | format, | ||
va_list | argp | ||
) |
vsprintf-like function that appends.
Used by: dStr_vsprintf(), dStr_sprintf() and dStr_sprintfa().
Definition at line 401 of file dlib.c.
References dStr_resize(), Dstr::len, Dstr::str, and Dstr::sz.
Referenced by DilloHtml::bugMessage(), dStr_sprintfa(), and dStr_vsprintf().
int dStrAsciiCasecmp | ( | const char * | s1, |
const char * | s2 | ||
) |
Definition at line 203 of file dlib.c.
References D_ASCII_TOLOWER.
Referenced by a_Cache_download_enabled(), a_Capi_dpi_verify_request(), a_Capi_open_url(), a_Color_parse(), a_Decode_charset_init(), a_Decode_content_init(), a_Decode_transfer_init(), a_Dns_resolve(), a_Domain_parse(), a_Domain_permit(), a_Hsts_set(), a_Html_image_new(), a_Html_tag_set_align_attr(), a_Html_tag_set_valign_attr(), a_Menu_page_popup(), a_Misc_content_type_cmp(), a_UIcmd_view_page_source(), a_Url_hostname(), a_Url_new(), a_Url_same_organization(), StyleEngine::apply(), Auth_host_by_url(), Auth_parse_basic_challenge_cb(), Auth_parse_digest_challenge_cb(), Cache_parse_header(), Capi_request_permitted(), Cookie_control_init(), Cookies_control_check_domain(), Cookies_domain_matches(), Cookies_get(), Cookies_parse(), Cookies_rc_check(), Css_property_info_cmp(), Css_shorthand_info_cmp(), datauri_get_mime(), Dns_assign_channels(), Dns_queue_find(), Domain_match(), Domain_node_by_domain_cmp(), Domain_node_cmp(), Domain_node_cmp(), Domain_node_domain_str_cmp(), File_ext(), File_send_file(), Keys::getCmdCode(), Keys::getKeyCode(), Keys::getModifier(), Hsts_preload(), Html_get_radio_input(), Html_parse_doctype(), Html_tag_content_area(), Html_tag_open_button(), Html_tag_open_form(), Html_tag_open_input(), Html_tag_open_link(), Html_tag_open_meta(), Html_tag_open_style(), Html_tag_open_table(), Html_tag_open_ul(), Http_get(), Http_must_use_proxy(), Http_server_get(), Http_socket_reuse_compatible(), main(), CssSimpleSelector::match(), Menu_bugmeter_validate(), Nav_reload_callback(), CssParser::parse(), CssParser::parseImport(), CssParser::parseMedia(), parseOption(), CssParser::parseUrl(), CssParser::parseValue(), CssParser::parseWeight(), Tls_servers_by_url_cmp(), Tls_servers_by_url_cmp(), Tls_servers_cmp(), Tls_servers_cmp(), and CssParser::tokenMatchesProperty().
char * dStrconcat | ( | const char * | s1, |
... | |||
) |
Concatenate a NULL-terminated list of strings.
Definition at line 102 of file dlib.c.
References dStr_append(), dStr_free(), dStr_sized_new(), and Dstr::str.
Referenced by a_Cache_set_content_type(), a_Dpi_rd_dpi_socket_dir(), a_Dpi_sockdir_file(), a_Dpi_srs(), a_Dpip_check_auth(), a_Html_load_stylesheet(), a_Http_init(), a_Http_set_proxy_passwd(), a_Menu_page_popup(), a_UIcmd_get_passwd(), a_UIcmd_init(), a_Url_new(), Auth_do_auth_dialog(), Auth_do_auth_dialog_cb(), Bms_check_import(), Bms_save(), StyleEngine::buildUserStyle(), Cache_provide_redirection_blocked_page(), cleanup(), Cookie_control_init(), Cookies_get(), Cookies_init(), Cookies_rc_check(), datauri_get_mime(), dGethomedir(), Dpi_read_comm_keys(), Dpi_read_comm_keys(), Dpi_read_comm_keys(), Dpi_start_dpid(), Dpi_start_dpid(), expires_server_ahead(), expires_server_behind(), File_dillodir_new(), File_normalize_path(), fill_services_list(), get_dpi_attr(), Paths::getPrefsFP(), help_cb(), Html_tag_content_map(), Html_tag_open_meta(), Http_get_connect_str(), Http_get_referer(), Paths::init(), main(), main(), makeStartUrl(), mk_sockdir(), register_all(), register_service(), save_comm_keys(), Tls_check_cert_hostname(), Tls_examine_certificate(), Tls_examine_certificate(), Tls_load_certificates(), Tls_load_certificates(), tst_dir(), and UIcmd_make_save_filename().
char * dStrdup | ( | const char * | s | ) |
Definition at line 77 of file dlib.c.
References dNew.
Referenced by a_Auth_get_auth_str(), a_Bookmarks_chat_add(), a_Cache_set_content_type(), a_Cookies_get_query(), a_Cookies_get_query(), a_Dialog_input(), a_Domain_parse(), a_History_set_title_by_url(), a_Html_get_attr_wdef(), a_Html_image_new(), a_Http_init(), a_Menu_page_popup(), a_Nav_save_url(), a_Prefs_init(), a_Tls_mbedtls_connect_ready(), a_Tls_openssl_connect_ready(), a_UIcmd_get_location_text(), a_UIcmd_init(), a_Url_decode_hex_str(), a_Url_string_strip_delimiters(), dw::core::Layout::addAnchor(), dw::fltk::ui::FltkOptionMenuResource::addItem(), lout::misc::StringBuffer::append(), CssPropertyList::apply(), Auth_do_auth_dialog_cb(), Auth_do_auth_required(), Auth_parse_basic_challenge_cb(), Auth_parse_digest_challenge_cb(), Auth_realm_add_path(), Bmsrv_modify_add_section(), Bmsrv_modify_add_url(), Bmsrv_modify_update(), Bmsrv_parse_token(), Bmsrv_send_modify_update(), Cache_process_queue(), Capi_conn_new(), Capi_url_uses_dpi(), UI::change_panel(), Cookie_control_init(), Cookies_add_cookie(), Cookies_get(), Cookies_load_cookies(), Cookies_validate_domain(), Cookies_validate_path(), dw::core::style::Font::copyAttrs(), CssPropertyList::CssPropertyList(), datauri_get_data(), datauri_get_mime(), dGethomedir(), DilloHtml::DilloHtml(), Dns_cache_add(), Dns_queue_add(), Dns_server_req(), expires_extremes(), expires_server_ahead(), expires_server_behind(), File_dillodir_new(), File_prepare_send_dir(), File_prepare_send_error_page(), File_prepare_send_file(), File_print_parent_dir(), fill_services_list(), dw::fltk::ui::FltkEntryResource::FltkEntryResource(), dw::fltk::ui::FltkLabelButtonResource::FltkLabelButtonResource(), dw::fltk::ui::FltkMultiLineTextResource::FltkMultiLineTextResource(), form::Form::FormClickedReceiver::FormClickedReceiver(), get_dpi_attr(), get_dpi_dir(), Hsts_set_policy(), Html_tag_content_frame(), Html_tag_content_textarea(), Html_tag_open_font(), Html_tag_open_form(), Html_tag_open_input(), Html_tag_open_meta(), Html_tag_open_optgroup(), Http_get(), Http_get_connect_str(), Http_get_referer(), Http_must_use_proxy(), Http_server_get(), dw::Image::Image(), Keys::init(), dw::fltk::FltkFont::initSystemFonts(), dw::TrieBuilder::insert(), main(), main(), makeStartUrl(), maxage(), Menu_bugmeter_validate(), CssParser::parseImport(), Keys::parseKey(), parseOption(), CssParser::parseUrl(), CssParser::parseValue(), dw::fltk::ui::FltkOptionMenuResource::pushGroup(), form::Form::RadioButtonResourceDecorator::RadioButtonResourceDecorator(), register_all(), register_service(), form::Form::ResourceDecorator::ResourceDecorator(), dw::core::FindtextState::search(), form::Form::SelectionResourceDecorator::SelectionResourceDecorator(), TipWinButton::set_tooltip(), TipWinInput::set_tooltip(), dw::core::Layout::setAnchor(), StyleEngine::setId(), dw::fltk::ui::FltkLabelButtonResource::setLabel(), StyleEngine::setNonCssHint(), CssSimpleSelector::setSelect(), dw::fltk::ui::FltkEntryResource::setText(), TipWinButton::TipWinButton(), TipWinInput::TipWinInput(), Tls_update_cert_authorities_data(), lout::object::Object::toString(), UIcmd_save(), Unescape_html_str(), and Unescape_uri_str().
char * dStriAsciiStr | ( | const char * | haystack, |
const char * | needle | ||
) |
Case insensitive strstr.
Definition at line 184 of file dlib.c.
References D_ASCII_TOLOWER.
Referenced by a_Misc_parse_content_type(), Html_parse_doctype(), Html_tag_open_link(), Html_tag_open_meta(), and Html_tag_open_style().
int dStrnAsciiCasecmp | ( | const char * | s1, |
const char * | s2, | ||
size_t | n | ||
) |
Definition at line 215 of file dlib.c.
References D_ASCII_TOLOWER.
Referenced by a_Auth_do_auth(), a_Cache_set_content_type(), a_Misc_content_type_check(), a_Misc_get_content_type_from_data(), a_Misc_get_content_type_from_data2(), a_Misc_parse_content_type(), a_UIcmd_open_urlstr(), a_Web_dispatch_by_type(), Bmsrv_parse_token(), Capi_url_uses_dpi(), Cookies_get_month(), Cookies_internal_dots_required(), datauri_get_data(), datauri_get_mime(), File_get_content_type_from_data(), File_normalize_path(), File_serve_client(), Html_get_javascript_link(), Html_parse_doctype(), Html_process_tag(), Html_tag_content_area(), Mime_major_type_fetch(), Mime_minor_type_fetch(), send_html_text(), service_match(), UIcmd_find_search_str(), Unencode_str(), Unescape_html_str(), and Url_host_public_internal_dots().
char * dStrndup | ( | const char * | s, |
size_t | sz | ||
) |
Definition at line 88 of file dlib.c.
References dNew.
Referenced by a_Dpip_dsh_read_token2(), a_Dpip_get_attr_l(), a_Html_parse_entities(), a_Menu_page_popup(), a_Misc_parse_content_type(), a_Url_hostname(), Bmsrv_modify_update(), Cache_parse_field(), Cache_parse_multiple_fields(), Capi_url_uses_dpi(), Cookies_parse_attr(), Cookies_parse_value(), Cookies_validate_path(), Dpi_parse_token(), File_send_file(), Hsts_parse_attr(), Hsts_parse_value(), Html_parse_doctype(), Html_parse_entity(), Html_tag_open_meta(), Html_write_raw(), Menu_bugmeter_validate(), Keys::parseKey(), splitStr(), UIcmd_make_save_filename(), and DilloHtml::write().
char * dStrnfill | ( | size_t | len, |
char | c | ||
) |
Return a new string of length 'len' filled with 'c' characters.
Definition at line 149 of file dlib.c.
References dNew.
Referenced by Html_process_space().
char * dStrsep | ( | char ** | orig, |
const char * | delim | ||
) |
strsep() implementation
Definition at line 159 of file dlib.c.
Referenced by Cookies_load_cookies(), Html_tag_open_form(), and Http_must_use_proxy().
void dStrshred | ( | char * | s | ) |
Clear the contents of the string.
Definition at line 140 of file dlib.c.
Referenced by Auth_do_auth_dialog_cb().
char * dStrstrip | ( | char * | s | ) |
Remove leading and trailing whitespace.
Definition at line 122 of file dlib.c.
References dIsspace.
Referenced by a_Domain_parse(), a_Dpi_srs(), StyleEngine::apply(), Cookie_control_init(), Cookies_load_cookies(), Cookies_rc_check(), dParser_parse_rc_line(), Hsts_preload(), CssParser::parseValue(), and Url_object_new().
int dUsleep | ( | unsigned long | usec | ) |
Portable usleep() function.
The usleep() function is deprecated in POSIX.1-2001 and removed in POSIX.1-2008, see usleep(3).
Definition at line 967 of file dlib.c.
Referenced by Dpi_blocking_start_dpid(), and Dpi_blocking_start_dpid().