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

Function tp_string

src/mcp/test_impact_policy.c:123–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123static const char *tp_string(yyjson_val *value, size_t *len) {
124 const char *text = yyjson_get_str(value);
125 size_t n = yyjson_get_len(value);
126 if (!text || !n || strlen(text) != n)
127 return NULL;
128 if (len)
129 *len = n;
130 return text;
131}
132
133static bool tp_pattern_valid(const char *text, size_t len) {
134 if (!text || !len || len > TP_MAX_PATTERN || text[0] == '!' || text[0] == '#' ||

Callers 6

tp_string_arrayFunction · 0.85
tp_parse_lanesFunction · 0.85
tp_key_segmentFunction · 0.85
tp_parse_ruleFunction · 0.85
tp_parse_coverageFunction · 0.85
tp_parse_policyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected