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

Function toml_valid_path

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

Source from the content-addressed store, hash-verified

284}
285
286static 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
293static int toml_is_bare_key_char(unsigned char ch) {
294 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