Collator
t
RESCRIPT
type tusage
RESCRIPT
type usage = [#search | #sort]sensitivity
RESCRIPT
type sensitivity = [#accent | #base | #case | #variant]caseFirst
RESCRIPT
type caseFirst = [#"false" | #lower | #upper]options
RESCRIPT
type options = {
localeMatcher?: Core__Intl__Common.localeMatcher,
usage?: usage,
sensitivity?: sensitivity,
ignorePunctuation?: bool,
numeric?: bool,
caseFirst?: caseFirst,
}resolvedOptions
RESCRIPT
type resolvedOptions = {
locale: string,
usage: usage,
sensitivity: sensitivity,
ignorePunctuation: bool,
collation: [
| #compat
| #default
| #dict
| #emoji
| #eor
| #phonebk
| #phonetic
| #pinyin
| #stroke
| #trad
| #unihan
| #zhuyin
],
numeric?: bool,
caseFirst?: caseFirst,
}supportedLocalesOptions
RESCRIPT
type supportedLocalesOptions = {
localeMatcher: Core__Intl__Common.localeMatcher,
}make
RESCRIPT
let make: (~locales: array<string>=?, ~options: options=?) => tsupportedLocalesOf
RESCRIPT
let supportedLocalesOf: (array<string>, ~options: supportedLocalesOptions=?) => tresolvedOptions
RESCRIPT
let resolvedOptions: t => resolvedOptionscompare
RESCRIPT
let compare: (t, string, string) => int