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

Function NormalizeLocaleName

pkg/sql/lex/encode.go:35–39  ·  view source on GitHub ↗

NormalizeLocaleName returns a normalized locale identifier based on s. The case of the locale is normalized and any dash characters are mapped to underscore characters.

(s string)

Source from the content-addressed store, hash-verified

33// case of the locale is normalized and any dash characters are mapped to
34// underscore characters.
35func NormalizeLocaleName(s string) string {
36 b := bytes.NewBuffer(make([]byte, 0, len(s)))
37 EncodeLocaleName(b, s)
38 return b.String()
39}
40
41// EncodeLocaleName writes the locale identifier in s to buf. Any dash
42// characters are mapped to underscore characters. Underscore characters do not

Callers

nothing calls this directly

Calls 2

EncodeLocaleNameFunction · 0.85
StringMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…