MCPcopy Index your code
hub / github.com/bytebase/bytebase / unquote

Function unquote

backend/plugin/parser/plsql/completion.go:1259–1267  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

1257}
1258
1259func unquote(s string) string {
1260 if len(s) < 2 {
1261 return strings.ToUpper(s)
1262 }
1263 if (s[0] == '`' || s[0] == '\'' || s[0] == '"') && s[0] == s[len(s)-1] {
1264 return s[1 : len(s)-1]
1265 }
1266 return strings.ToUpper(s)
1267}
1268
1269func skipHeadingSQLs(statement string, caretLine int, caretOffset int) (string, int, int) {
1270 newCaretLine, newCaretOffset := caretLine, caretOffset

Callers 2

qualifierPartsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected