Home | History | Annotate | Download | only in coll

Lines Matching refs:collator

54 UCollator * collator  = 0;
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);
171 fprintf(stderr, "Collator creation failed.: %d\n", 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_FIRST, UCOL_UPPER_FIRST,
197 ucol_setAttribute(collator, UCOL_CASE_LEVEL, UCOL_ON, &status);
200 ucol_setAttribute(collator, UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED,
206 ucol_setAttribute(collator, UCOL_STRENGTH, UCOL_PRIMARY, &status);
209 ucol_setAttribute(collator, UCOL_STRENGTH, UCOL_SECONDARY,
213 ucol_setAttribute(collator, UCOL_STRENGTH, UCOL_TERTIARY, &status);
216 ucol_setAttribute(collator, UCOL_STRENGTH, UCOL_QUATERNARY,
220 ucol_setAttribute(collator, UCOL_STRENGTH, UCOL_IDENTICAL,
229 fprintf(stderr, "Collator attribute setting failed.: %d\n", status);
247 fprintf(stderr, "Error creating collator for comparison\n");
264 ucol_close(collator);