Lines Matching defs:collator

86 void JSCollator::SetIcuCollator(JSThread *thread, const JSHandle<JSCollator> &collator,
93 JSTaggedValue data = collator->GetIcuField();
100 collator->SetIcuField(thread, pointer.GetTaggedValue());
104 const JSHandle<JSCollator> &collator,
133 collator->SetUsage(usage);
149 collator->SetCollation(thread, collation);
155 THROW_RANGE_ERROR_AND_RETURN(thread, "invalid collation", collator);
164 collator->SetNumeric(numeric);
172 collator->SetCaseFirst(caseFirst);
190 collator->SetLocale(thread, localeStr.GetTaggedValue());
194 // if found, set ICU collator UnicodeKeyword to iterator->second
219 THROW_REFERENCE_ERROR_AND_RETURN(thread, "can not find icu data resources", collator);
225 THROW_RANGE_ERROR_AND_RETURN(thread, "invalid collation", collator);
234 // If numeric is found set ICU collator UCOL_NUMERIC_COLLATION to numeric
236 // if found, set ICU collator UCOL_NUMERIC_COLLATION to iterator->second
247 collator->SetNumeric(found);
253 // If caseFirst is not undefined set ICU collator UColAttributeValue to caseFirst
255 // if found, set ICU collator UColAttributeValue to iterator->second
268 collator->SetCaseFirst(mapIter->second);
292 collator->SetSensitivity(sensitivity);
317 // 28. Set collator.[[IgnorePunctuation]] to ignorePunctuation.
327 collator->SetIgnorePunctuation(ignorePunctuation);
340 SetIcuCollator(thread, collator, icuCollator.release(), JSCollator::FreeIcuCollator);
342 collator->SetBoundCompare(thread, JSTaggedValue::Undefined());
343 // 29. Return collator.
344 return collator;
442 JSHandle<JSObject> JSCollator::ResolvedOptions(JSThread *thread, const JSHandle<JSCollator> &collator)
453 JSHandle<JSTaggedValue> locale(thread, collator->GetLocale());
458 UsageOption usageOption = collator->GetUsage();
463 auto sentivityOption = collator->GetSensitivity();
468 JSHandle<JSTaggedValue> ignorePunctuationValue(thread, JSTaggedValue(collator->GetIgnorePunctuation()));
473 JSMutableHandle<JSTaggedValue> collationValue(thread, collator->GetCollation());
475 icu::Collator *icuCollator = collator->GetIcuCollator();
489 JSHandle<JSTaggedValue> numericValue(thread, JSTaggedValue(collator->GetNumeric()));
493 CaseFirstOption caseFirstOption = collator->GetCaseFirst();