| 53 | } |
| 54 | |
| 55 | static bool td_identifier(const char *text, size_t len) { |
| 56 | if (!len || !td_identifier_first((unsigned char)text[0])) |
| 57 | return false; |
| 58 | for (size_t i = 1; i < len; i++) { |
| 59 | unsigned char ch = (unsigned char)text[i]; |
| 60 | if (!td_identifier_first(ch) && !(ch >= '0' && ch <= '9')) |
| 61 | return false; |
| 62 | } |
| 63 | return true; |
| 64 | } |
| 65 | |
| 66 | static bool td_copy_string(cbm_test_declarations_t *declarations, yyjson_val *value, |
| 67 | bool identifier, const char **result) { |
no test coverage detected