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

Function toml_valid_path

src/cli/config_toml_edit.c:282–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282static int toml_valid_path(const char *path) {
283 size_t len = 0U;
284 return path && path[0] != '\0' &&
285 toml_bounded_length(path, TOML_EDIT_MAX_PATH_BYTES, &len) == TOML_EDIT_OK &&
286 toml_text_is_safe(path, len, 0);
287}
288
289static int toml_is_bare_key_char(unsigned char ch) {
290 return (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') || (ch >= '0' && ch <= '9') ||

Callers 4

toml_named_inputs_validFunction · 0.85

Calls 2

toml_bounded_lengthFunction · 0.85
toml_text_is_safeFunction · 0.85

Tested by

no test coverage detected