Lines Matching refs:collator

39  * handled, e.g. for the German collator, characters ß and SS will be matched
104 * Though collator attributes will be taken into consideration while
106 * attributes. These attributes can be set by getting the collator
108 * Lastly to update <tt>StringSearch</tt> to the new collator attributes,
157 * the argument collator to search for argument pattern in the argument
163 * @param collator {@link RuleBasedCollator} that defines the language rules
172 public StringSearch(String pattern, CharacterIterator target, RuleBasedCollator collator,
180 if (collator.getNumericCollation()) {
184 collator_ = collator;
185 strength_ = collator.getStrength();
187 toShift_ = collator.isAlternateHandlingShifted();
188 variableTop_ = collator.getVariableTop();
196 textIter_ = new CollationElementIterator(target, collator);
208 ULocale collLocale = collator.getLocale(ULocale.VALID_LOCALE);
217 * the argument collator to search for argument pattern in the argument
221 * @param collator {@link RuleBasedCollator} that defines the language rules
227 public StringSearch(String pattern, CharacterIterator target, RuleBasedCollator collator) {
228 this(pattern, target, collator, null);
239 * or of length 0. ClassCastException thrown if the collator for
257 * or of length 0. ClassCastException thrown if the collator for
275 * or of length 0. ClassCastException thrown if the collator for
305 * @param collator to use for this <tt>StringSearch</tt>
306 * @throws IllegalArgumentException thrown when collator is null
310 public void setCollator(RuleBasedCollator collator) {
311 if (collator == null) {
314 collator_ = collator;
317 ULocale collLocale = collator.getLocale(ULocale.VALID_LOCALE);
321 toShift_ = collator.isAlternateHandlingShifted();
322 variableTop_ = collator.getVariableTop();
323 textIter_ = new CollationElementIterator(pattern_.text_, collator);
324 utilIter_ = new CollationElementIterator(pattern_.text_, collator);
326 // initialize() _after_ setting the iterators for the new collator.
426 // string search, hence all attributes in the collator should
617 // note for tertiary we can't use the collator->tertiaryMask, that
1032 // fields that are for strengths below that of the collator are set to 0. If this makes the int64_t
1033 // CE weight 0 (as for a combining diacritic with secondary weight when the collator strentgh is primary),