Lines Matching defs:collator
9 #include "src/objects/js-collator.h"
12 #include "src/objects/js-collator-inl.h"
85 Handle<JSCollator> collator) {
89 icu::Collator* icu_collator = collator->icu_collator().raw();
167 // https://tc39.github.io/ecma402/#sec-properties-of-intl-collator-instances
202 // If the collator return the locale differ from what got requested, we stored
203 // it in the collator->locale. Otherwise, we just use the one from the
204 // collator.
205 if (collator->locale().length() != 0) {
206 // Get the locale from collator->locale() since we know in some cases
207 // collator won't be able to return the requested one, such as zh_CN.
208 Handle<String> locale_from_collator(collator->locale(), isolate);
215 // Just return from the collator for most of the cases that we can recover
216 // from the collator.
355 // https://tc39.github.io/ecma402/#sec-intl-collator-internal-slots
372 // 18. Set collator.[[Locale]] to r.[[locale]].
387 // 5. Set collator.[[Usage]] to usage.
396 // https://tc39.github.io/ecma402/#sec-intl-collator-internal-slots
416 // 21. Set collator.[[Collation]] to collation.
442 // a. Set collator.[[Numeric]] to ! SameValue(r.[[kn]], "true").
458 // a. Set collator.[[CaseFirst]] to r.[[kf]].
499 // 26. Set collator.[[Sensitivity]] to sensitivity.
527 // 28. Set collator.[[IgnorePunctuation]] to ignorePunctuation.
538 // We only need to do so if it is different from the collator would return.
542 Handle<JSCollator> collator = Handle<JSCollator>::cast(
545 collator->set_icu_collator(*managed_collator);
546 collator->set_locale(*locale_str);
548 // 29. Return collator.
549 return collator;