Searched refs:collator (Results 1 - 20 of 20) sorted by relevance

/macosx-10.10.1/ICU-531.30/icuSources/samples/coll/
H A Dcoll.cpp54 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);
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,
193 ucol_setAttribute(collator, UCOL_CASE_FIRS
[all...]
/macosx-10.10.1/ICU-531.30/icuSources/samples/strsrch/
H A Dstrsrch.cpp59 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);
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,
188 ucol_setAttribute(collator, UCOL_CASE_LEVE
[all...]
/macosx-10.10.1/ICU-531.30/icuSources/test/intltest/
H A Dsrchtest.cpp30 dataerrln(__FILE__ " cannot test - failed to create collator."); \
180 RuleBasedCollator * StringSearchTest::getCollator(const char *collator) argument
182 if (collator == NULL) {
185 if (strcmp(collator, "fr") == 0) {
188 else if (strcmp(collator, "de") == 0) {
191 else if (strcmp(collator, "es") == 0) {
464 Collator *collator = getCollator(search->collator); local
486 collator->setStrength(getECollationStrength(search->strength));
487 strsrch = new StringSearch(pattern, text, (RuleBasedCollator *)collator,
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...]
H A Dsrchtest.h39 RuleBasedCollator * getCollator(const char *collator);
H A Dcolldata.h213 * @param collator - the collator
216 CollData(UCollator *collator, UErrorCode &status);
H A Dsvccoll.cpp50 { // try override en_US collator
58 errln("register of french collator for en_US failed on request for en_US_FOO");
79 errln("failed to unregister french collator");
84 errln("collator after unregister does not match original");
94 { // try create collator for new locale
104 errln("register of fr collator for fu_FU failed");
177 errln("collator fufu != collator frFR");
182 errln("failed to unregister french collator");
202 errln("collator afte
216 Collator* collator; member in struct:CollatorInfo
[all...]
H A Dssearch.cpp179 // Get the collator normalization flag. Default is UCOL_OFF.
254 // Open a collator and StringSearch based on the parameters
258 LocalUCollatorPointer collator(ucol_open(clocale, &status));
259 ucol_setStrength(collator.getAlias(), collatorStrength);
260 ucol_setAttribute(collator.getAlias(), UCOL_NORMALIZATION_MODE, normalize, &status);
261 ucol_setAttribute(collator.getAlias(), UCOL_ALTERNATE_HANDLING, alternateHandling, &status);
264 collator.getAlias(),
302 collator.getAlias(),
622 errcheckln(status, "Failed to create collator in offsetTest! - %s", u_errorName(status));
921 LocalUCollatorPointer collator(ucol_ope
[all...]
H A Dcolldata.cpp314 CollData::CollData(UCollator *collator, UErrorCode &status) argument
344 coll = ucol_safeClone(collator, NULL, NULL, &status);
350 coll = collator;
/macosx-10.10.1/ICU-531.30/icuSources/i18n/
H A Dusearch.cpp147 // note for tertiary we can't use the collator->tertiaryMask, that
298 coleiter = ucol_openElements(strsrch->collator, pattern->text,
370 coleiter = ucol_openElements(strsrch->collator, pattern->text,
782 * @param collator collation sata
789 inline int32_t getNextSafeOffset(const UCollator *collator, argument
795 while (result != textlength && ucol_unsafeCP(text[result], collator)) {
840 int32_t safeoffset = getNextSafeOffset(strsrch->collator,
1166 const UCollator *collator = strsrch->collator; local
1177 if ((*end < textlength && ucol_unsafeCP(text[*end], collator)) ||
1525 getPreviousSafeOffset(const UCollator *collator, const UChar *text, int32_t textoffset) argument
1578 const UCollator *collator = strsrch->collator; local
1816 const UCollator *collator = strsrch->collator; local
2013 const UCollator *collator = strsrch->collator; local
2238 const UCollator *collator = strsrch->collator; local
2453 const UCollator *collator = strsrch->collator; local
2608 UCollator *collator = ucol_open(locale, status); local
2629 usearch_openFromCollator( const UChar *pattern, int32_t patternlength, const UChar *text, int32_t textlength, const UCollator *collator, UBreakIterator *breakiter, UErrorCode *status) argument
3009 usearch_setCollator( UStringSearch *strsrch, const UCollator *collator, UErrorCode *status) argument
[all...]
H A Dstsearch.cpp159 that.m_strsrch_->collator,
196 that.m_strsrch_->collator,
214 this->m_strsrch_->collator == thatsrch.m_strsrch_->collator);
250 // Note the const_cast. It would be cleaner if this const method returned a const collator.
251 return RuleBasedCollator::rbcFromUCollator(const_cast<UCollator *>(m_strsrch_->collator));
H A Drbnf.cpp661 , collator(NULL)
683 , collator(NULL)
705 , collator(NULL)
726 , collator(NULL)
748 , collator(NULL)
767 , collator(NULL)
831 , collator(NULL)
1262 if (!enabled && collator) {
1263 delete collator;
1264 collator
[all...]
H A Dnfrule.cpp1131 * text with a collator). If there's no match, this is 0.
1145 // get the formatter's collator and use it to create two
1148 // exception if the collator we get back from the formatter
1152 const RuleBasedCollator* collator = formatter->getCollator(); local
1153 if (collator == NULL) {
1157 LocalPointer<CollationElementIterator> strIter(collator->createCollationElementIterator(str));
1158 LocalPointer<CollationElementIterator> prefixIter(collator->createCollationElementIterator(prefix));
1255 // ugly contortions. First, use the collator to compare the
1258 collator->setStrength(Collator::PRIMARY);
1262 if (collator
1448 const RuleBasedCollator* collator = formatter->getCollator(); local
[all...]
H A Dusrchimp.h171 const UCollator *collator; member in struct:UStringSearch
196 * For tertiary we can't use the collator->tertiaryMask, that is a
H A Dalphaindex.cpp216 AlphabeticIndex::AlphabeticIndex(RuleBasedCollator *collator, UErrorCode &status) argument
221 collator_(collator), collatorPrimaryOnly_(NULL),
926 // Guard against a degenerate collator where
953 // Comparison function for UVector<UnicodeString *> sorting with a collator.
978 // Comparison function for UVector<Record *> sorting with a collator.
1001 // Fetch the script-first-primary contractions which are defined in the root collator.
/macosx-10.10.1/ICU-531.30/icuSources/test/cintltst/
H A Dusrchtst.c60 log_err_status(*status, "Error opening collator\n");
157 * Getting the collator
159 static UCollator *getCollator(const char *collator) argument
161 if (collator == NULL) {
164 if (strcmp(collator, "fr") == 0) {
167 else if (strcmp(collator, "de") == 0) {
170 else if (strcmp(collator, "es") == 0) {
261 log_data_err("Opening collator failed.\n");
286 log_data_err("Opening collator failed.\n");
547 UCollator *collator local
578 UCollator *collator = getCollator(search.collator); local
619 UCollator *collator = getCollator(search.collator); local
775 UCollator *collator = getCollator(search->collator); local
882 UCollator *collator = getCollator(search->collator); local
1655 UCollator *collator; local
1698 UCollator *collator; local
1865 UCollator *collator = getCollator(search->collator); local
1983 UCollator *collator = getCollator(search->collator); local
2269 UCollator *collator; local
2383 UCollator *collator = NULL; local
[all...]
H A Dusrchdat.c29 const char *collator; /* currently supported "fr" "es" "de", plus NULL/other => "en" */ member in struct:SearchData
H A Dcmsccoll.c48 typedef UCollationResult tst_strcoll(void *collator, const int object,
268 log_err_status(status, "ERROR: in creation of rule based collator: %s\n", myErrorName(status));
456 log_data_err("Can't open collator");
525 log_err("Can't open collator");
591 log_data_err("Error opening collator -> %s (Are you missing data?)\n", u_errorName(status));
711 log_err("Error opening collator\n");
726 log_verbose("Unable to create a collator from UCARules!\n");
868 log_err_status(status, "ERROR: in creation of rule based collator: %s\n", myErrorName(status));
888 log_err("ERROR: in creation of rule based collator: %s\n", myErrorName(status));
995 log_err("Error opening collator\
[all...]
/macosx-10.10.1/ICU-531.30/icuSources/i18n/unicode/
H A Dusearch.h28 * handled, e.g. for the German collator, characters &szlig; and SS will be matched
103 * Though collator attributes will be taken into consideration while
105 * attributes. These attributes can be set by getting the collator
107 * Lastly to update String Search to the new collator attributes,
223 * standard collation element comparison at the specified collator
235 * example, with a secondary-strength English collator, a plain 'e' in
254 * For example, with a secondary-strength English collator, a plain 'e'
280 * rule set. A collator will be created in the process, which will be owned by
309 * Creating a search iterator data struct using the argument collator language
310 * rule set. Note, user retains the ownership of this collator, thu
[all...]
H A Dalphaindex.h177 * int32_t skLength = collator.getSortKey(name, sk, skCapacity);
305 * Construct an AlphabeticIndex that uses a specific collator.
310 * The index adopts the collator, and is responsible for deleting it.
311 * The caller should make no further use of the collator after creating the index.
313 * @param collator The collator to use to order the contents of this index.
318 AlphabeticIndex(RuleBasedCollator *collator, UErrorCode &status);
363 * Ownership of the collator remains with the AlphabeticIndex instance.
365 * The returned collator is a reference to the internal collator use
[all...]
H A Drbnf.h851 * end of the default collator for the locale, enabling additional equivalences
975 RuleBasedCollator* collator; member in class:RuleBasedNumberFormat

Completed in 295 milliseconds