GNU libmicrohttpd 1.0.1
|
Go to the source code of this file.
Macros | |
#define | MHD_STATICSTR_LEN_(macro) (sizeof(macro) / sizeof(char) - 1) |
#define | MHD_str_has_s_token_caseless_(str, tkn) MHD_str_has_token_caseless_ ((str),(tkn),MHD_STATICSTR_LEN_ (tkn)) |
Functions | |
int | MHD_str_equal_caseless_ (const char *str1, const char *str2) |
int | MHD_str_equal_caseless_n_ (const char *const str1, const char *const str2, size_t maxlen) |
bool | MHD_str_has_token_caseless_ (const char *str, const char *const token, size_t token_len) |
size_t | MHD_str_to_uint64_ (const char *str, uint64_t *out_val) |
size_t | MHD_str_to_uint64_n_ (const char *str, size_t maxlen, uint64_t *out_val) |
size_t | MHD_strx_to_uint32_ (const char *str, uint32_t *out_val) |
size_t | MHD_strx_to_uint32_n_ (const char *str, size_t maxlen, uint32_t *out_val) |
size_t | MHD_strx_to_uint64_ (const char *str, uint64_t *out_val) |
size_t | MHD_strx_to_uint64_n_ (const char *str, size_t maxlen, uint64_t *out_val) |
Determine length of static string / macro strings at compile time.
Definition at line 45 of file mhd_str.h.
Referenced by add_response_header_connection(), add_user_headers(), build_header_response(), del_response_header_connection(), find_auth_rq_header_(), get_no_space_err_status_code(), get_rq_extended_uname_copy_z(), MHD_add_response_header(), MHD_connection_handle_idle(), MHD_connection_handle_write(), MHD_create_post_processor(), MHD_del_response_header(), MHD_post_process(), MHD_queue_basic_auth_required_response3(), MHD_request_handle_idle_(), MHD_request_handle_write_(), need_100_continue(), need_100_continue(), new_connection_prepare_(), parse_connection_headers(), parse_http_std_method(), parse_request_headers(), post_process_multipart(), process_multipart_headers(), queue_auth_required_response3_inner(), and send_redirect_fixed_rq_target().
#define MHD_str_has_s_token_caseless_ | ( | str, | |
tkn ) MHD_str_has_token_caseless_ ((str),(tkn),MHD_STATICSTR_LEN_ (tkn)) |
Check whether str has case-insensitive static tkn. Token could be surrounded by spaces and tabs and delimited by comma. Match succeed if substring between start, end of string or comma contains only case-insensitive token and optional spaces and tabs.
str | the string to check |
tkn | the static string of token to find |
Definition at line 115 of file mhd_str.h.
Referenced by MHD_queue_response().
Check two string for equality, ignoring case of US-ASCII letters.
str1 | first string to compare |
str2 | second string to compare |
Check two strings for equality, ignoring case of US-ASCII letters.
str1 | first string to compare |
str2 | second string to compare |
Check two string for equality, ignoring case of US-ASCII letters and checking not more than maxlen characters. Compares up to first terminating null character, but not more than first maxlen characters.
str1 | first string to compare |
str2 | second string to compare |
maxlen | maximum number of characters to compare |
Check whether str has case-insensitive token. Token could be surrounded by spaces and tabs and delimited by comma. Match succeed if substring between start, end of string or comma contains only case-insensitive token and optional spaces and tabs.
str | the string to check |
token | the token to find |
token_len | length of token, not including optional terminating null-character. |
Check whether str has case-insensitive token. Token could be surrounded by spaces and tabs and delimited by comma. Match succeed if substring between start, end (of string) or comma contains only case-insensitive token and optional spaces and tabs.
str | the string to check |
token | the token to find |
token_len | length of token, not including optional terminating null-character. |
Check whether str has case-insensitive token. Token could be surrounded by spaces and tabs and delimited by comma. Match succeed if substring between start, end (of string) or comma contains only case-insensitive token and optional spaces and tabs.
str | the string to check |
token | the token to find |
token_len | length of token, not including optional terminating null-character. |
Convert decimal US-ASCII digits in string to number in uint64_t. Conversion stopped at first non-digit character.
str | string to convert |
out_val | pointer to uint64_t to store result of conversion |
Convert decimal US-ASCII digits in string to number in uint64_t. Conversion stopped at first non-digit character.
str | string to convert | |
[out] | out_val | pointer to uint64_t to store result of conversion |
Convert not more then maxlen decimal US-ASCII digits in string to number in uint64_t. Conversion stopped at first non-digit character or after maxlen digits.
str | string to convert |
maxlen | maximum number of characters to process |
out_val | pointer to uint64_t to store result of conversion |
Convert not more then maxlen decimal US-ASCII digits in string to number in uint64_t. Conversion stopped at first non-digit character or after maxlen digits.
str | string to convert | |
maxlen | maximum number of characters to process | |
[out] | out_val | pointer to uint64_t to store result of conversion |
Convert hexadecimal US-ASCII digits in string to number in uint32_t. Conversion stopped at first non-digit character.
str | string to convert |
out_val | pointer to uint32_t to store result of conversion |
Convert hexadecimal US-ASCII digits in string to number in uint32_t. Conversion stopped at first non-digit character.
str | string to convert | |
[out] | out_val | pointer to uint32_t to store result of conversion |
Convert not more then maxlen hexadecimal US-ASCII digits in string to number in uint32_t. Conversion stopped at first non-digit character or after maxlen digits.
str | string to convert |
maxlen | maximum number of characters to process |
out_val | pointer to uint32_t to store result of conversion |
Convert not more then maxlen hexadecimal US-ASCII digits in string to number in uint32_t. Conversion stopped at first non-digit character or after maxlen digits.
str | string to convert | |
maxlen | maximum number of characters to process | |
[out] | out_val | pointer to uint32_t to store result of conversion |
Convert hexadecimal US-ASCII digits in string to number in uint64_t. Conversion stopped at first non-digit character.
str | string to convert |
out_val | pointer to uint64_t to store result of conversion |
Convert hexadecimal US-ASCII digits in string to number in uint64_t. Conversion stopped at first non-digit character.
str | string to convert | |
[out] | out_val | pointer to uint64_t to store result of conversion |
Convert not more then maxlen hexadecimal US-ASCII digits in string to number in uint64_t. Conversion stopped at first non-digit character or after maxlen digits.
str | string to convert |
maxlen | maximum number of characters to process |
out_val | pointer to uint64_t to store result of conversion |
Convert not more then maxlen hexadecimal US-ASCII digits in string to number in uint64_t. Conversion stopped at first non-digit character or after maxlen digits.
str | string to convert | |
maxlen | maximum number of characters to process | |
[out] | out_val | pointer to uint64_t to store result of conversion |