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

Function toml_valid_identifier

src/cli/config_toml_edit.c:294–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292}
293
294static int toml_valid_identifier(const char *identifier) {
295 size_t length = 0U;
296 if (!identifier || identifier[0] == '\0' ||
297 toml_bounded_length(identifier, 4096U, &length) != TOML_EDIT_OK) {
298 return 0;
299 }
300 for (size_t i = 0U; i < length; ++i) {
301 if (!toml_is_bare_key_char((unsigned char)identifier[i])) {
302 return 0;
303 }
304 }
305 return 1;
306}
307
308static int toml_valid_marker(const char *marker) {
309 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