API / Core / Intl / Collator

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: unit => t

makeWithLocale

RESCRIPT
let makeWithLocale: string => t

makeWithLocales

RESCRIPT
let makeWithLocales: array<string> => t

makeWithLocaleAndOptions

RESCRIPT
let makeWithLocaleAndOptions: (string, options) => t

makeWithLocalesAndOptions

RESCRIPT
let makeWithLocalesAndOptions: (array<string>, options) => t

makeWithOptions

RESCRIPT
let makeWithOptions: options => t

supportedLocalesOf

RESCRIPT
let supportedLocalesOf: array<string> => t

supportedLocalesOfWithOptions

RESCRIPT
let supportedLocalesOfWithOptions: (array<string>, supportedLocalesOptions) => t

resolvedOptions

RESCRIPT
let resolvedOptions: t => resolvedOptions

compare

RESCRIPT
let compare: (t, string, string) => int