/external/webkit/Source/WebCore/ForwardingHeaders/wtf/unicode/ |
Collator.h | 3 #include <JavaScriptCore/Collator.h>
|
/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/ |
CollationKeyTest.java | 20 import java.text.Collator; 31 Collator collator = Collator.getInstance(); local 32 collator.setStrength(Collator.PRIMARY); 33 CollationKey key1 = collator.getCollationKey("abc"); 34 CollationKey key2 = collator.getCollationKey("ABC"); 44 Collator collator = Collator.getInstance() local 55 Collator collator = Collator.getInstance(); local 66 Collator collator = Collator.getInstance(); local 78 Collator collator = Collator.getInstance(); local 91 Collator collator = Collator.getInstance(); local [all...] |
CollatorTest.java | 19 import java.text.Collator; 27 * @tests java.text.Collator#clone() 30 Collator c = Collator.getInstance(Locale.GERMAN); 31 Collator c2 = (Collator) c.clone(); 37 * @tests java.text.Collator#compare(java.lang.Object, java.lang.Object) 40 Collator c = Collator.getInstance(Locale.FRENCH); 43 c.setStrength(Collator.IDENTICAL) 207 RuleBasedCollator collator; local 238 RuleBasedCollator collator; local [all...] |
/external/icu4c/test/intltest/ |
allcoll.cpp | 38 errcheckln(status, "ERROR: in creation of rule based collator from ruleset - %s", u_errorName(status)); 49 const Collator::EComparisonResult CollationDummyTest::results[] = { 50 Collator::LESS, 51 Collator::LESS, /*Collator::GREATER,*/ 52 Collator::LESS, 53 Collator::LESS, 54 Collator::LESS, 55 Collator::LESS, 56 Collator::LESS [all...] |
tscoll.h | 33 void doTest(Collator* col, const UChar *source, const UChar *target, Collator::EComparisonResult result); 35 void doTest(Collator* col, const UnicodeString &source, const UnicodeString &target, Collator::EComparisonResult result); 36 void doTestVariant(Collator* col, const UnicodeString &source, const UnicodeString &target, Collator::EComparisonResult result); 39 Collator::EComparisonResult compareResult, 40 Collator::EComparisonResult keyResult, 41 Collator::EComparisonResult incResult, 42 Collator::EComparisonResult expectedResult ) [all...] |
decoll.cpp | 39 myCollation = Collator::createInstance(Locale::getGermany(), status); 85 const Collator::EComparisonResult CollationGermanTest::results[][2] = 88 { Collator::LESS, Collator::LESS }, 89 { Collator::EQUAL, Collator::LESS }, 90 { Collator::GREATER, Collator::GREATER }, 91 { Collator::GREATER, Collator::GREATER } [all...] |
svccoll.cpp | 42 Collator* frcol = Collator::createInstance(FR, status); 43 Collator* uscol = Collator::createInstance(US, status); 51 { // try override en_US collator 52 URegistryKey key = Collator::registerInstance(frcol, US, status); 54 Collator* ncol = Collator::createInstance(US_FOO, status); 56 errln("register of french collator for en_US failed on request for en_US_FOO"); 58 // ensure original collator's params not touche 217 Collator* collator; member in struct:CollatorInfo [all...] |
trcoll.cpp | 22 myCollation = Collator::createInstance(Locale("tr", "", ""),status); 58 const Collator::EComparisonResult CollationTurkishTest::results[] = { 59 Collator::LESS, 60 Collator::LESS, 61 Collator::LESS, 62 Collator::LESS, 63 Collator::GREATER, 64 Collator::LESS, 65 Collator::LESS, 66 Collator::GREATER [all...] |
lcukocol.cpp | 35 myCollation = Collator::createInstance("ko_kr", status); 39 errcheckln(status, "Couldn't instantiate the collator with %s", u_errorName(status)); 60 const Collator::EComparisonResult LotusCollationKoreanTest::results[] = { 61 Collator::LESS 67 myCollation->setStrength(Collator::TERTIARY); 83 dataerrln("Class collator not instantiated");
|
jacoll.cpp | 23 myCollation = Collator::createInstance(Locale::getJapan(), status); 56 const Collator::EComparisonResult CollationKanaTest::results[] = { 57 Collator::LESS, 58 Collator::EQUAL, //Collator::LESS, /* Katakanas and Hiraganas are equal on tertiary level(ICU 2.0)*/ 59 Collator::LESS, 60 Collator::GREATER, // Collator::LESS, /* Prolonged sound mark sorts BEFORE equivalent vowel (ICU 2.0)*/ 61 Collator::LESS, 62 Collator::LESS, //Collator::GREATER /* Prolonged sound mark sorts BEFORE equivalent vowel (ICU 2.0)*//* (…) [all...] |
ficoll.cpp | 36 myCollation = Collator::createInstance(Locale("fi", "FI", "", "collation=standard"),status); 60 const Collator::EComparisonResult CollationFinnishTest::results[] = { 61 Collator::GREATER, 62 Collator::LESS, 63 Collator::GREATER, 64 Collator::LESS, 66 Collator::EQUAL, 72 myCollation->setStrength(Collator::TERTIARY); 80 myCollation->setStrength(Collator::PRIMARY); 91 dataerrln(__FILE__ " cannot test - failed to create collator.") [all...] |
escoll.cpp | 38 myCollation = Collator::createInstance(Locale("es", "ES", ""),status); 70 const Collator::EComparisonResult CollationSpanishTest::results[] = { 71 Collator::LESS, 72 Collator::LESS, 73 Collator::GREATER, 74 Collator::LESS, 75 Collator::LESS, 77 Collator::LESS, 78 Collator::EQUAL, 79 Collator::LESS [all...] |
dadrcoll.cpp | 42 UCA = (RuleBasedCollator*)Collator::createInstance("root", status); 56 logln("TestSuite Collator: "); 107 el.relation = Collator::LESS; 111 el.relation = Collator::EQUAL; 115 el.relation = Collator::GREATER; 147 // Reads the options string and sets appropriate attributes in collator 149 DataDrivenCollatorTest::processArguments(Collator *col, const UChar *start, int32_t optLen) { 169 Collator *col = NULL; 183 col = Collator::createInstance(localeName, status); 185 logln("Testing collator for locale "+testSetting) [all...] |
frcoll.cpp | 30 myCollation = Collator::createInstance(Locale::getCanadaFrench(), status); 76 const Collator::EComparisonResult CollationFrenchTest::results[] = 78 Collator::LESS, 79 Collator::LESS, 80 Collator::LESS, /*Collator::GREATER,*/ 81 Collator::LESS, 82 Collator::GREATER, 83 Collator::GREATER, 84 Collator::LESS [all...] |
thcoll.h | 21 Collator* coll; // Thai collator 34 * sorted order, and confirm that the collator compares each line as 46 * Read the external names list, and confirms that the collator 64 void compareArray(Collator& c, const char* tests[],
|
encoll.cpp | 21 myCollation = Collator::createInstance(Locale::getEnglish(), status); 133 static const Collator::EComparisonResult results[] = { 134 Collator::LESS, 135 Collator::LESS, /*Collator::GREATER,*/ 136 Collator::LESS, 137 Collator::GREATER, 138 Collator::GREATER, 139 Collator::EQUAL, 140 Collator::LESS [all...] |
/libcore/luni/src/test/java/libcore/java/text/ |
CollatorTest.java | 21 import java.text.Collator; 29 Collator collator = Collator.getInstance(); local 30 collator.setStrength(Collator.PRIMARY); 31 assertEquals(Collator.PRIMARY, collator.getStrength()); 32 collator.setStrength(Collator.SECONDARY) [all...] |
OldCollationKeyTest.java | 20 import java.text.Collator; 29 Collator collator = Collator.getInstance(); local 30 collator.setStrength(Collator.PRIMARY); 31 CollationKey key1 = collator.getCollationKey("abc"); 36 collator = new RuleBasedCollator("= 1 , 2 ; 3 , 4 < 5 ; 6 , 7"); 43 * ((RuleBasedCollator)collator).getCollationElementIterator("1234567"); 52 // bytes = collator.getCollationKey("1234567").toByteArray() [all...] |
/packages/apps/Contacts/src/com/android/contacts/util/ |
PhonebookCollatorFactory.java | 19 import java.text.Collator; 23 * Returns the collator that can be used to sort contact list entries. This 24 * collator is the same as the one that is used in sqlite. 27 public static final Collator getCollator() { 30 // For Japanese we use a special collator that puts japanese characters before foreign 31 // ones (this is called a dictionary collator) 41 return Collator.getInstance(locale);
|
/external/webkit/Source/JavaScriptCore/wtf/unicode/ |
CollatorDefault.cpp | 30 #include "Collator.h" 36 Collator::Collator(const char*) 40 Collator::~Collator() 44 void Collator::setOrderLowerFirst(bool) 48 PassOwnPtr<Collator> Collator::userDefault() 50 return new Collator(0); 54 Collator::Result Collator::collate(const UChar* lhs, size_t lhsLength, const UChar* rhs, size_t rhsLength) (…) [all...] |
/external/webkit/Source/JavaScriptCore/wtf/unicode/icu/ |
CollatorICU.cpp | 30 #include "Collator.h" 53 Collator::Collator(const char* locale) 60 PassOwnPtr<Collator> Collator::userDefault() 73 return adoptPtr(new Collator("")); 75 return adoptPtr(new Collator(buf)); 77 return adoptPtr(new Collator(0)); 81 Collator::~Collator() [all...] |
/external/icu4c/samples/coll/ |
coll.cpp | 54 UCollator * collator = 0; variable 143 UCollationResult result = ucol_strcoll(collator, source, -1, target, -1); 154 * Creates a collator 158 // Set up an ICU collator 164 collator = ucol_openRules(rules, -1, UCOL_OFF, UCOL_TERTIARY, 168 collator = ucol_open(opt_locale, &status); 171 fprintf(stderr, "Collator creation failed.: %d\n", status); 183 ucol_setAttribute(collator, UCOL_NORMALIZATION_MODE, UCOL_ON, &status); 186 ucol_setAttribute(collator, UCOL_FRENCH_COLLATION, UCOL_ON, &status); 189 ucol_setAttribute(collator, UCOL_CASE_FIRST, UCOL_LOWER_FIRST, [all...] |
/libcore/luni/src/main/java/java/text/ |
Collator.java | 61 * This {@code Collator} deals only with two decomposition modes, the canonical 64 * {@code java.text.Collator.FULL_DECOMPOSITION} is not supported here. If the 65 * canonical decomposition mode is set, {@code Collator} handles un-normalized 75 * // Get the Collator for US English and set its strength to PRIMARY 76 * Collator usCollator = Collator.getInstance(Locale.US); 77 * usCollator.setStrength(Collator.PRIMARY); 85 * The following example shows how to compare two strings using the collator for 91 * Collator myCollator = Collator.getInstance() 226 Collator collator = (Collator) object; local [all...] |
/external/icu4c/i18n/ |
coll.cpp | 60 * Release all static memory held by collator. 130 return Collator::makeInstance(loc, status); 140 : ICULocaleService(UNICODE_STRING_SIMPLE("Collator")) 147 return ((Collator*)instance)->clone(); 160 return Collator::makeInstance(loc, status); 168 Collator* result = (Collator*)ICULocaleService::getKey(key, actualReturn, status); 231 Collator::createUCollator(const char *loc, 237 Collator *col = (Collator*)gService->get(desiredLocale, *status) 385 Collator *collator; local [all...] |
/external/icu4c/i18n/unicode/ |
sortkey.h | 44 * Collation keys are generated by the Collator class. Use the CollationKey objects 45 * instead of Collator to compare strings multiple times. A CollationKey 46 * preprocesses the comparison information from the Collator object to 48 * multiple times, then using the Collator object is generally faster, 52 * <p>When comparing "Abernathy" to "Baggins-Smythworthy", Collator 64 * Collator* myCollator = Collator::createInstance(success); 78 * <p>Because Collator::compare()'s algorithm is complex, it is faster to sort 79 * long lists of words by retrieving collation keys with Collator::getCollationKey(). 82 * <strong>Note:</strong> <code>Collator</code>s with different Locale [all...] |