Home | History | Annotate | Download | only in strsrch

Lines Matching refs:collator

59 UCollator * collator   = 0;
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,
188 ucol_setAttribute(collator, UCOL_CASE_LEVEL, UCOL_ON, &status);
191 ucol_setAttribute(collator, UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED,
197 ucol_setAttribute(collator, UCOL_STRENGTH, UCOL_PRIMARY, &status);
200 ucol_setAttribute(collator, UCOL_STRENGTH, UCOL_SECONDARY,
204 ucol_setAttribute(collator, UCOL_STRENGTH, UCOL_TERTIARY, &status);
207 ucol_setAttribute(collator, UCOL_STRENGTH, UCOL_QUATERNARY,
211 ucol_setAttribute(collator, UCOL_STRENGTH, UCOL_IDENTICAL,
220 fprintf(stderr, "Collator attribute setting failed.: %d\n", status);
234 search = usearch_openFromCollator(pattern, -1, source, -1, collator, NULL,
285 fprintf(stderr, "Error creating collator\n");
298 ucol_close(collator);