Include " if it's a string. */
| 19 | |
| 20 | /* Include " if it's a string. */ |
| 21 | int json_tok_full_len(const jsmntok_t *t) |
| 22 | { |
| 23 | if (t->type == JSMN_STRING) |
| 24 | return t->end - t->start + 2; |
| 25 | return t->end - t->start; |
| 26 | } |
| 27 | |
| 28 | bool json_tok_strneq(const char *buffer, const jsmntok_t *tok, |
| 29 | const char *str, size_t len) |
no outgoing calls
no test coverage detected