MCPcopy Create free account
hub / github.com/dolthub/doltgresql / NormalizeName

Function NormalizeName

postgres/parser/lex/normalize.go:63–69  ·  view source on GitHub ↗

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

(n string)

Source from the content-addressed store, hash-verified

61// NormalizeName normalizes to lowercase and Unicode Normalization
62// Form C (NFC).
63func NormalizeName(n string) string {
64 lower := strings.Map(normalize.ToLower, n)
65 if isASCII(lower) {
66 return lower
67 }
68 return norm.NFC.String(lower)
69}

Callers 4

scanIdentMethod · 0.92
NormalizeMethod · 0.92
TypeCheckMethod · 0.92
isBareIdentifierFunction · 0.85

Calls 3

isASCIIFunction · 0.85
StringMethod · 0.65
MapMethod · 0.45

Tested by

no test coverage detected