Lines Matching refs:collator
515 icu::Collator* CreateICUCollator(
519 // Make collator from options.
520 icu::Collator* collator = NULL;
522 collator = icu::Collator::createInstance(icu_locale, status);
525 delete collator;
532 collator->setAttribute(
539 collator->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_ON, status);
544 collator->setAttribute(UCOL_CASE_FIRST, UCOL_UPPER_FIRST, status);
546 collator->setAttribute(UCOL_CASE_FIRST, UCOL_LOWER_FIRST, status);
549 collator->setAttribute(UCOL_CASE_FIRST, UCOL_OFF, status);
556 collator->setStrength(icu::Collator::PRIMARY);
558 collator->setStrength(icu::Collator::SECONDARY);
560 collator->setStrength(icu::Collator::PRIMARY);
561 collator->setAttribute(UCOL_CASE_LEVEL, UCOL_ON, status);
564 collator->setStrength(icu::Collator::TERTIARY);
571 collator->setAttribute(UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED, status);
575 return collator;
581 icu::Collator* collator,
589 collator->getAttribute(UCOL_NUMERIC_COLLATION, status) == UCOL_ON),
593 switch (collator->getAttribute(UCOL_CASE_FIRST, status)) {
619 switch (collator->getAttribute(UCOL_STRENGTH, status)) {
629 if (UCOL_ON == collator->getAttribute(UCOL_CASE_LEVEL, status)) {
708 isolate->factory()->ToBoolean(collator->getAttribute(
943 icu::Collator* Collator::InitializeCollator(
963 icu::Collator* collator = CreateICUCollator(isolate, icu_locale, options);
964 if (!collator) {
967 collator = CreateICUCollator(isolate, no_extension_locale, options);
971 isolate, no_extension_locale, collator, resolved);
973 SetResolvedCollatorSettings(isolate, icu_locale, collator, resolved);
976 return collator;
980 icu::Collator* Collator::UnpackCollator(Isolate* isolate,
983 isolate->factory()->NewStringFromAscii(CStrVector("collator"));
985 return reinterpret_cast<icu::Collator*>(obj->GetInternalField(0));
992 void Collator::DeleteCollator(v8::Isolate* isolate,
996 delete reinterpret_cast<icu::Collator*>(Handle<JSObject>::cast(