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

Function NormalizeName

pkg/sql/lexbase/normalize.go:44–50  ·  view source on GitHub ↗

NormalizeName normalizes to lowercase and Unicode Normalization Form C (NFC).

(n string)

Source from the content-addressed store, hash-verified

42// NormalizeName normalizes to lowercase and Unicode Normalization
43// Form C (NFC).
44func NormalizeName(n string) string {
45 lower := strings.Map(normalize.ToLower, n)
46 if isASCII(lower) {
47 return lower
48 }
49 return norm.NFC.String(lower)
50}
51
52// NormalizeString normalizes to Unicode Normalization Form C (NFC).
53// This function is specifically for double quoted identifiers.

Callers 5

NormalizeMethod · 0.92
normalizeIdentMethod · 0.92
IsBareIdentifierFunction · 0.85

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…