| 166 | |
| 167 | |
| 168 | bool json_tok_is_num(const char *buffer, const jsmntok_t *tok) |
| 169 | { |
| 170 | if (tok->type != JSMN_PRIMITIVE) |
| 171 | return false; |
| 172 | |
| 173 | for (int i = tok->start; i < tok->end; i++) |
| 174 | if (!cisdigit(buffer[i])) |
| 175 | return false; |
| 176 | return true; |
| 177 | } |
| 178 | |
| 179 | bool json_tok_is_null(const char *buffer, const jsmntok_t *tok) |
| 180 | { |
nothing calls this directly
no test coverage detected