Lines Matching refs:collator

438   // Make collator from options.
439 icu::Collator* collator = NULL;
441 collator = icu::Collator::createInstance(icu_locale, status);
444 delete collator;
451 collator->setAttribute(
458 collator->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_ON, status);
463 collator->setAttribute(UCOL_CASE_FIRST, UCOL_UPPER_FIRST, status);
465 collator->setAttribute(UCOL_CASE_FIRST, UCOL_LOWER_FIRST, status);
468 collator->setAttribute(UCOL_CASE_FIRST, UCOL_OFF, status);
475 collator->setStrength(icu::Collator::PRIMARY);
477 collator->setStrength(icu::Collator::SECONDARY);
479 collator->setStrength(icu::Collator::PRIMARY);
480 collator->setAttribute(UCOL_CASE_LEVEL, UCOL_ON, status);
483 collator->setStrength(icu::Collator::TERTIARY);
490 collator->setAttribute(UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED, status);
494 return collator;
500 icu::Collator* collator,
508 collator->getAttribute(UCOL_NUMERIC_COLLATION, status) == UCOL_ON),
511 switch (collator->getAttribute(UCOL_CASE_FIRST, status)) {
528 switch (collator->getAttribute(UCOL_STRENGTH, status)) {
535 if (UCOL_ON == collator->getAttribute(UCOL_CASE_LEVEL, status)) {
583 factory->ToBoolean(collator->getAttribute(UCOL_ALTERNATE_HANDLING,
834 icu::Collator* collator = CreateICUCollator(isolate, icu_locale, options);
835 if (!collator) {
838 collator = CreateICUCollator(isolate, no_extension_locale, options);
842 isolate, no_extension_locale, collator, resolved);
844 SetResolvedCollatorSettings(isolate, icu_locale, collator, resolved);
847 return collator;
853 Handle<String> key = isolate->factory()->NewStringFromStaticChars("collator");