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

Function strip_quotes

internal/cbm/extract_calls.c:55–64  ·  view source on GitHub ↗

Strip surrounding quotes from a string, return arena-allocated copy */

Source from the content-addressed store, hash-verified

53
54/* Strip surrounding quotes from a string, return arena-allocated copy */
55static const char *strip_quotes(CBMArena *a, const char *text) {
56 if (!text || !text[0]) {
57 return NULL;
58 }
59 int len = (int)strlen(text);
60 if (len >= CBM_QUOTE_PAIR && (text[0] == '"' || text[0] == '\'')) {
61 return cbm_arena_strndup(a, text + CBM_QUOTE_OFFSET, (size_t)(len - CBM_QUOTE_PAIR));
62 }
63 return text;
64}
65
66// Callee suffixes for IRIS Python interop string-dispatch. Kept at file scope
67// (not inside the function) to satisfy cppcheck variableScope.

Callers 4

process_keyword_argFunction · 0.70
extract_call_argsFunction · 0.70
extract_string_valueFunction · 0.70
normalize_string_handlerFunction · 0.70

Calls 1

cbm_arena_strndupFunction · 0.70

Tested by

no test coverage detected