Home | History | Annotate | Download | only in text

Lines Matching refs:rules

20 * The collation table is composed of a list of collation rules, where each
40 * The following demonstrates how to create your own collation rules:
61 * to add a modification at the end of a set of rules.
150 * However, to create a rule-based Collator object with specialized rules
152 * with the rules contained in a <code>String</code> object. For example:
184 * // First, get the collation rules from en_USCollator
186 * // Second, get the collation rules from da_DKCollator
190 * // newCollator has the combined rules
201 * // Create a new Collator object with additional rules
205 * // myCollator contains the new rules
231 * // get en_US Collator rules
251 * RuleBasedCollator constructor. This takes the table rules and builds a
254 * @param rules the collation rules to build the collation table from.
255 * @exception ParseException thrown if rules are empty or a Runtime error
259 public RuleBasedCollator(String rules) throws ParseException {
260 if (rules == null) {
263 m_collator_ = NativeCollation.openCollatorFromRules(rules,
268 * RuleBasedCollator constructor. This takes the table rules and builds a
271 * @param rules the collation rules to build the collation table from.
273 * @exception ParseException thrown if rules are empty or a Runtime error
282 public RuleBasedCollator(String rules, int strength) throws ParseException {
283 if (rules == null) {
286 m_collator_ = NativeCollation.openCollatorFromRules(rules, CollationAttribute.VALUE_OFF, strength);
290 * RuleBasedCollator constructor. This takes the table rules and builds a
299 * @param rules the collation rules to build the collation table from.
312 public RuleBasedCollator(String rules, int normalizationMode, int strength) {
313 if (rules == null) {
316 m_collator_ = NativeCollation.openCollatorFromRules(rules, normalizationMode, strength);
469 * Get the collation rules of this Collation object
470 * The rules will follow the rule syntax.
471 * @return collation rules.
480 * elements in a string, using the collation rules defined in this