/libcore/luni/src/main/java/java/text/ |
CollationKey.java | 22 * Comparing two {@code CollationKey} instances returns the relative order of 30 * Both the method {@code CollationKey.compareTo(CollationKey)} and the method 35 * During the construction of a {@code CollationKey}, the entire source string 37 * are stored in the {@code CollationKey}. When 38 * {@code CollationKey.compareTo(CollationKey)} executes, it performs bitwise 40 * the {@code CollationKey}, but once the key is created, binary comparisons 56 * CollationKey[] keys = new CollationKey[3] [all...] |
RuleBasedCollator.java | 372 * multiple times, it is more efficient to generate {@code CollationKey} 374 * {@code CollationKey.compareTo(CollationKey)} for the comparisons. If each 395 * Returns the {@code CollationKey} for the given source text. 399 * @return the {@code CollationKey} for the given source text. 402 public CollationKey getCollationKey(String source) {
|
Collator.java | 69 * before performing a comparison or before getting a {@link CollationKey}. 109 * @see CollationKey 255 * Returns a {@link CollationKey} for the specified string for this collator 262 public abstract CollationKey getCollationKey(String string);
|
/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 57 * <p>Typical use of CollationKeys are in databases, where you store a CollationKey 65 * CollationKey* keys = new CollationKey [3]; 71 * CollationKey tmp; 80 * You can then cache the collation keys and compare them using CollationKey::compareTo(). 96 class U_I18N_API CollationKey : public UObject { 105 CollationKey(); 114 CollationKey(const uint8_t* values [all...] |
coll.h | 79 class CollationKey; 156 * An older set of APIs returns a <code>CollationKey</code> object that wraps 170 * @see CollationKey 476 * with CollationKey::compareTo. It is not possible to restore the original 479 * <p>Use CollationKey::equals or CollationKey::compare to compare the 486 * @see CollationKey#compare 489 virtual CollationKey& getCollationKey(const UnicodeString& source, 490 CollationKey& key, 495 * with CollationKey::compareTo. It is not possible to restore the origina [all...] |
tblcoll.h | 408 * that can be compared with CollationKey.compare. Use a CollationKey when 415 * @see CollationKey 418 virtual CollationKey& getCollationKey(const UnicodeString& source, 419 CollationKey& key, 424 * that can be compared with CollationKey.compare. Use a CollationKey when 432 * @see CollationKey 435 virtual CollationKey& getCollationKey(const UChar *source, 437 CollationKey& key [all...] |
/external/icu4c/i18n/ |
sortkey.cpp | 46 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(CollationKey) 48 CollationKey::CollationKey() 55 CollationKey::CollationKey(const uint8_t* newValues, int32_t count) 70 CollationKey::CollationKey(const CollationKey& other) 94 CollationKey::~CollationKey() [all...] |
tblcoll.cpp | 442 CollationKey& RuleBasedCollator::getCollationKey( 444 CollationKey& sortkey, 450 CollationKey& RuleBasedCollator::getCollationKey(const UChar* source, 452 CollationKey& sortkey,
|
/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/ |
CollationKeyTest.java | 19 import java.text.CollationKey; 28 * @tests java.text.CollationKey#compareTo(java.text.CollationKey) 33 CollationKey key1 = collator.getCollationKey("abc"); 34 CollationKey key2 = collator.getCollationKey("ABC"); 39 * @tests java.text.CollationKey#compareTo(java.lang.Object) 43 // java.text.CollationKey.compareTo(java.lang.Object) 46 CollationKey key1 = collator.getCollationKey("abc"); 47 CollationKey key2 = collator.getCollationKey("ABC"); 52 * @tests java.text.CollationKey#equals(java.lang.Object [all...] |
RuleBasedCollatorTest.java | 22 import java.text.CollationKey; 43 CollationKey ck = rbc.getCollationKey(source); 105 CollationKey key1 = coll.getCollationKey(source); 108 CollationKey key2 = coll.getCollationKey(source2); 258 // Test CollationKey 262 CollationKey key = coll.getCollationKey(text); 265 CollationKey key2 = coll.getCollationKey("abc");
|
/libcore/luni/src/main/java/libcore/icu/ |
CollationKeyICU.java | 13 import java.text.CollationKey; 16 * A concrete implementation of the abstract java.text.CollationKey. 18 public final class CollationKeyICU extends CollationKey { 34 @Override public int compareTo(CollationKey other) { 78 if (!(object instanceof CollationKey)) { 81 return compareTo((CollationKey) object) == 0; 85 * Creates a hash code for this CollationKey.
|
RuleBasedCollatorICU.java | 14 import java.text.CollationKey; 94 public CollationKey getCollationKey(String source) {
|
/external/icu4c/test/intltest/ |
tscoll.h | 38 CollationKey &sourceKey, CollationKey &targetKey, 44 static UnicodeString &prettify(const CollationKey &source, UnicodeString &target);
|
thcoll.cpp | 169 CollationKey k1, k2; 288 CollationKey k1, k2; 301 CollationKey k1, k2;
|
currcoll.cpp | 116 CollationKey sourceKey, targetKey; 123 errln("Couldn't get collationKey for source"); 131 errln("Couldn't get collationKey for target");
|
tscoll.cpp | 148 CollationKey srckey, tgtkey; 283 CollationKey &sourceKey, CollationKey &targetKey, 378 // Produce a printable representation of a CollationKey 379 UnicodeString &IntlTestCollator::prettify(const CollationKey &source, UnicodeString &target)
|
apicoll.cpp | 523 CollationKey sortk1, sortk2, sortk3; 537 // CollationKey -- Tests the CollationKey methods 542 logln("testing CollationKey begins..."); 553 CollationKey sortk1, sortk2; 578 CollationKey sortk3(sortk2), sortkNew, sortkEmpty; 610 CollationKey sortk4(byteArray1, cnt1), sortk5(byteArray2, cnt2); 611 CollationKey sortk6(byteArray3, cnt3), sortk7(byteArray4, cnt4); 613 doAssert(sortk1.compareTo(sortk4) == Collator::EQUAL, "CollationKey::toByteArray(sortk1) Failed."); 614 doAssert(sortk2.compareTo(sortk5) == Collator::EQUAL, "CollationKey::toByteArray(sortk2) Failed.") [all...] |
ucaconf.cpp | 217 prettify(CollationKey(oldSk, oldLen), oldS); 218 prettify(CollationKey(newSk, resLen), newS);
|
allcoll.cpp | 181 CollationKey sourceKeyOut,
|
regcoll.cpp | 630 // CollationKey takes ignorable strings into account when it shouldn't 821 CollationKey key; 827 errln("CollationKey creation failed."); 866 // The sorting using java.text.CollationKey is not in the exact order 978 CollationKey key; 985 errln("Error creating CollationKey for \"Nombre De Ojbeto\""); 1041 CollationKey key; 1059 errln("Failure to get a CollationKey from a My4146160Collator."); [all...] |
mnkytst.cpp | 89 CollationKey collationKey1, collationKey2; 122 msg += "CollationKey("; 124 msg += ") .LT. CollationKey("; 134 msg += "CollationKey("; 136 msg += ") .GT. CollationKey(";
|
/libcore/luni/src/test/java/libcore/java/text/ |
OldCollationKeyTest.java | 19 import java.text.CollationKey; 28 // Test for method byte [] java.text.CollationKey.toByteArray() 31 CollationKey key1 = collator.getCollationKey("abc");
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
NameNormalizer.java | 20 import java.text.CollationKey; 47 CollationKey key = sCompressingCollator.getCollationKey(lettersAndDigitsOnly(name));
|
/external/apache-xml/src/main/java/org/apache/xalan/transformer/ |
NodeSorter.java | 23 import java.text.CollationKey; 199 CollationKey n1String, n2String; 203 n1String = (CollationKey) n1.m_key1Value; 204 n2String = (CollationKey) n2.m_key1Value; 208 n1String = (CollationKey) n1.m_key2Value; 209 n2String = (CollationKey) n2.m_key2Value;
|
/libcore/luni/src/test/java/libcore/java/util/ |
OldTreeMapTest.java | 21 import java.text.CollationKey; 275 public CollationKey getCollationKey(String string) {
|