MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / NormalizeString

Function NormalizeString

pkg/sql/lexbase/normalize.go:54–59  ·  view source on GitHub ↗

NormalizeString normalizes to Unicode Normalization Form C (NFC). This function is specifically for double quoted identifiers.

(s string)

Source from the content-addressed store, hash-verified

52// NormalizeString normalizes to Unicode Normalization Form C (NFC).
53// This function is specifically for double quoted identifiers.
54func NormalizeString(s string) string {
55 if isASCII(s) {
56 return s
57 }
58 return norm.NFC.String(s)
59}

Callers 2

normalizeIdentMethod · 0.92
scanStringMethod · 0.92

Calls 2

isASCIIFunction · 0.85
StringMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…