dillo
3.0.5
About: dillo is a small, fast, extensible Web browser particularly suitable for older or smaller computers and embedded systems (but only limited or no support for frames, CSS, JavaScript, Java).
![]() ![]() |
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <ctype.h>
#include "dlib.h"
Go to the source code of this file.
Macros | |
#define | DLIB_MSG(...) |
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,...) |
char * | dStrstrip (char *s) |
void | dStrshred (char *s) |
char * | dStrnfill (size_t len, char c) |
char * | dStrsep (char **orig, const char *delim) |
char * | dStriAsciiStr (const char *haystack, const char *needle) |
int | dStrAsciiCasecmp (const char *s1, const char *s2) |
int | dStrnAsciiCasecmp (const char *s1, const char *s2, size_t n) |
static void | dStr_resize (Dstr *ds, int n_sz, int keep) |
Dstr * | dStr_sized_new (int sz) |
void | dStr_fit (Dstr *ds) |
void | dStr_insert_l (Dstr *ds, int pos_0, const char *s, int l) |
void | dStr_insert (Dstr *ds, int pos_0, const char *s) |
void | dStr_append_l (Dstr *ds, const char *s, int l) |
void | dStr_append (Dstr *ds, const char *s) |
Dstr * | dStr_new (const char *s) |
void | dStr_free (Dstr *ds, int all) |
void | dStr_append_c (Dstr *ds, int c) |
void | dStr_truncate (Dstr *ds, int len) |
void | dStr_shred (Dstr *ds) |
void | dStr_erase (Dstr *ds, int pos_0, int len) |
void | dStr_vsprintfa (Dstr *ds, const char *format, va_list argp) |
void | dStr_vsprintf (Dstr *ds, const char *format, va_list argp) |
void | dStr_sprintf (Dstr *ds, const char *format,...) |
void | dStr_sprintfa (Dstr *ds, const char *format,...) |
int | dStr_cmp (Dstr *ds1, Dstr *ds2) |
char * | dStr_memmem (Dstr *haystack, Dstr *needle) |
const char * | dStr_printable (Dstr *in, int maxlen) |
Dlist * | dList_new (int size) |
void | dList_free (Dlist *lp) |
void | dList_insert_pos (Dlist *lp, void *data, int pos0) |
void | dList_append (Dlist *lp, void *data) |
void | dList_prepend (Dlist *lp, void *data) |
int | dList_length (Dlist *lp) |
void | dList_remove_fast (Dlist *lp, const void *data) |
void | dList_remove (Dlist *lp, const void *data) |
void * | dList_nth_data (Dlist *lp, int n0) |
void * | dList_find (Dlist *lp, const void *data) |
int | dList_find_idx (Dlist *lp, const void *data) |
void * | dList_find_custom (Dlist *lp, const void *data, dCompareFunc func) |
static void | QuickSort (void **left, void **right, dCompareFunc compare) |
void | dList_sort (Dlist *lp, dCompareFunc func) |
void | dList_insert_sorted (Dlist *lp, void *data, dCompareFunc func) |
void * | dList_find_sorted (Dlist *lp, const void *data, dCompareFunc func) |
int | dParser_parse_rc_line (char **line, char **name, char **value) |
void | dLib_show_messages (bool_t show) |
char * | dGetcwd () |
char * | dGethomedir () |
char * | dGetline (FILE *stream) |
int | dClose (int fd) |
Variables | |
static bool_t | dLib_show_msg = (! (0) ) |
#define DLIB_MSG | ( | ... | ) |
int dClose | ( | int | fd | ) |
Definition at line 949 of file dlib.c.
Referenced by a_Dns_freeall(), a_Dns_init(), a_Dpi_send_blocking_cmd(), a_Dpip_dsh_close(), DLItem::abort_dl(), DLItem::child_init(), ckd_close(), Cookies_fopen(), Dpi_check_dpid_ids(), Dpi_connect_socket(), Dpi_get_server_port(), Dpi_start_dpid(), DLItem::father_init(), Http_connect_socket(), ignore_dpi_sockets(), IO_close_fd(), main(), read_log_cb(), start_filter_plugin(), start_server_plugin(), and stop_active_dpis().
void dFree | ( | void * | mem | ) |
Definition at line 66 of file dlib.c.
Referenced by a_Bitvec_free(), a_Bookmarks_add(), a_Bookmarks_chat_add(), a_Bw_free(), a_Cache_process_dbuf(), a_Cache_set_content_type(), a_Capi_ccc(), a_Capi_dpi_send_data(), a_Capi_open_url(), a_Cookies_get_query(), a_Cookies_set(), a_Decode_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_Html_common_image_attrs(), a_Html_image_new(), a_Html_load_stylesheet(), a_Http_ccc(), a_Http_freeall(), a_Http_make_connect_str(), a_Http_make_query_str(), 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_Url_set_alt(), 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(), DilloHtmlForm::buildQueryData(), DilloHtmlForm::buildQueryUrl(), 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_build_cmd(), 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_server_timediff(), Cookies_validate_path(), Decode_charset_free(), Decode_chunked_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_get_server_port(), Dpi_parse_token(), Dpi_read_comm_keys(), Dpi_start_dpid(), Dpiapi_dialog_answer_cb(), dStr_free(), dStr_resize(), DilloHtmlForm::encodeText(), 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(), Paths::free(), Keys::free(), CssProperty::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(), 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_dns_cb(), Http_get(), Http_host_connection_remove(), Http_must_use_proxy(), Http_send_query(), Http_socket_dequeue(), Http_socket_free(), Image_free(), CustTabs::increase_focus_counter(), Paths::init(), init_sockdir(), IO_free(), main(), make_wget_argv(), makeStartUrl(), mk_sockdir(), Nav_stack_clean(), Nav_stack_truncate(), no_ssl_support(), Keys::parse(), CssParser::parseImport(), Keys::parseKey(), parseOption(), 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(), DilloHtmlForm::strUrlencodeAppend(), try_ftp_transfer(), tst_dir(), UIcmd_make_save_filename(), UIcmd_make_search_str(), UIcmd_save(), DilloHtml::write(), CssSimpleSelector::~CssSimpleSelector(), DilloHtml::~DilloHtml(), DilloHtmlForm::~DilloHtmlForm(), DilloHtmlInput::~DilloHtmlInput(), DilloHtmlOptgroup::~DilloHtmlOptgroup(), DilloHtmlOption::~DilloHtmlOption(), DLItem::~DLItem(), and DoctreeNode::~DoctreeNode().
char* dGetcwd | ( | ) |
char* dGethomedir | ( | ) |
Definition at line 904 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(), a_UIcmd_open_urlstr(), Bms_check_import(), StyleEngine::buildUserStyle(), cleanup(), Cookie_control_init(), Cookies_init(), DLItem::DLItem(), Dpi_read_comm_keys(), Dpi_start_dpid(), fill_services_list(), Paths::getPrefsFP(), Paths::init(), main(), register_all(), register_service(), and save_comm_keys().
char* dGetline | ( | FILE * | stream | ) |
Definition at line 926 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(), fill_services_list(), get_dpi_dir(), and Keys::parse().
void dLib_show_messages | ( | bool_t | show | ) |
void dList_append | ( | Dlist * | lp, |
void * | data | ||
) |
Definition at line 595 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(), DilloHtmlInput::appendValuesTo(), DilloHtmlSelect::appendValuesTo(), 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_host_connection_get(), Nav_stack_append(), and parseOption().
void* dList_find | ( | Dlist * | lp, |
const void * | data | ||
) |
Definition at line 670 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 | ||
) |
Definition at line 702 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(), 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(), and send_sockport().
int dList_find_idx | ( | Dlist * | lp, |
const void * | data | ||
) |
Definition at line 681 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 | ||
) |
Definition at line 794 of file dlib.c.
References Dlist::len, Dlist::list, lout::misc::max(), and lout::misc::min().
Referenced by a_Dicache_get_entry(), a_Klist_get_data(), a_Klist_remove(), Cache_entry_search(), Cookies_add_cookie(), Cookies_add_matching_cookies(), Cookies_rm_expired_cookies(), Cookies_too_many(), Keys::delKeyCmd(), Dicache_add_entry(), Dicache_remove(), and Keys::getKeyCmd().
void dList_free | ( | Dlist * | lp | ) |
Definition at line 562 of file dlib.c.
References dFree(), and Dlist::list.
Referenced by a_Bw_free(), a_Cache_freeall(), a_Dicache_freeall(), a_Dns_freeall(), a_Klist_free(), a_Prefs_freeall(), Auth_realm_delete(), DilloHtmlForm::buildQueryData(), 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_host_connection_remove_all(), and DilloHtmlForm::makeMultipartBoundary().
void dList_insert_pos | ( | Dlist * | lp, |
void * | data, | ||
int | pos0 | ||
) |
Definition at line 574 of file dlib.c.
References dRealloc(), Dlist::len, Dlist::list, and Dlist::sz.
Referenced by Cookies_add_matching_cookies(), dList_append(), dList_insert_sorted(), and dList_prepend().
void dList_insert_sorted | ( | Dlist * | lp, |
void * | data, | ||
dCompareFunc | func | ||
) |
Definition at line 767 of file dlib.c.
References dList_insert_pos(), Dlist::len, Dlist::list, lout::misc::max(), and lout::misc::min().
Referenced by a_Klist_insert(), Cache_entry_add(), Cookies_add_cookie(), Dicache_add_entry(), Keys::init(), and Keys::parseKey().
int dList_length | ( | Dlist * | lp | ) |
Definition at line 611 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_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(), DilloHtmlForm::buildQueryData(), 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_host_connection_get(), Http_host_connection_remove_all(), DilloHtmlForm::makeMultipartBoundary(), Nav_stack_truncate(), parseOption(), and UIcmd_find_search_str().
Dlist* dList_new | ( | int | size | ) |
Definition at line 546 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_Http_init(), a_Klist_insert(), a_Prefs_init(), a_Web_init(), Auth_do_auth_dialog_cb(), DilloHtmlForm::buildQueryData(), Cache_parse_multiple_fields(), Cookies_add_cookie(), Cookies_get(), Cookies_load_cookies(), Dns_server(), File_dillodir_new(), fill_services_list(), Keys::init(), main(), and DilloHtmlForm::makeMultipartBoundary().
void* dList_nth_data | ( | Dlist * | lp, |
int | n0 | ||
) |
Definition at line 660 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_Capi_conn_abort_by_url(), a_Cookies_set(), a_Dialog_input(), a_Dicache_cleanup(), a_Dicache_freeall(), a_Dns_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(), DilloHtmlForm::buildQueryData(), 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_socket(), Http_host_connection_get(), Http_host_connection_remove_all(), DilloHtmlForm::makeMultipartBoundary(), Nav_get_scroll_pos(), Nav_save_scroll_pos(), Nav_stack_clean(), Nav_stack_truncate(), parseOption(), send_bm_page(), UIcmd_find_search_str(), and UIcmd_make_search_str().
void dList_prepend | ( | Dlist * | lp, |
void * | data | ||
) |
Definition at line 603 of file dlib.c.
References dList_insert_pos().
void dList_remove | ( | Dlist * | lp, |
const void * | data | ||
) |
Definition at line 639 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(), DilloHtmlForm::buildQueryData(), 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(), DilloHtmlForm::makeMultipartBoundary(), and parseOption().
void dList_remove_fast | ( | Dlist * | lp, |
const void * | data | ||
) |
Definition at line 621 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_host_connection_remove(), Nav_stack_clean(), and Nav_stack_truncate().
void dList_sort | ( | Dlist * | lp, |
dCompareFunc | func | ||
) |
Definition at line 756 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 43 of file dlib.c.
Referenced by a_Misc_encode_base64(), a_Misc_readtag(), and dMalloc0().
int dParser_parse_rc_line | ( | char ** | line, |
char ** | name, | ||
char ** | value | ||
) |
Definition at line 832 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 51 of file dlib.c.
Referenced by a_Imgbuf_new(), a_Misc_readtag(), a_Url_decode_hex_str(), dList_insert_pos(), dStr_resize(), DLItem::log_text_add(), and register_all().
void dStr_append | ( | Dstr * | ds, |
const char * | s | ||
) |
Definition at line 314 of file dlib.c.
References dStr_append_l().
Referenced by a_Dpip_build_cmd(), a_UIcmd_view_page_source(), a_Url_set_ismap_coords(), DilloHtmlForm::buildQueryData(), Cookies_get(), Digest_Dstr_append_token_value(), dStr_new(), dStr_printable(), dStrconcat(), Escape_html_str(), File_prepare_send_dir(), File_send_error_page(), DilloHtmlForm::filesInputMultipartAppend(), Html_process_word(), Html_write_raw(), DilloHtmlForm::inputMultipartAppend(), CssParser::parseUrl(), CssParser::parseValue(), DilloHtmlForm::strUrlencodeAppend(), UIcmd_make_search_str(), and Url_resolve_relative().
void dStr_append_c | ( | Dstr * | ds, |
int | c | ||
) |
Definition at line 347 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_Misc_escape_chars(), a_Misc_rdtag(), Auth_unquote_value(), DilloHtml::bugMessage(), Cache_get_header(), dGetline(), Digest_Dstr_append_token_value(), dStr_printable(), DilloHtmlForm::encodeText(), Escape_html_str(), Escape_uri_str(), DilloHtmlForm::filesInputMultipartAppend(), Html_get_attr2(), Html_process_word(), Http_make_content_type(), DilloHtmlForm::imageInputMultipartAppend(), DilloHtmlForm::inputUrlencodeAppend(), CssParser::parseValue(), UIcmd_make_search_str(), and Url_resolve_relative().
void dStr_append_l | ( | Dstr * | ds, |
const char * | s, | ||
int | l | ||
) |
Definition at line 306 of file dlib.c.
References dStr_insert_l(), and Dstr::len.
Referenced by a_Cache_process_dbuf(), a_Dpip_dsh_trywrite(), a_Dpip_dsh_write(), a_Http_make_query_str(), a_IO_ccc(), a_Misc_file2dstr(), a_Url_dup(), DilloHtmlInput::appendValuesTo(), Cache_entry_inject(), Capi_url_uses_dpi(), Decode_charset(), Decode_chunked(), Decode_deflate(), Decode_gzip(), Decode_raw_deflate(), Dpi_append_dbuf(), Dpi_blocking_read(), Dpip_dsh_read(), dStr_append(), dStr_append_c(), dStr_printable(), DilloHtmlForm::encodeText(), DilloHtmlForm::filesInputMultipartAppend(), Html_process_space(), Html_process_word(), Http_make_content_type(), IO_read(), DilloHtmlForm::makeMultipartBoundary(), and try_ftp_transfer().
void dStr_erase | ( | Dstr * | ds, |
int | pos_0, | ||
int | len | ||
) |
Definition at line 386 of file dlib.c.
References Dstr::len, and Dstr::str.
Referenced by a_Dpip_dsh_read_token2(), a_Dpip_dsh_tryflush(), Cache_get_header(), Decode_charset(), Decode_chunked(), 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 | ) |
Definition at line 267 of file dlib.c.
References dStr_resize(), and Dstr::len.
Referenced by a_Cache_process_dbuf(), Cache_entry_inject(), and Cache_get_header().
void dStr_free | ( | Dstr * | ds, |
int | all | ||
) |
Definition at line 335 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_Digest_authorization_hdr(), a_Digest_compute_digest(), a_Dpip_build_cmd(), a_Dpip_dsh_free(), a_Http_make_connect_str(), a_Http_make_query_str(), a_Misc_escape_chars(), a_Misc_rdtag(), a_UIcmd_set_msg(), a_UIcmd_view_page_source(), a_Url_free(), a_Url_set_data(), Auth_parse_token_value(), Bms_check_import(), Bms_save(), DilloHtmlForm::buildQueryData(), DilloHtmlForm::buildQueryUrl(), StyleEngine::buildUserStyle(), Cache_entry_free(), Cache_parse_header(), Cache_ref_data(), Cache_unref_data(), Capi_dpi_build_cmd(), Capi_url_uses_dpi(), Cookies_get(), Decode_charset_free(), Decode_chunked_free(), Decode_deflate(), dGetline(), Digest_create_response(), Dpi_blocking_read(), Dpi_conn_free(), dStrconcat(), DilloHtmlForm::encodeText(), Escape_html_str(), Escape_uri_str(), File_normalize_path(), File_prepare_send_dir(), File_send_error_page(), DilloHtml::freeParseData(), Html_tag_open_meta(), Http_send_query(), IO_free(), DilloHtmlForm::makeMultipartBoundary(), Menu_bugmeter_validate_w3c_cb(), Menu_bugmeter_validate_wdg_cb(), CssParser::parseUrl(), CssParser::parseValue(), DilloHtmlInput::readFile(), try_ftp_transfer(), UIcmd_make_search_str(), UIcmd_save_file_check(), Url_resolve_relative(), and DilloHtmlInput::~DilloHtmlInput().
void dStr_insert | ( | Dstr * | ds, |
int | pos_0, | ||
const char * | s | ||
) |
Definition at line 296 of file dlib.c.
References dStr_insert_l().
void dStr_insert_l | ( | Dstr * | ds, |
int | pos_0, | ||
const char * | s, | ||
int | l | ||
) |
Definition at line 276 of file dlib.c.
References dStr_resize(), Dstr::len, Dstr::str, and Dstr::sz.
Referenced by dStr_append_l(), and dStr_insert().
Definition at line 488 of file dlib.c.
References Dstr::len, and Dstr::str.
Referenced by DilloHtmlForm::makeMultipartBoundary().
Dstr* dStr_new | ( | const char * | s | ) |
Definition at line 323 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_Http_make_connect_str(), a_Http_make_query_str(), a_UIcmd_view_page_source(), a_Url_dup(), a_Url_new(), DilloHtmlInput::appendValuesTo(), DilloHtmlSelect::appendValuesTo(), Auth_unquote_value(), Bms_check_import(), Bms_save(), Bmsrv_send_modify_page(), Bmsrv_send_modify_update(), DilloHtmlForm::buildQueryData(), 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(), DilloHtmlForm::encodeText(), File_prepare_send_dir(), Http_make_content_type(), DilloHtmlForm::makeMultipartBoundary(), CssParser::parseUrl(), CssParser::parseValue(), and send_bm_page().
const char* dStr_printable | ( | Dstr * | in, |
int | maxlen | ||
) |
Definition at line 511 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_Http_make_query_str(), and a_IO_ccc().
|
static |
Definition at line 232 of file dlib.c.
References dFree(), dNew, dRealloc(), Dstr_char_t, Dstr::len, Dstr::str, and Dstr::sz.
Referenced by dStr_fit(), dStr_insert_l(), dStr_sized_new(), and dStr_vsprintfa().
void dStr_shred | ( | Dstr * | ds | ) |
Definition at line 377 of file dlib.c.
References Dstr::str, and Dstr::sz.
Referenced by a_Digest_compute_digest().
Dstr* dStr_sized_new | ( | int | sz | ) |
Definition at line 252 of file dlib.c.
References dNew, dStr_resize(), and Dstr::str.
Referenced by a_Dpip_build_cmd(), a_Dpip_dsh_new(), a_Misc_escape_chars(), a_Misc_file2dstr(), a_Misc_rdtag(), a_UIcmd_set_msg(), a_Url_dup(), a_Url_str(), DilloHtmlInput::appendValuesTo(), DilloHtmlForm::buildQueryData(), Cache_entry_init(), Cache_parse_header(), Decode_chunked(), dGetline(), DilloHtml::DilloHtml(), 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_w3c_cb(), Menu_bugmeter_validate_wdg_cb(), try_ftp_transfer(), UIcmd_make_search_str(), UIcmd_save_file_check(), and Url_resolve_relative().
void dStr_sprintf | ( | Dstr * | ds, |
const char * | format, | ||
... | |||
) |
Definition at line 448 of file dlib.c.
References dStr_vsprintf().
Referenced by a_Digest_compute_digest(), a_Http_make_query_str(), a_Url_str(), DilloHtmlInput::appendValuesTo(), Bms_check_import(), Bms_save(), Bmsrv_send_modify_page(), Bmsrv_send_modify_update(), Digest_create_response(), File_normalize_path(), Html_tag_open_meta(), DilloHtmlForm::makeMultipartBoundary(), Menu_bugmeter_validate_w3c_cb(), Menu_bugmeter_validate_wdg_cb(), send_bm_page(), and UIcmd_save_file_check().
void dStr_sprintfa | ( | Dstr * | ds, |
const char * | format, | ||
... | |||
) |
Definition at line 462 of file dlib.c.
References dStr_vsprintfa().
Referenced by a_Digest_authorization_hdr(), a_Http_make_connect_str(), a_Http_make_query_str(), DilloHtml::bugMessage(), Cookies_get(), Digest_Dstr_append_token_value(), DilloHtmlForm::filesInputMultipartAppend(), DilloHtmlForm::imageInputUrlencodeAppend(), DilloHtmlForm::inputMultipartAppend(), and md5hexdigest().
void dStr_truncate | ( | Dstr * | ds, |
int | len | ||
) |
Definition at line 366 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_Http_make_query_str(), a_Url_set_ismap_coords(), DilloHtmlForm::buildQueryData(), Cache_entry_inject(), Dpi_get_token(), dStr_printable(), dStr_vsprintf(), File_normalize_path(), Html_get_attr2(), Html_get_javascript_link(), DilloHtmlForm::imageInputMultipartAppend(), DilloHtml::initDw(), IO_read(), IO_write(), DilloHtmlForm::makeMultipartBoundary(), try_ftp_transfer(), and Url_resolve_relative().
void dStr_vsprintf | ( | Dstr * | ds, |
const char * | format, | ||
va_list | argp | ||
) |
Definition at line 437 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 | ||
) |
Definition at line 399 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 201 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_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_same_organization(), StyleEngine::apply(), Auth_host_by_url(), Auth_parse_basic_challenge_cb(), Auth_parse_digest_challenge_cb(), DilloHtmlForm::buildQueryData(), Cache_parse_header(), Cookie_control_init(), Cookies_control_check_domain(), Cookies_domain_matches(), Cookies_get(), Cookies_parse(), 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(), File_ext(), File_send_file(), DilloHtmlForm::filesInputMultipartAppend(), Keys::getCmdCode(), Keys::getKeyCode(), Keys::getModifier(), DilloHtmlForm::getRadioInput(), 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_host_connection_get(), Http_must_use_proxy(), main(), CssSimpleSelector::match(), Nav_reload_callback(), CssParser::parse(), CssParser::parseImport(), CssParser::parseMedia(), parseOption(), CssParser::parseUrl(), CssParser::parseValue(), CssParser::parseWeight(), and CssParser::tokenMatchesProperty().
char* dStrconcat | ( | const char * | s1, |
... | |||
) |
Definition at line 100 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_make_connect_str(), 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(), DilloHtmlForm::buildQueryData(), DilloHtmlForm::buildQueryUrl(), StyleEngine::buildUserStyle(), Cache_provide_redirection_blocked_page(), cleanup(), Cookie_control_init(), Cookies_get(), Cookies_init(), datauri_get_mime(), dGethomedir(), DLItem::DLItem(), Dpi_read_comm_keys(), Dpi_start_dpid(), File_dillodir_new(), fill_services_list(), get_dpi_attr(), Paths::getPrefsFP(), help_cb(), Html_tag_content_map(), Html_tag_open_meta(), Http_get_referer(), Paths::init(), main(), makeStartUrl(), mk_sockdir(), register_all(), register_service(), save_comm_keys(), tst_dir(), and UIcmd_make_save_filename().
char* dStrdup | ( | const char * | s | ) |
Definition at line 75 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_Dialog_input(), a_Domain_parse(), a_History_set_title_by_url(), a_Html_get_attr_wdef(), a_Html_image_new(), a_Http_init(), a_Http_make_connect_str(), a_Menu_page_popup(), a_Nav_save_url(), a_Prefs_init(), a_UIcmd_get_location_text(), a_UIcmd_init(), a_Url_decode_hex_str(), a_Url_dup(), a_Url_set_alt(), a_Url_string_strip_delimiters(), Auth_do_auth_dialog_cb(), Auth_do_auth_required(), Auth_realm_add_path(), Bmsrv_modify_add_section(), Bmsrv_modify_add_url(), Bmsrv_modify_update(), Bmsrv_parse_token(), Bmsrv_send_modify_update(), DilloHtmlForm::buildQueryUrl(), 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(), CssPropertyList::CssPropertyList(), datauri_get_data(), datauri_get_mime(), dGethomedir(), DilloHtml::DilloHtml(), DilloHtmlForm::DilloHtmlForm(), DilloHtmlInput::DilloHtmlInput(), DLItem::DLItem(), Dns_cache_add(), Dns_queue_add(), Dns_server_req(), File_dillodir_new(), File_prepare_send_dir(), File_prepare_send_error_page(), File_prepare_send_file(), File_print_parent_dir(), fill_services_list(), get_dpi_attr(), get_dpi_dir(), Html_parse_entity(), Html_tag_content_frame(), Html_tag_content_textarea(), Html_tag_open_font(), Html_tag_open_form(), Html_tag_open_input(), Html_tag_open_meta(), Http_get(), Http_get_referer(), Http_host_connection_get(), Http_must_use_proxy(), Keys::init(), main(), makeStartUrl(), CssParser::parseImport(), Keys::parseKey(), parseOption(), CssParser::parseUrl(), CssParser::parseValue(), register_all(), register_service(), StyleEngine::setId(), StyleEngine::setNonCssHint(), CssSimpleSelector::setSelect(), UIcmd_save(), Unescape_html_str(), Unescape_uri_str(), and Url_object_new().
char* dStriAsciiStr | ( | const char * | haystack, |
const char * | needle | ||
) |
Definition at line 182 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 213 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(), DLItem::DLItem(), 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(), Unencode_str(), Unescape_html_str(), and Url_host_public_internal_dots().
char* dStrndup | ( | const char * | s, |
size_t | sz | ||
) |
Definition at line 86 of file dlib.c.
References dNew.
Referenced by a_Cache_process_dbuf(), 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(), DLItem::DLItem(), Dpi_parse_token(), File_send_file(), Html_parse_doctype(), Html_parse_entity(), Html_tag_open_meta(), Html_write_raw(), Keys::parseKey(), DilloHtmlOption::setContent(), splitStr(), UIcmd_make_save_filename(), and DilloHtml::write().
char* dStrnfill | ( | size_t | len, |
char | c | ||
) |
char* dStrsep | ( | char ** | orig, |
const char * | delim | ||
) |
Definition at line 157 of file dlib.c.
Referenced by Cookies_load_cookies(), Html_tag_open_form(), and Http_must_use_proxy().
void dStrshred | ( | char * | s | ) |
Definition at line 138 of file dlib.c.
Referenced by Auth_do_auth_dialog_cb().
char* dStrstrip | ( | char * | s | ) |
Definition at line 120 of file dlib.c.
References dIsspace.
Referenced by a_Domain_parse(), a_Dpi_srs(), StyleEngine::apply(), Cookie_control_init(), Cookies_load_cookies(), dParser_parse_rc_line(), CssParser::parseValue(), and Url_object_new().
|
static |
Definition at line 723 of file dlib.c.
Referenced by dList_sort().
|
static |
Definition at line 30 of file dlib.c.
Referenced by dLib_show_messages().