37 #ifdef MHD_FAVOR_SMALL_CODE
41 #ifndef MHD_STATICSTR_LEN_
45 #define MHD_STATICSTR_LEN_(macro) (sizeof(macro)/sizeof(char) - 1)
53 #ifndef MHD_FAVOR_SMALL_CODE
65 #define MHD_str_equal_caseless_(s1,s2) MHD_str_equal_caseless_n_((s1),(s2), SIZE_MAX)
81 const char *
const str2,
100 const char *
const token,
113 #define MHD_str_has_s_token_caseless_(str,tkn) \
114 MHD_str_has_token_caseless_((str),(tkn),MHD_STATICSTR_LEN_(tkn))
116 #ifndef MHD_FAVOR_SMALL_CODE
233 MHD_str_to_uvalue_n_ (
const char * str,
240 #define MHD_str_to_uint64_(s,ov) MHD_str_to_uvalue_n_((s),SIZE_MAX,(ov),\
241 sizeof(uint64_t),UINT64_MAX,10)
243 #define MHD_str_to_uint64_n_(s,ml,ov) MHD_str_to_uvalue_n_((s),(ml),(ov),\
244 sizeof(uint64_t),UINT64_MAX,10)
246 #define MHD_strx_to_sizet_(s,ov) MHD_str_to_uvalue_n_((s),SIZE_MAX,(ov),\
247 sizeof(size_t),SIZE_MAX,16)
249 #define MHD_strx_to_sizet_n_(s,ml,ov) MHD_str_to_uvalue_n_((s),(ml),(ov),\
250 sizeof(size_t),SIZE_MAX,16)
252 #define MHD_strx_to_uint32_(s,ov) MHD_str_to_uvalue_n_((s),SIZE_MAX,(ov),\
253 sizeof(uint32_t),UINT32_MAX,16)
255 #define MHD_strx_to_uint32_n_(s,ml,ov) MHD_str_to_uvalue_n_((s),(ml),(ov),\
256 sizeof(uint32_t),UINT32_MAX,16)
258 #define MHD_strx_to_uint64_(s,ov) MHD_str_to_uvalue_n_((s),SIZE_MAX,(ov),\
259 sizeof(uint64_t),UINT64_MAX,16)
261 #define MHD_strx_to_uint64_n_(s,ml,ov) MHD_str_to_uvalue_n_((s),(ml),(ov),\
262 sizeof(uint64_t),UINT64_MAX,16)
additional automatic macros for MHD_config.h
size_t MHD_strx_to_uint64_(const char *str, uint64_t *out_val)
int MHD_str_equal_caseless_n_(const char *const str1, const char *const str2, size_t maxlen)
size_t MHD_strx_to_uint32_n_(const char *str, size_t maxlen, uint32_t *out_val)
size_t MHD_strx_to_uint32_(const char *str, uint32_t *out_val)
limits values definitions
bool MHD_str_has_token_caseless_(const char *str, const char *const token, size_t token_len)
int MHD_str_equal_caseless_(const char *str1, const char *str2)
size_t MHD_strx_to_uint64_n_(const char *str, size_t maxlen, uint64_t *out_val)
size_t MHD_str_to_uint64_n_(const char *str, size_t maxlen, uint64_t *out_val)
size_t MHD_str_to_uint64_(const char *str, uint64_t *out_val)