Module

JS.LocaleSensitive.String

Package
purescript-js-intl
Repository
pete-murphy/purescript-js-intl

#localeCompare Source

localeCompare :: forall provided. ConvertOptionsWithDefaults ToCollatorOptions (Record CollatorOptions) (Record provided) (Record CollatorOptions) => Array Locale -> Record provided -> String -> String -> Effect Ordering

Returns an Ordering indicating whether this string comes before, or after, or is the same as the given string in sort order. When comparing large numbers of strings, such as in sorting large arrays, it is better to use Intl.Collator.compare instead.

#toLocaleLowerCase Source

toLocaleLowerCase :: Array Locale -> String -> Effect String

Returns the input string converted to lower case, according to any locale-specific case mappings.

#toLocaleUpperCase Source

toLocaleUpperCase :: Array Locale -> String -> Effect String

Returns the input string converted to upper case, according to any locale-specific case mappings.