| 119 | |
| 120 | |
| 121 | bool json_tok_is_num(const char *buffer, const jsmntok_t *tok) |
| 122 | { |
| 123 | if (tok->type != JSMN_PRIMITIVE) |
| 124 | return false; |
| 125 | |
| 126 | for (int i = tok->start; i < tok->end; i++) |
| 127 | if (!cisdigit(buffer[i])) |
| 128 | return false; |
| 129 | return true; |
| 130 | } |
| 131 | |
| 132 | bool json_tok_is_null(const char *buffer, const jsmntok_t *tok) |
| 133 | { |
no test coverage detected