Home
last modified time | relevance | path

Searched refs:myCollator (Results 1 – 10 of 10) sorted by relevance

/external/icu/icu4c/source/test/intltest/
Dmnkytst.cpp34 myCollator(0) in CollationMonkeyTest()
37 myCollator = Collator::createInstance("en_US", status); in CollationMonkeyTest()
42 delete myCollator; in ~CollationMonkeyTest()
94 myCollator->setStrength(Collator::TERTIARY); in TestCollationKey()
95 myCollator->getCollationKey(subs, collationKey1, status1); in TestCollationKey()
96 myCollator->getCollationKey(subt, collationKey2, status2); in TestCollationKey()
101 myCollator->setStrength(Collator::SECONDARY); in TestCollationKey()
102 myCollator->getCollationKey(subs, collationKey1, status1); in TestCollationKey()
103 myCollator->getCollationKey(subt, collationKey2, status2); in TestCollationKey()
108 myCollator->setStrength(Collator::PRIMARY); in TestCollationKey()
[all …]
Dmnkytst.h51 Collator *myCollator; variable
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
DCollationMonkeyTest.java50 Collator myCollator; in TestCollationKey() local
52 myCollator = Collator.getInstance(new Locale("en", "US")); in TestCollationKey()
68 myCollator.setStrength(Collator.TERTIARY); in TestCollationKey()
69 collationKey1 = myCollator.getCollationKey(subs); in TestCollationKey()
70 collationKey2 = myCollator.getCollationKey(subt); in TestCollationKey()
75 myCollator.setStrength(Collator.SECONDARY); in TestCollationKey()
76 collationKey1 = myCollator.getCollationKey(subs); in TestCollationKey()
77 collationKey2 = myCollator.getCollationKey(subt); in TestCollationKey()
82 myCollator.setStrength(Collator.PRIMARY); in TestCollationKey()
83 collationKey1 = myCollator.getCollationKey(subs); in TestCollationKey()
[all …]
DCollationDummyTest.java420 Collator myCollator = null; in TestJB1401() local
430 myCollator = Collator.getInstance(Locale.ENGLISH); in TestJB1401()
435 myCollator.setDecomposition(Collator.CANONICAL_DECOMPOSITION); in TestJB1401()
457 doTest(myCollator, x, y, 0); in TestJB1401()
458 doTest(myCollator, x, z, 0); in TestJB1401()
459 doTest(myCollator, y, z, 0); in TestJB1401()
468 ceiX = ((RuleBasedCollator)myCollator).getCollationElementIterator(x); in TestJB1401()
469 ceiY = ((RuleBasedCollator)myCollator).getCollationElementIterator(y); in TestJB1401()
470 ceiZ = ((RuleBasedCollator)myCollator).getCollationElementIterator(z); in TestJB1401()
DCollationFrozenMonkeyTest.java54 Collator myCollator = Collator.getInstance(new Locale("en", "CA")); in TestCollationKey() local
55 myCollator.freeze(); in TestCollationKey()
57 myPrimaryCollator = myCollator.cloneAsThawed(); in TestCollationKey()
140 Collator myCollator = Collator.getInstance(new Locale("en", "CA")); in TestCompare() local
141 myCollator.freeze(); in TestCompare()
143 myPrimaryCollator = myCollator.cloneAsThawed(); in TestCompare()
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DCollationMonkeyTest.java47 Collator myCollator; in TestCollationKey() local
49 myCollator = Collator.getInstance(new Locale("en", "US")); in TestCollationKey()
65 myCollator.setStrength(Collator.TERTIARY); in TestCollationKey()
66 collationKey1 = myCollator.getCollationKey(subs); in TestCollationKey()
67 collationKey2 = myCollator.getCollationKey(subt); in TestCollationKey()
72 myCollator.setStrength(Collator.SECONDARY); in TestCollationKey()
73 collationKey1 = myCollator.getCollationKey(subs); in TestCollationKey()
74 collationKey2 = myCollator.getCollationKey(subt); in TestCollationKey()
79 myCollator.setStrength(Collator.PRIMARY); in TestCollationKey()
80 collationKey1 = myCollator.getCollationKey(subs); in TestCollationKey()
[all …]
DCollationDummyTest.java417 Collator myCollator = null; in TestJB1401() local
427 myCollator = Collator.getInstance(Locale.ENGLISH); in TestJB1401()
432 myCollator.setDecomposition(Collator.CANONICAL_DECOMPOSITION); in TestJB1401()
454 doTest(myCollator, x, y, 0); in TestJB1401()
455 doTest(myCollator, x, z, 0); in TestJB1401()
456 doTest(myCollator, y, z, 0); in TestJB1401()
465 ceiX = ((RuleBasedCollator)myCollator).getCollationElementIterator(x); in TestJB1401()
466 ceiY = ((RuleBasedCollator)myCollator).getCollationElementIterator(y); in TestJB1401()
467 ceiZ = ((RuleBasedCollator)myCollator).getCollationElementIterator(z); in TestJB1401()
DCollationFrozenMonkeyTest.java51 Collator myCollator = Collator.getInstance(new Locale("en", "CA")); in TestCollationKey() local
52 myCollator.freeze(); in TestCollationKey()
54 myPrimaryCollator = myCollator.cloneAsThawed(); in TestCollationKey()
137 Collator myCollator = Collator.getInstance(new Locale("en", "CA")); in TestCompare() local
138 myCollator.freeze(); in TestCompare()
140 myPrimaryCollator = myCollator.cloneAsThawed(); in TestCompare()
/external/icu/icu4c/source/test/cintltst/
Dcallcoll.c877 UCollator *myCollator = 0; in TestJB581() local
885 myCollator = ucol_open("en_US", &status); in TestJB581()
890 result = ucol_strcoll(myCollator, source, -1, target, -1); in TestJB581()
897 ucol_setStrength(myCollator, UCOL_PRIMARY); in TestJB581()
898 result = ucol_strcoll(myCollator, source, -1, target, -1); in TestJB581()
905 sourceKeyOut = ucol_getSortKey(myCollator, source, -1, sourceKeyArray, 100); in TestJB581()
907 targetKeyOut = ucol_getSortKey(myCollator, target, -1, targetKeyArray, 100); in TestJB581()
913 ucol_close(myCollator); in TestJB581()
918 UCollator *myCollator = 0; in TestJB1401() local
929 myCollator = ucol_open("en_US", &status); in TestJB1401()
[all …]
Dnucnvtst.c5399 UCollator* myCollator; in TestJitterbug981() local
5407 myCollator = ucol_open("zh", &status); in TestJitterbug981()
5414 rules = ucol_getRules(myCollator, &rules_length); in TestJitterbug981()
5417 ucol_close(myCollator); in TestJitterbug981()
5441 ucol_close(myCollator); in TestJitterbug981()