Lines Matching refs:js
35 static int jsmn_parse_primitive(jsmn_parser *parser, const char *js, in jsmn_parse_primitive() argument
42 for (; parser->pos < len && js[parser->pos] != '\0'; parser->pos++) { in jsmn_parse_primitive()
43 switch (js[parser->pos]) { in jsmn_parse_primitive()
52 if (js[parser->pos] < 32 || js[parser->pos] >= 127) { in jsmn_parse_primitive()
84 static int jsmn_parse_string(jsmn_parser *parser, const char *js, in jsmn_parse_string() argument
93 for (; parser->pos < len && js[parser->pos] != '\0'; parser->pos++) { in jsmn_parse_string()
94 char c = js[parser->pos]; in jsmn_parse_string()
117 switch (js[parser->pos]) { in jsmn_parse_string()
125 for(i = 0; i < 4 && parser->pos < len && js[parser->pos] != '\0'; i++) { in jsmn_parse_string()
127 if(!((js[parser->pos] >= 48 && js[parser->pos] <= 57) || /* 0-9 */ in jsmn_parse_string()
128 (js[parser->pos] >= 65 && js[parser->pos] <= 70) || /* A-F */ in jsmn_parse_string()
129 (js[parser->pos] >= 97 && js[parser->pos] <= 102))) { /* a-f */ in jsmn_parse_string()
151 int jsmn_parse(jsmn_parser *parser, const char *js, size_t len, in jsmn_parse() argument
158 for (; parser->pos < len && js[parser->pos] != '\0'; parser->pos++) { in jsmn_parse()
162 c = js[parser->pos]; in jsmn_parse()
232 r = jsmn_parse_string(parser, js, len, tokens, num_tokens); in jsmn_parse()
278 r = jsmn_parse_primitive(parser, js, len, tokens, num_tokens); in jsmn_parse()