示例#1
0
        public static EcmaValue Collator([This] EcmaValue thisValue, EcmaValue locales, EcmaValue options)
        {
            Collator             collator         = thisValue.GetUnderlyingObject <Collator>();
            ICollection <string> requestedLocales = IntlUtility.CanonicalizeLocaleList(locales);

            collator.Init(requestedLocales, new CollatorOptions(options));
            return(thisValue);
        }