GNU libmicrohttpd
0.9.29
|
Header for string manipulating helpers. More...
Go to the source code of this file.
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) |
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_sizet_ (const char *str, size_t *out_val) |
size_t | MHD_strx_to_sizet_n_ (const char *str, size_t maxlen, size_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) |
Header for string manipulating helpers.
Definition in file mhd_str.h.
int MHD_str_equal_caseless_ | ( | const char * | str1, |
const char * | str2 | ||
) |
Check two string for equality, ignoring case of US-ASCII letters.
str1 | first string to compare |
str2 | second string to compare |
Definition at line 319 of file mhd_str.c.
References toasciilower.
Referenced by build_header_response(), digest_calc_ha1(), keepalive_possible(), MHD_connection_handle_idle(), MHD_lookup_connection_value(), MHD_queue_response(), need_100_continue(), and parse_connection_headers().
int MHD_str_equal_caseless_n_ | ( | const char *const | str1, |
const char *const | str2, | ||
size_t | maxlen | ||
) |
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 |
Definition at line 349 of file mhd_str.c.
References toasciilower.
Referenced by lookup_sub_value(), MHD_create_post_processor(), MHD_post_process(), post_process_multipart(), process_multipart_headers(), and try_match_header().
size_t MHD_str_to_uint64_ | ( | const char * | str, |
uint64_t * | out_val | ||
) |
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 |
Definition at line 382 of file mhd_str.c.
References isasciidigit, and UINT64_MAX.
Referenced by parse_connection_headers().
size_t MHD_str_to_uint64_n_ | ( | const char * | str, |
size_t | maxlen, | ||
uint64_t * | out_val | ||
) |
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 |
Definition at line 424 of file mhd_str.c.
References isasciidigit, and UINT64_MAX.
size_t MHD_strx_to_sizet_ | ( | const char * | str, |
size_t * | out_val | ||
) |
Convert hexadecimal US-ASCII digits in string to number in size_t. Conversion stopped at first non-digit character.
str | string to convert |
out_val | pointer to size_t to store result of conversion |
Convert hexadecimal US-ASCII digits in string to number in size_t. Conversion stopped at first non-digit character.
str | string to convert | |
[out] | out_val | pointer to size_t to store result of conversion |
Definition at line 467 of file mhd_str.c.
References SIZE_MAX, and toxdigitvalue.
size_t MHD_strx_to_sizet_n_ | ( | const char * | str, |
size_t | maxlen, | ||
size_t * | out_val | ||
) |
Convert not more then maxlen hexadecimal US-ASCII digits in string to number in size_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 size_t to store result of conversion |
Convert not more then maxlen hexadecimal US-ASCII digits in string to number in size_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 size_t to store result of conversion |
Definition at line 514 of file mhd_str.c.
References SIZE_MAX, and toxdigitvalue.
Referenced by process_request_body().
size_t MHD_strx_to_uint32_ | ( | const char * | str, |
uint32_t * | out_val | ||
) |
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 |
Definition at line 556 of file mhd_str.c.
References toxdigitvalue, and UINT32_MAX.
size_t MHD_strx_to_uint32_n_ | ( | const char * | str, |
size_t | maxlen, | ||
uint32_t * | out_val | ||
) |
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 |
Definition at line 602 of file mhd_str.c.
References toxdigitvalue, and UINT32_MAX.
Referenced by MHD_digest_auth_check(), and MHD_http_unescape().
size_t MHD_strx_to_uint64_ | ( | const char * | str, |
uint64_t * | out_val | ||
) |
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 |
Definition at line 642 of file mhd_str.c.
References toxdigitvalue, and UINT64_MAX.
size_t MHD_strx_to_uint64_n_ | ( | const char * | str, |
size_t | maxlen, | ||
uint64_t * | out_val | ||
) |
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 |
Definition at line 687 of file mhd_str.c.
References todigitvalue, toxdigitvalue, and UINT64_MAX.
Referenced by MHD_digest_auth_check().