| 26 | } |
| 27 | |
| 28 | bool json_tok_strneq(const char *buffer, const jsmntok_t *tok, |
| 29 | const char *str, size_t len) |
| 30 | { |
| 31 | if (tok->type != JSMN_STRING) |
| 32 | return false; |
| 33 | return memeq(buffer + tok->start, tok->end - tok->start, str, len); |
| 34 | } |
| 35 | |
| 36 | bool json_tok_streq(const char *buffer, const jsmntok_t *tok, const char *str) |
| 37 | { |
no test coverage detected