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

Function sqlv_skip_trivia

internal/cbm/sql_values.c:150–162  ·  view source on GitHub ↗

Skip whitespace and comments. *ws_only (optional) is cleared if a comment was * among them. */

Source from the content-addressed store, hash-verified

148/* Skip whitespace and comments. *ws_only (optional) is cleared if a comment was
149 * among them. */
150static void sqlv_skip_trivia(sqlv_scan_t *sc, bool *ws_only) {
151 while (sc->i < sc->len) {
152 if (isspace((unsigned char)sc->s[sc->i])) {
153 sqlv_step(sc);
154 } else if (sqlv_skip_comment(sc)) {
155 if (ws_only) {
156 *ws_only = false;
157 }
158 } else {
159 return;
160 }
161 }
162}
163
164/* Consume one quoted or dollar-quoted run if one starts here. */
165static bool sqlv_skip_any_quoted(sqlv_scan_t *sc) {

Callers 3

sqlv_read_word_literalFunction · 0.85
sqlv_scan_tupleFunction · 0.85
sqlv_handle_valuesFunction · 0.85

Calls 2

sqlv_stepFunction · 0.85
sqlv_skip_commentFunction · 0.85

Tested by

no test coverage detected