Documentation
¶
Overview ¶
Package collation exposes the locale tags supported by the embedded collator.
The data backing this package is sourced from golang.org/x/text/collate.
Package collation exposes generated collation capability metadata.
It keeps CLDR-backed collation names and search sensitivity support separate from the public Collator constructor.
Only internal locale and collator packages should use this package; public callers use collator APIs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SearchSensitivity ¶
SearchSensitivity returns the spec-default sensitivity for a Collator constructed with usage="search" and no explicit sensitivity option. The returned value is always one of "base", "accent", "case", or "variant".
func SupportedCollations ¶
func SupportedCollations() []string
SupportedCollations returns collation identifiers the active collator can apply through explicit ECMA-402 collation requests.
func SupportedLocales ¶
func SupportedLocales() []string
SupportedLocales returns the canonical locale tags with collator data.
Types ¶
This section is empty.