26 #define LWS_TOKENIZE_F_MINUS_NONTERM (1 << 0)
28 #define LWS_TOKENIZE_F_AGG_COLON (1 << 1)
30 #define LWS_TOKENIZE_F_COMMA_SEP_LIST (1 << 2)
33 #define LWS_TOKENIZE_F_RFC7230_DELIMS (1 << 3)
35 #define LWS_TOKENIZE_F_DOT_NONTERM (1 << 4)
39 #define LWS_TOKENIZE_F_NO_FLOATS (1 << 5)
41 #define LWS_TOKENIZE_F_NO_INTEGERS (1 << 6)
43 #define LWS_TOKENIZE_F_HASH_COMMENT (1 << 7)
45 #define LWS_TOKENIZE_F_SLASH_NONTERM (1 << 8)
47 #define LWS_TOKENIZE_F_ASTERISK_NONTERM (1 << 9)
49 #define LWS_TOKENIZE_F_EQUALS_NONTERM (1 << 10)
51 #define LWS_TOKENIZE_F_COLON_NONTERM (1 << 11)
54 #define LWS_TOKENIZE_F_EXPECT_MORE (1 << 12)
192 size_t *pos,
size_t olen,
size_t *exp_ofs);
234 char *out,
size_t olen);
279 size_t *pused_in,
size_t *pused_out);
lws_tokenize_delimiter_tracking
@ LWSTZ_DT_NEED_NEXT_CONTENT
@ LWSTZ_DT_NEED_FIRST_CONTENT
LWS_VISIBLE LWS_EXTERN void lws_strexp_init(lws_strexp_t *exp, void *priv, lws_strexp_expand_cb cb, char *out, size_t olen)
struct lws_tokenize lws_tokenize_t
int(* lws_strexp_expand_cb)(void *priv, const char *name, char *out, size_t *pos, size_t olen, size_t *exp_ofs)
LWS_VISIBLE LWS_EXTERN void lws_strexp_reset_out(lws_strexp_t *exp, char *out, size_t olen)
LWS_VISIBLE LWS_EXTERN lws_tokenize_elem lws_tokenize(struct lws_tokenize *ts)
LWS_VISIBLE LWS_EXTERN int lws_strexp_expand(lws_strexp_t *exp, const char *in, size_t len, size_t *pused_in, size_t *pused_out)
LWS_VISIBLE LWS_EXTERN void lws_tokenize_init(struct lws_tokenize *ts, const char *start, int flags)
@ LWS_TOKZS_TOKEN_POST_TERMINAL
@ LWS_TOKZS_QUOTED_STRING
@ LWS_TOKZS_LEADING_WHITESPACE
@ LWS_TOKZE_ERR_NUM_ON_LHS
@ LWS_TOKZE_QUOTED_STRING
@ LWS_TOKZE_ERR_MALFORMED_FLOAT
@ LWS_TOKZE_TOKEN_NAME_EQUALS
@ LWS_TOKZE_ERR_BROKEN_UTF8
@ LWS_TOKZE_TOKEN_NAME_COLON
@ LWS_TOKZE_ERR_UNTERM_STRING
@ LWS_TOKZE_ERR_COMMA_LIST
LWS_VISIBLE LWS_EXTERN int lws_tokenize_cstr(struct lws_tokenize *ts, char *str, size_t max)
struct lws_strexp lws_strexp_t
LWS_VISIBLE LWS_EXTERN int lws_strcmp_wildcard(const char *wildcard, size_t wlen, const char *check, size_t clen)
@ LSTRX_FATAL_NAME_TOO_LONG
@ LSTRX_FATAL_NAME_UNKNOWN