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

Function toml_trim

src/cli/config_toml_edit.c:1416–1423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1414}
1415
1416static void toml_trim(const char *data, size_t *start, size_t *end) {
1417 while (*start < *end && (data[*start] == ' ' || data[*start] == '\t')) {
1418 ++*start;
1419 }
1420 while (*end > *start && (data[*end - 1] == ' ' || data[*end - 1] == '\t')) {
1421 --*end;
1422 }
1423}
1424
1425static int toml_parse_header(const char *data, const toml_line_t *line, const char *target_name,
1426 toml_header_t *header) {

Callers 2

toml_parse_headerFunction · 0.85
toml_parse_assignmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected