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

Method WriteIdentityQuote

expr/dialect.go:127–133  ·  view source on GitHub ↗

WriteIdentityQuote write out an identity using given quote character

(i string, quote byte)

Source from the content-addressed store, hash-verified

125
126// WriteIdentityQuote write out an identity using given quote character
127func (w *defaultDialect) WriteIdentityQuote(i string, quote byte) {
128 if len(i) == 1 && i == "*" {
129 w.WriteByte('*')
130 return
131 }
132 LiteralQuoteEscapeBuf(&w.Buffer, rune(w.IdentityQuote), i)
133}
134func (w *defaultDialect) WriteNumber(n string) {
135 io.WriteString(w, n)
136}

Callers

nothing calls this directly

Calls 1

LiteralQuoteEscapeBufFunction · 0.85

Tested by

no test coverage detected