+2003-10-15 Michael Koch <konqueror@gmx.de>
+
+ * java/text/RuleBasedCollator.java
+ (CollationElement): Renamed from RBCElement and moved into
+ RuledBasedCollator as inner class.
+
2003-10-15 Michael Koch <konqueror@gmx.de>
* java/text/CollationElementIterator.java
* @date March 25, 1999
*/
-final class RBCElement
+public class RuleBasedCollator extends Collator
{
- String key;
- char relation;
-
- RBCElement (String key, char relation)
+ final class CollationElement
{
- this.key = key;
- this.relation = relation;
- }
-}
+ String key;
+ char relation;
+
+ CollationElement (String key, char relation)
+ {
+ this.key = key;
+ this.relation = relation;
+ }
+
+ } // inner class CollationElement
-public class RuleBasedCollator extends Collator
-{
// True if we are using French-style accent ordering.
private boolean frenchAccents;
if (insertion_index >= item_index)
--insertion_index;
}
- RBCElement r = new RBCElement (arg, c);
+ CollationElement r = new CollationElement (arg, c);
vec.insertElementAt(r, insertion_index);
++insertion_index;
}
Enumeration e = vec.elements();
while (e.hasMoreElements())
{
- RBCElement r = (RBCElement) e.nextElement();
+ CollationElement r = (CollationElement) e.nextElement();
switch (r.relation)
{
case '<':