MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / toml_valid_path

Function toml_valid_path

src/cli/config_toml_edit.c:291–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289}
290
291static 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
298static int toml_is_bare_key_char(unsigned char ch) {
299 return (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') || (ch >= '0' && ch <= '9') ||

Calls 2

toml_bounded_lengthFunction · 0.85
toml_text_is_safeFunction · 0.85

Tested by

no test coverage detected