GNU libmicrohttpd  0.9.72
mhd_str.c File Reference
#include "mhd_str.h"
#include "mhd_limits.h"
Include dependency graph for mhd_str.c:

Go to the source code of this file.

Macros

#define isasciilower(c)   (((char) (c)) >= 'a' && ((char) (c)) <= 'z')
 
#define isasciiupper(c)   (((char) (c)) >= 'A' && ((char) (c)) <= 'Z')
 
#define isasciialpha(c)   (isasciilower (c) || isasciiupper (c))
 
#define isasciidigit(c)   (((char) (c)) >= '0' && ((char) (c)) <= '9')
 
#define isasciixdigit(c)
 
#define isasciialnum(c)   (isasciialpha (c) || isasciidigit (c))
 
#define toasciilower(c)
 
#define toasciiupper(c)
 
#define todigitvalue(c)
 
#define toxdigitvalue(c)
 

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)
 

Macro Definition Documentation

◆ isasciialnum

#define isasciialnum (   c)    (isasciialpha (c) || isasciidigit (c))

Check whether character is decimal digit or letter in US-ASCII

Parameters
ccharacter to check
Returns
boolean true if character is decimal digit or letter, boolean false otherwise

Definition at line 284 of file mhd_str.c.

◆ isasciialpha

#define isasciialpha (   c)    (isasciilower (c) || isasciiupper (c))

Checks whether character is letter in US-ASCII

Parameters
ccharacter to check
Returns
boolean true if character is letter, boolean false otherwise

Definition at line 252 of file mhd_str.c.

◆ isasciidigit

#define isasciidigit (   c)    (((char) (c)) >= '0' && ((char) (c)) <= '9')

Check whether character is decimal digit in US-ASCII

Parameters
ccharacter to check
Returns
boolean true if character is decimal digit, boolean false otherwise

Definition at line 262 of file mhd_str.c.

◆ isasciilower

#define isasciilower (   c)    (((char) (c)) >= 'a' && ((char) (c)) <= 'z')

Checks whether character is lower case letter in US-ASCII

Parameters
ccharacter to check
Returns
boolean true if character is lower case letter, boolean false otherwise

Definition at line 232 of file mhd_str.c.

◆ isasciiupper

#define isasciiupper (   c)    (((char) (c)) >= 'A' && ((char) (c)) <= 'Z')

Checks whether character is upper case letter in US-ASCII

Parameters
ccharacter to check
Returns
boolean true if character is upper case letter, boolean false otherwise

Definition at line 242 of file mhd_str.c.

◆ isasciixdigit

#define isasciixdigit (   c)
Value:
(isasciidigit ((c)) || \
(((char) (c)) >= 'A' && ((char) (c)) <= 'F') || \
(((char) (c)) >= 'a' && ((char) (c)) <= 'f') )