| 284 | } |
| 285 | |
| 286 | static int toml_valid_path(const char *path) { |
| 287 | size_t len = 0U; |
| 288 | return path && path[0] != '\0' && |
| 289 | toml_bounded_length(path, TOML_EDIT_MAX_PATH_BYTES, &len) == TOML_EDIT_OK && |
| 290 | toml_text_is_safe(path, len, 0); |
| 291 | } |
| 292 | |
| 293 | static int toml_is_bare_key_char(unsigned char ch) { |
| 294 | return (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') || (ch >= '0' && ch <= '9') || |
no test coverage detected