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

Function IdentityMaybeQuote

expr/stringutil.go:76–80  ·  view source on GitHub ↗

IdentityMaybeQuote

(quote byte, ident string)

Source from the content-addressed store, hash-verified

74
75// IdentityMaybeQuote
76func IdentityMaybeQuote(quote byte, ident string) string {
77 buf := bytes.Buffer{}
78 IdentityMaybeQuoteStrictBuf(&buf, quote, ident)
79 return buf.String()
80}
81
82// IdentityMaybeEscape Quote an identity/literal
83// if need be (has illegal characters or spaces)

Callers 5

initMethod · 0.92
RewriteShowAsSelectFunction · 0.92
TestIdentityQuotingFunction · 0.85
loadMethod · 0.85
ExprMethod · 0.85

Calls 2

StringMethod · 0.65

Tested by 1

TestIdentityQuotingFunction · 0.68