collation.js
No description.

File Location

/goog/i18n/collation.js


Public Protected Private

Global Functions

goog.i18n.collation.createComparator(opt_locale) function(string, string): number
Returns the comparator for a locale. If a locale is not explicitly specified, a comparator for the user's locale will be returned. Note that if the browser does not support locale-sensitive string comparisons, the comparator returned will be a simple codepoint comparator.
Arguments:
opt_locale : string=
the locale that the comparator is used for.
Returns: function(string, string): number  The locale-specific comparator.
code »
goog.i18n.collation.hasNativeComparator(opt_locale) boolean
Returns true if a locale-sensitive comparator is available for a locale. If a locale is not explicitly specified, the user's locale is used instead.
Arguments:
opt_locale : string=
The locale to be checked.
Returns: boolean  Whether there is a locale-sensitive comparator available for the locale.
code »

Directory i18n

File Reference