IdentityMaybeQuoteStrict Quote an identity if need be (has illegal characters or spaces) First character MUST be alpha (not numeric or any other character)
(quote byte, ident string)
| 138 | // IdentityMaybeQuoteStrict Quote an identity if need be (has illegal characters or spaces) |
| 139 | // First character MUST be alpha (not numeric or any other character) |
| 140 | func IdentityMaybeQuoteStrict(quote byte, ident string) string { |
| 141 | var buf bytes.Buffer |
| 142 | IdentityMaybeQuoteStrictBuf(&buf, quote, ident) |
| 143 | return buf.String() |
| 144 | } |
| 145 | |
| 146 | func escapeQuote(buf *bytes.Buffer, quote rune, val string) { |
| 147 | last := 0 |