MCPcopy Create free account
hub / github.com/araddon/qlbridge / StringEscape

Function StringEscape

expr/stringutil.go:206–210  ·  view source on GitHub ↗

StringEscape escape string that may need characters escaped StringEscape("'","item's") => "item''s"

(quote rune, literal string)

Source from the content-addressed store, hash-verified

204// StringEscape("'","item's") => "item''s"
205//
206func StringEscape(quote rune, literal string) string {
207 var buf bytes.Buffer
208 escapeQuote(&buf, quote, literal)
209 return buf.String()
210}
211
212// StringUnEscape remove escaping on string that may need characters escaped
213//

Callers 2

StringMethod · 0.85
StringMethod · 0.85

Calls 2

escapeQuoteFunction · 0.85
StringMethod · 0.65

Tested by

no test coverage detected