Collator
t
RESCRIPT
type t
usage
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=?) => t
supportedLocalesOf
RESCRIPT
let supportedLocalesOf: (array<string>, ~options: supportedLocalesOptions=?) => t
resolvedOptions
RESCRIPT
let resolvedOptions: t => resolvedOptions
compare
RESCRIPT
let compare: (t, string, string) => int