/external/icu4c/samples/strsrch/ |
strsrch.cpp | 59 UCollator * collator = 0; variable 146 * Creates a collator 150 // Set up an ICU collator 155 collator = ucol_openRules(rules, -1, UCOL_OFF, UCOL_TERTIARY, 159 collator = ucol_open(opt_locale, &status); 162 fprintf(stderr, "Collator creation failed.: %d\n", status); 174 ucol_setAttribute(collator, UCOL_NORMALIZATION_MODE, UCOL_ON, &status); 177 ucol_setAttribute(collator, UCOL_FRENCH_COLLATION, UCOL_ON, &status); 180 ucol_setAttribute(collator, UCOL_CASE_FIRST, UCOL_LOWER_FIRST, 184 ucol_setAttribute(collator, UCOL_CASE_FIRST, UCOL_UPPER_FIRST, [all...] |
/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/ |
RuleBasedCollatorTest.java | 23 import java.text.Collator; 63 RuleBasedCollator coll = (RuleBasedCollator) Collator 79 assertEquals(Collator.TERTIARY, coll.getStrength()); 80 assertEquals(Collator.NO_DECOMPOSITION, coll.getDecomposition()); 84 coll.setStrength(Collator.PRIMARY); 87 coll.setStrength(Collator.TERTIARY); 88 coll.setDecomposition(Collator.CANONICAL_DECOMPOSITION); 102 RuleBasedCollator coll = (RuleBasedCollator) Collator 128 RuleBasedCollator coll = (RuleBasedCollator) Collator 146 RuleBasedCollator coll = (RuleBasedCollator) Collator [all...] |
CollationElementIteratorTest.java | 21 import java.text.Collator; 39 coll = (RuleBasedCollator) Collator.getInstance(Locale.US); 102 RuleBasedCollator rbColl = (RuleBasedCollator) Collator 115 RuleBasedCollator rbColl = (RuleBasedCollator) Collator 130 RuleBasedCollator rbColl = (RuleBasedCollator) Collator 145 RuleBasedCollator rbColl = (RuleBasedCollator) Collator 164 RuleBasedCollator rbColl = (RuleBasedCollator) Collator 177 RuleBasedCollator rbColl = (RuleBasedCollator) Collator 193 RuleBasedCollator rbColl = (RuleBasedCollator) Collator
|
/libcore/luni/src/main/java/java/text/spi/ |
CollatorProvider.java | 20 import java.text.Collator; 26 * instances of {@code Collator}. 40 * Returns an instance of {@code Collator} for the given locale. 43 * @return an instance of {@code Collator} 49 public abstract Collator getInstance(Locale locale);
|
/external/icu4c/test/intltest/ |
apicoll.cpp | 61 * Test Collator::createInstance(... version...) for some locale. Called by TestProperty(). 66 Collator *collator1, *collator2; 70 collator1=Collator::createInstance(locale, errorCode); 77 collator2=Collator::createInstance(locale, version1, errorCode); 81 test.errln("error: Collator::createInstance(\"%s\", (%s collator)->getVersion()) returns a different collator\n", locale.getName(), locale.getName()); 85 test.errln("error: Collator::createInstance(\"%s\", (%s collator)->getVersion()) fails: %s\n", locale.getName(), locale.getName(), u_errorName(errorCode)); 91 // Collator Class Propertie [all...] |
apicoll.h | 28 * This tests the properties of a collator object. 61 * This tests the properties of a rule based collator object. 70 * This tests the duplication of a collator object. 75 * This tests the comparison convenience methods of a collator object. 83 * This tests the hashCode method of a collator object. 90 * - Collator::getCollationKey 113 * This tests the sort keys generated by collator 129 * Tests the collator attributes 139 * Tests GetLocale for a Collator
|
lcukocol.h | 33 static const Collator::EComparisonResult results[]; 35 Collator *myCollation;
|
dadrcoll.h | 33 Collator::EComparisonResult relation; 44 void processSequence(Collator* col, const UnicodeString &sequence); 46 void processArguments(Collator *col, const UChar *start, int32_t optLen);
|
regcoll.h | 43 // Collator -> rules -> Collator round-trip broken for expanding characters 49 // Collator thinks "black-bird" == "black" 57 // Collator object's mode is changed 63 // Collator.IDENTICAL documented but not implemented 75 // Collator.getInstance() causes an ArrayIndexOutofBoundsException for Korean 100 // Collator.compare() method broken if either string contains spaces 173 // Collator.compare not handling spaces properly 192 // Collator.getCollationKey was hanging on certain character sequences 217 // Support for Swedish gone in 1.1.6 (Can't create Swedish collator) [all...] |
regcoll.cpp | 26 en_us = (RuleBasedCollator *)Collator::createInstance(Locale::getUS(), status); 30 errcheckln(status, "Collator creation failed with %s", u_errorName(status)); 83 // Collator -> rules -> Collator round-trip broken for expanding characters 111 // Build a collator containing expanding characters 129 // Collator thinks "black-bird" == "black" 142 // Collator object's mode is changed 161 // Collator::IDENTICAL documented but not implemented 192 c->setStrength(Collator::IDENTICAL); 209 c->setStrength(Collator::SECONDARY) [all...] |
mnkytst.cpp | 35 myCollator = Collator::createInstance("en_US", status); 92 myCollator->setStrength(Collator::TERTIARY); 99 myCollator->setStrength(Collator::SECONDARY); 106 myCollator->setStrength(Collator::PRIMARY); 164 myCollator->setStrength(Collator::TERTIARY); 169 myCollator->setStrength(Collator::SECONDARY); 174 myCollator->setStrength(Collator::PRIMARY); 220 Collator *col = Collator::createInstance("en_US", status); 231 doTest(myCollation, testSourceCases[i], testTargetCases[i], Collator::LESS) [all...] |
currcoll.cpp | 83 Collator::EComparisonResult expectedResult = Collator::EQUAL; 84 RuleBasedCollator *c = (RuleBasedCollator *)Collator::createInstance("en_US", status); 88 errcheckln (status, "Collator::createInstance() failed! - %s", u_errorName(status)); 103 expectedResult = Collator::LESS; 107 expectedResult = Collator::EQUAL; 111 expectedResult = Collator::GREATER; 114 Collator::EComparisonResult compareResult = c->compare(source, target); 135 Collator::EComparisonResult keyResult = sourceKey.compareTo(targetKey);
|
srchtest.cpp | 30 dataerrln(__FILE__ " cannot test - failed to create collator."); \ 48 m_en_us_ = (RuleBasedCollator *)Collator::createInstance("en_US", status); 49 m_fr_fr_ = (RuleBasedCollator *)Collator::createInstance("fr_FR", status); 50 m_de_ = (RuleBasedCollator *)Collator::createInstance("de_DE", status); 51 m_es_ = (RuleBasedCollator *)Collator::createInstance("es_ES", status); 61 errln("Collator creation failed with %s", u_errorName(status)); 180 RuleBasedCollator * StringSearchTest::getCollator(const char *collator) 182 if (collator == NULL) { 185 if (strcmp(collator, "fr") == 0) { 188 else if (strcmp(collator, "de") == 0) 464 Collator *collator = getCollator(search->collator); local 521 Collator *collator = getCollator(search->collator); local 574 Collator *collator = getCollator(search->collator); local 908 RuleBasedCollator *collator = getCollator(search->collator); local 1011 RuleBasedCollator *collator = getCollator(search->collator); local 1601 RuleBasedCollator *collator = new RuleBasedCollator(rules, local 1639 RuleBasedCollator *collator = new RuleBasedCollator(rules, local 1763 RuleBasedCollator *collator = getCollator(search->collator); local 1869 RuleBasedCollator *collator = getCollator(search->collator); local 2108 Collator *collator = strsrch->getCollator(); local 2206 RuleBasedCollator *collator = new RuleBasedCollator(rules, local [all...] |
/external/webkit/Source/JavaScriptCore/wtf/unicode/ |
Collator.h | 43 class Collator { 44 WTF_MAKE_NONCOPYABLE(Collator); WTF_MAKE_FAST_ALLOCATED; 48 Collator(const char* locale); // Parsing is lenient; e.g. language identifiers (such as "en-US") are accepted, too. 49 ~Collator(); 52 static PassOwnPtr<Collator> userDefault(); 67 using WTF::Collator;
|
/libcore/luni/src/main/java/java/text/ |
CollationKey.java | 21 * Represents a string under the rules of a specific {@code Collator} object. 26 * string under two different {@code Collator} instances might differ. Hence 27 * comparing collation keys generated from different {@code Collator} instances 31 * {@code Collator.compare(String, String)} compares two strings and returns 45 * {@code Collator.compare(String, String)} can examine and process the strings 55 * Collator myCollator = Collator.getInstance(); 78 * @see Collator
|
RuleBasedCollator.java | 29 * collator object.</li> 132 * when the collator is set to NO_DECOMPOSITION. However, if the strings to be 134 * should set the collator to CANONICAL_DECOMPOSITION to enable sorting of 154 * Normally, to create a rule-based collator object, you will use 155 * {@code Collator}'s factory method {@code getInstance}. However, to create a 156 * rule-based collator object with specialized rules tailored to your needs, you 182 * Combining {@code Collator}s is as simple as concatenating strings. Here is 183 * an example that combines two {@code Collator}s from two different locales: 187 * // Create an en_US Collator object 188 * RuleBasedCollator en_USCollator = (RuleBasedCollator)Collator [all...] |
/external/icu4c/test/cintltst/ |
capitst.h | 14 *//* C API TEST For COLLATOR */ 34 * Collator Class Properties 114 * test short string and collator identifier functions
|
/external/chromium/chrome/browser/chromeos/options/ |
wifi_config_model.cc | 15 #include "unicode/coll.h" // icu::Collator 37 explicit CertNameComparator(icu::Collator* collator) 38 : collator_(collator) { 52 icu::Collator* collator_; 93 scoped_ptr<icu::Collator> collator; local 95 collator.reset( 96 icu::Collator::createInstance( 100 collator.reset(NULL) [all...] |
/external/webkit/Source/JavaScriptCore/icu/unicode/ |
ucol.h | 22 * \brief C API: Collator 24 * <h2> Collator C API </h2> 26 * The C API for Collator performs locale-sensitive 62 /** A collator. 66 /** structure representing a collator object instance 146 * Use this to set the strength of a Collator object. 151 * differences. Use this to set the strength of a Collator object. 156 * all comparison differences. Use this to set the strength of a Collator 254 * service. After finished, collator must be disposed of by calling 305 * Open a collator defined by a short form string [all...] |
/external/webkit/Source/WebCore/icu/unicode/ |
ucol.h | 22 * \brief C API: Collator 24 * <h2> Collator C API </h2> 26 * The C API for Collator performs locale-sensitive 62 /** A collator. 66 /** structure representing a collator object instance 146 * Use this to set the strength of a Collator object. 151 * differences. Use this to set the strength of a Collator object. 156 * all comparison differences. Use this to set the strength of a Collator 254 * service. After finished, collator must be disposed of by calling 305 * Open a collator defined by a short form string [all...] |
/external/icu4c/i18n/unicode/ |
tblcoll.h | 10 * \brief C++ API: RuleBasedCollator class provides the simple implementation of Collator. 31 * to be used by Collator::createDefault(). General 49 * 11/02/99 helena Collator performance enhancements. Eliminates the 85 * Collator, using data-driven tables. The user can create a customized 108 * @see Collator 111 class U_I18N_API RuleBasedCollator : public Collator 181 /** Opens a collator from a collator binary image created using 183 * collator remains owned by the user and should stay around for 184 * the lifetime of the collator. The API also takes a base collato [all...] |
coll.h | 40 * 11/02/99 helena Collator performance enhancements. Eliminates the 82 * The <code>Collator</code> class performs locale-sensitive string 92 * <code>Collator</code> is an abstract base class. Subclasses implement 100 * <code>Collator</code> object for a given locale. You will only need to 101 * look at the subclasses of <code>Collator</code> if you need to 106 * <code>Collator</code> for the default locale. 112 * Collator* myCollator = Collator::createInstance(success); 121 * You can set a <code>Collator</code>'s <em>strength</em> property to 133 * //Get the Collator for US English and set its strength to PRIMAR [all...] |
/external/sqlite/android/ |
sqlite3_android.cpp | 274 UCollator* collator; member in struct:SqliteUserData 328 UCollator* collator = (UCollator*)sqlite3_user_data(context); local 411 uint32_t result = ucol_getSortKey(collator, token, -1, (uint8_t*)keybuf, sizeof(keybuf)-1); 454 static void localized_collator_dtor(UCollator* collator) 456 ucol_close(collator); 461 // This collator may be removed in the near future, so you MUST not use now. 470 UCollator* collator = ucol_open(systemLocale, &status); local 475 ucol_setAttribute(collator, UCOL_STRENGTH, UCOL_PRIMARY, &status); 482 ucol_getShortDefinitionString(collator, NULL, buf, 1024, &status); 485 err = sqlite3_create_collation_v2(handle, LOCALIZED_COLLATOR_NAME, SQLITE_UTF16, collator, 554 UCollator * collator = ucol_open(NULL, &status); local [all...] |
/external/apache-xml/src/main/java/org/apache/xalan/transformer/ |
NodeSortKey.java | 23 import java.text.Collator; 48 /** Collator instance */ 49 Collator m_col; 119 m_col = Collator.getInstance(m_locale); 124 new Object[]{ langValue }); //"Could not find Collator for <sort xml:lang="+langValue); 126 m_col = Collator.getInstance();
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
NameNormalizer.java | 21 import java.text.Collator; 33 sCompressingCollator = (RuleBasedCollator)Collator.getInstance(Locale.getDefault()); 34 sCompressingCollator.setStrength(Collator.PRIMARY); 35 sCompressingCollator.setDecomposition(Collator.CANONICAL_DECOMPOSITION); 40 sComplexityCollator = (RuleBasedCollator)Collator.getInstance(Locale.getDefault()); 41 sComplexityCollator.setStrength(Collator.SECONDARY);
|