Home | History | Annotate | Download | only in coll

Lines Matching refs:collator

60 UCollator * collator  = 0;
149 UCollationResult result = ucol_strcoll(collator, source, -1, target, -1);
160 * Creates a collator
164 // Set up an ICU collator
170 collator = ucol_openRules(rules, -1, UCOL_OFF, UCOL_TERTIARY,
174 collator = ucol_open(opt_locale, &status);
177 fprintf(stderr, "Collator creation failed.: %d\n", status);
189 ucol_setAttribute(collator, UCOL_NORMALIZATION_MODE, UCOL_ON, &status);
192 ucol_setAttribute(collator, UCOL_FRENCH_COLLATION, UCOL_ON, &status);
195 ucol_setAttribute(collator, UCOL_CASE_FIRST, UCOL_LOWER_FIRST,
199 ucol_setAttribute(collator, UCOL_CASE_FIRST, UCOL_UPPER_FIRST,
203 ucol_setAttribute(collator, UCOL_CASE_LEVEL, UCOL_ON, &status);
206 ucol_setAttribute(collator, UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED,
212 ucol_setAttribute(collator, UCOL_STRENGTH, UCOL_PRIMARY, &status);
215 ucol_setAttribute(collator, UCOL_STRENGTH, UCOL_SECONDARY,
219 ucol_setAttribute(collator, UCOL_STRENGTH, UCOL_TERTIARY, &status);
222 ucol_setAttribute(collator, UCOL_STRENGTH, UCOL_QUATERNARY,
226 ucol_setAttribute(collator, UCOL_STRENGTH, UCOL_IDENTICAL,
235 fprintf(stderr, "Collator attribute setting failed.: %d\n", status);
253 fprintf(stderr, "Error creating collator for comparison\n");
270 ucol_close(collator);