| 38 | } |
| 39 | |
| 40 | static const char *td_string(yyjson_val *value, size_t *len) { |
| 41 | const char *text = yyjson_get_str(value); |
| 42 | size_t size = yyjson_get_len(value); |
| 43 | if (!text || !size || memchr(text, '\0', size) || memchr(text, '\n', size) || |
| 44 | memchr(text, '\r', size)) |
| 45 | return NULL; |
| 46 | if (len) |
| 47 | *len = size; |
| 48 | return text; |
| 49 | } |
| 50 | |
| 51 | static bool td_identifier_first(unsigned char ch) { |
| 52 | return ch == '_' || (ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z'); |
no outgoing calls
no test coverage detected