MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / NeedEscape

Function NeedEscape

pkg/util/stringencoding/string_encoding.go:145–147  ·  view source on GitHub ↗

NeedEscape returns whether the given byte needs to be escaped.

(ch byte)

Source from the content-addressed store, hash-verified

143
144// NeedEscape returns whether the given byte needs to be escaped.
145func NeedEscape(ch byte) bool {
146 return EncodeMap[ch] != DontEscape
147}

Callers 1

EncodeSQLStringWithFlagsFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…