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