collation

package
v0.2.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2026 License: MIT Imports: 4 Imported by: 0

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

func SearchSensitivity(dataLocale string) string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL