14 #if !defined (LIBHTTPMESSAGGE_GRAMMAR_H__) 15 #define LIBHTTPMESSAGGE_GRAMMAR_H__ 205 size_t *token_length,
HMAPI int httpmessage_quoted_string_consume(char *output, size_t output_size, const char *text, size_t length)
Unescape a quoted string text.
#define HTTPMESSAGE_C_END
End exter C block.
Definition: preprocessor.h:44
HMAPI ssize_t httpmessage_quoted_string_length(const char *text, size_t length)
Get the unescaped string length of a quoted string.
HMAPI int httpmessage_text_is_LWS(int c)
Indicates if the given character is a linear white space.
HMAPI int httpmessage_text_is_DIGIT(int c)
Indicates if the given character is a digit.
HMAPI int httpmessage_text_is_ALPHA(int c)
Indicates if the given character is a ASCII letter.
HTTPMESSAGE_C_BEGIN HMAPI int httpmessage_text_is_CHAR(int c)
Indicates if the given character is a character.
HMAPI int httpmessage_text_is_separator(int c)
Indicates if the given character is a token separator.
HMAPI int httpmessage_text_is_UPALPHA(int c)
Indicates if the given character is an uppercase ASCII letter.
HMAPI int httpmessage_text_is_CRLF(const char *text, size_t length)
Indicates if the given text is an end of line sequence.
HMAPI int httpmessage_token_consume(const char **token, size_t *token_length, const char *text, size_t length)
Read a RFC2616 token.
HMAPI int httpmessage_text_is_CTL(int c)
Indicases if the given character is a control character.
Preprocessor macro definitions.
#define HTTPMESSAGE_C_BEGIN
Begin extern C block.
Definition: preprocessor.h:40
HMAPI int httpmessage_text_is_token_char(int c)
Indicates if the given character is a valid token character.
HMAPI int httpmessage_text_is_LUALPHA(int c)
Indicates if the given character is a lowercase ASCII letter.
#define HMAPI
C API exposition macro.
Definition: preprocessor.h:23
int httpmessage_text_is_TEXT(int c)
Indicates if the given character mathc the TEXT rule.