MCPcopy Create free account
hub / github.com/FlyingFeather/DEA-SQL / process_str_value

Function process_str_value

evaluation/test-suite-sql-eval/parse.py:217–224  ·  view source on GitHub ↗
(v: str)

Source from the content-addressed store, hash-verified

215
216
217def process_str_value(v: str) -> str:
218 if len(v) > 0 and v[0] in QUOTE_CHARS:
219 v = v[1:]
220 if len(v) > 0 and v[-1] in QUOTE_CHARS:
221 v = v[:-1]
222 for c in QUOTE_CHARS:
223 v = v.replace(c + c, c)
224 return v

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected