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)
| 33 | // case of the locale is normalized and any dash characters are mapped to |
| 34 | // underscore characters. |
| 35 | func 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 |
nothing calls this directly
no test coverage detected
searching dependent graphs…