MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / isUnicodeQuote

Function isUnicodeQuote

pkg/sql/tokenizer/unicode.go:79–82  ·  view source on GitHub ↗

isUnicodeQuote checks if a rune is a Unicode quote character for identifiers. In SQL, double quotes (and their Unicode equivalents) are used for quoted identifiers, while single quotes are for string literals. Recognized Unicode double quote characters: - U+201C (") LEFT DOUBLE QUOTATION MARK - U+

(r rune)

Source from the content-addressed store, hash-verified

77//
78// Returns true for Unicode double quote characters, false otherwise.
79func isUnicodeQuote(r rune) bool {
80 // Only double quotes and their Unicode equivalents are for identifiers
81 return r == '\u201C' || r == '\u201D'
82}
83
84// normalizeQuote converts Unicode quote characters to standard ASCII quotes.
85//

Callers 1

nextTokenMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected