New collator for GCJ

Guilhem Lavaux guilhem@kaffe.org
Sun May 16 17:58:00 GMT 2004


Hi,

I have noticed that the new classpath's RuleBasedCollator has not been 
included in GCJ. All tests of gnu.testlet.java.text.RuleBasedCollator 
are passing now. I expect the remaining failures in 
CollationElementIterator.jdk11 to vanish when the collation rules will 
be complete in locale data (currently they are caused by auto-guess 
sequence ordering).

I have attached the new collator and its iterator. The ChangeLog entry 
is quite simple: near full reimplementation.

There are still three missing features/bugs:

* '!' is not yet supported (but it should be easy to implement it as 
there is a real specification in jdk's doc).
* Implicit reverse ordering of accented characters are not clearly 
specified so the result may be random. Though for complete collation 
rules the feature is implemented.
* getMaxExpansion() only returns 1 for the moment.

Cheers,

Guilhem.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CollationElementIterator.java
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040516/42fc69da/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: RuleBasedCollator.java
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040516/42fc69da/attachment-0001.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 252 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040516/42fc69da/attachment.sig>


More information about the Java-patches mailing list