MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / trimQuotes

Function trimQuotes

src/function/cast_from_string_functions.cpp:201–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201static void trimQuotes(const char*& keyStart, const char*& keyEnd) {
202 // Skip quotations on struct keys.
203 if ((keyStart[0] == '\'' && (keyEnd - 1)[0] == '\'') ||
204 (keyStart[0] == '\"' && (keyEnd - 1)[0] == '\"')) {
205 keyStart++;
206 keyEnd--;
207 }
208}
209
210static bool skipToCloseQuotes(const char*& input, const char* end) {
211 auto ch = *input;

Callers 1

tryCastStringToStructFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected