Lines Matching defs:collator
47 // 5. Let collator be ? OrdinaryCreateFromConstructor(newTarget, "%CollatorPrototype%", internalSlotsList).
50 JSHandle<JSCollator> collator = JSHandle<JSCollator>::Cast(newObject);
52 // 6. Return ? InitializeCollator(collator, locales, options).
55 JSHandle<JSCollator> result = JSCollator::InitializeCollator(thread, collator, locales, options);
87 // 1. Let collator be this value.
90 // 2. Perform ? RequireInternalSlot(collator, [[InitializedCollator]]).
92 THROW_TYPE_ERROR_AND_RETURN(thread, "this is not collator", JSTaggedValue::Exception());
94 // 3. If collator.[[BoundCompare]] is undefined, then
96 // b. Set F.[[Collator]] to collator.
97 // c. Set collator.[[BoundCompare]] to F.
98 // 4. Return collator.[[BoundCompare]].
99 JSHandle<JSCollator> collator = JSHandle<JSCollator>::Cast(thisValue);
100 JSHandle<JSTaggedValue> boundCompare(thread, collator->GetBoundCompare());
105 intlBoundFunc->SetCollator(thread, collator);
106 collator->SetBoundCompare(thread, intlBoundFunc);
108 return collator->GetBoundCompare();
121 // 1. Let collator be F.[[Collator]].
122 JSHandle<JSTaggedValue> collator(thread, intlBoundFunc->GetCollator());
124 // 2. Assert: Type(collator) is Object and collator has an [[InitializedCollator]] internal slot.
125 ASSERT_PRINT(collator->IsJSObject() && collator->IsJSCollator(), "collator is not object or JSCollator");
139 // 7. Return CompareStrings(collator, X, Y).
140 icu::Collator *icuCollator = (JSHandle<JSCollator>::Cast(collator))->GetIcuCollator();