Lines Matching refs:collator
1118 * text with a collator). If there's no match, this is 0.
1132 // get the formatter's collator and use it to create two
1135 // exception if the collator we get back from the formatter
1139 RuleBasedCollator* collator = (RuleBasedCollator*)formatter->getCollator();
1140 CollationElementIterator* strIter = collator->createCollationElementIterator(str);
1141 CollationElementIterator* prefixIter = collator->createCollationElementIterator(prefix);
1143 if (collator == NULL || strIter == NULL || prefixIter == NULL) {
1144 delete collator;
1248 // ugly contortions. First, use the collator to compare the
1251 collator->setStrength(Collator::PRIMARY);
1255 if (collator->equals(temp, prefix)) {
1271 if (collator->equals(temp, prefix)) {
1369 //RuleBasedCollator collator = (RuleBasedCollator)formatter.getCollator();
1371 //CollationElementIterator strIter = collator.getCollationElementIterator(str);
1372 //CollationElementIterator keyIter = collator.getCollationElementIterator(key);
1425 * characters that the number formatter's collator says are
1441 RuleBasedCollator* collator = (RuleBasedCollator*)(formatter->getCollator());
1442 CollationElementIterator* iter = collator->createCollationElementIterator(str);
1445 if (collator == NULL || iter == NULL) {
1446 delete collator;