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

Function NormalizeName

pkg/sql/lex/normalize.go:49–55  ·  view source on GitHub ↗

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

(n string)

Source from the content-addressed store, hash-verified

47// NormalizeName normalizes to lowercase and Unicode Normalization
48// Form C (NFC).
49func NormalizeName(n string) string {
50 lower := strings.Map(normalize.ToLower, n)
51 if isASCII(lower) {
52 return lower
53 }
54 return norm.NFC.String(lower)
55}

Callers 4

scanIdentMethod · 0.92
NormalizeMethod · 0.92
TypeCheckMethod · 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…