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

Function td_string

src/discover/test_conventions.c:40–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40static const char *td_string(yyjson_val *value, size_t *len) {
41 const char *text = yyjson_get_str(value);
42 size_t size = yyjson_get_len(value);
43 if (!text || !size || memchr(text, '\0', size) || memchr(text, '\n', size) ||
44 memchr(text, '\r', size))
45 return NULL;
46 if (len)
47 *len = size;
48 return text;
49}
50
51static bool td_identifier_first(unsigned char ch) {
52 return ch == '_' || (ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z');

Callers 2

td_copy_stringFunction · 0.85
td_recordFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected