// RuleBasedCollator.java - Concrete class for locale-based string compare.
-/* Copyright (C) 1999, 2000 Free Software Foundation
+/* Copyright (C) 1999, 2000, 2001 Free Software Foundation
This file is part of libgcj.
{
public Object clone ()
{
- return new RuleBasedCollator (this);
+ RuleBasedCollator c = (RuleBasedCollator) super.clone ();
+ c.map = (Hashtable) map.clone ();
+ c.prefixes = (Hashtable) map.clone ();
+ return c;
}
// A helper for CollationElementIterator.next().
}
}
- // This is a helper for clone.
- private RuleBasedCollator (RuleBasedCollator other)
- {
- frenchAccents = other.frenchAccents;
- rules = other.rules;
- decmp = other.decmp;
- strength = other.strength;
- map = other.map;
- prefixes = other.prefixes;
- }
-
// True if we are using French-style accent ordering.
private boolean frenchAccents;