Lines Matching refs:state
339 lws_check_byte_utf8(unsigned char state, unsigned char c)
341 unsigned char s = state;
362 lws_check_utf8(unsigned char *state, unsigned char *buf, size_t len)
364 unsigned char s = *state;
386 *state = s;
687 int state = 0, n;
691 switch (state) {
694 state++;
713 state++;
723 state = 0;
804 lws_tokenize_state state = LWS_TOKZS_LEADING_WHITESPACE;
853 state != LWS_TOKZS_QUOTED_STRING &&
863 switch (state) {
873 state = LWS_TOKZS_TOKEN_POST_TERMINAL;
881 if (state == LWS_TOKZS_QUOTED_STRING)
892 state = LWS_TOKZS_QUOTED_STRING;
902 c == '=' && (state == LWS_TOKZS_TOKEN_POST_TERMINAL ||
903 state == LWS_TOKZS_TOKEN)) {
913 (state == LWS_TOKZS_TOKEN_POST_TERMINAL ||
914 state == LWS_TOKZS_TOKEN))
921 state == LWS_TOKZS_TOKEN && num == 1) {
955 switch (state) {
983 switch (state) {
992 state = LWS_TOKZS_TOKEN;
1023 if (state == LWS_TOKZS_QUOTED_STRING)
1026 if (state != LWS_TOKZS_TOKEN_POST_TERMINAL &&
1027 state != LWS_TOKZS_TOKEN) {
1085 exp->state = LWS_EXPS_LITERAL;
1106 switch (exp->state) {
1109 exp->state = LWS_EXPS_OPEN_OR_LIT;
1125 exp->state = LWS_EXPS_NAME_OR_CLOSE;
1140 exp->state = LWS_EXPS_LITERAL;
1146 exp->state = LWS_EXPS_DRAIN;
1165 exp->state = LWS_EXPS_LITERAL;