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

Function IdentityMaybeEscapeBuf

expr/stringutil.go:84–86  ·  view source on GitHub ↗

IdentityMaybeEscape Quote an identity/literal if need be (has illegal characters or spaces)

(buf *bytes.Buffer, quote byte, ident string)

Source from the content-addressed store, hash-verified

82// IdentityMaybeEscape Quote an identity/literal
83// if need be (has illegal characters or spaces)
84func IdentityMaybeEscapeBuf(buf *bytes.Buffer, quote byte, ident string) {
85 IdentityMaybeQuoteStrictBuf(buf, quote, ident)
86}
87
88// IdentityMaybeQuoteStrict Quote an identity if need be (has illegal characters or spaces)
89// First character MUST be alpha (not numeric or any other character)

Callers 1

WriteIdentityMethod · 0.85

Calls 1

Tested by

no test coverage detected