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

Function toml_valid_identifier

src/cli/config_toml_edit.c:298–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296}
297
298static int toml_valid_identifier(const char *identifier) {
299 size_t length = 0U;
300 if (!identifier || identifier[0] == '\0' ||
301 toml_bounded_length(identifier, 4096U, &length) != TOML_EDIT_OK) {
302 return 0;
303 }
304 for (size_t i = 0U; i < length; ++i) {
305 if (!toml_is_bare_key_char((unsigned char)identifier[i])) {
306 return 0;
307 }
308 }
309 return 1;
310}
311
312static int toml_valid_marker(const char *marker) {
313 if (!marker || marker[0] == '\0') {

Callers 1

toml_named_inputs_validFunction · 0.85

Calls 2

toml_bounded_lengthFunction · 0.85
toml_is_bare_key_charFunction · 0.85

Tested by

no test coverage detected