classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Comparison ICU/java.text


From: Guilhem Lavaux
Subject: Re: Comparison ICU/java.text
Date: Sat, 10 Apr 2004 18:30:40 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030630

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi again !

I must add that I've found it may support full locales: ICU includes a
locale converter: Java to ICU and POSIX to ICU.

Tom, have you received any answer from IBM ?

Cheers,
Guilhem.

Guilhem Lavaux wrote:
|
| To the request of Tom Tromey I have made a small comparison between ICU
| text and java.text. As it is MIT licenced and has a strong
| implementation it would have been great to be able to import classes
| though I don't really like to have some pure IBM code around. So here is
| a list of the features and differences:
|
| * classes which has the same name: BreakIterator,
| CollationElementIterator, RuleBasedCollator, Collator,
| CollationKey, DateFormat, DateFormatSymbols,
| DecimalFormat, DecimalFormatSymbols, NumberFormat,
| SimpleDateFormat, StringCharacterIterator.
|
| * classes unavailable in ICU: Annotation,
| AttributedCharacterIterator, AttributedString, Bidi,
| ChoiceFormat, FieldPosition, MessageFormat,
| MessageFormat.Field, NumberFormat.Field,
| ParsePosition, ParseException.
|
| Concerning shared classes:
|
| * BreakIterator: all methods implemented.
| * CollationElementIterator: all methods implemented.
| * RuleBasedCollator: rules slightly different (possibility of putting
| '&' in front of rules). Besides that all methods implemented.
| * Collator: FULL_DECOMPOSITION is missing. All methods implemented.
| * CollationKey: constructors are public unlike JDK's. All methods
| implemented.
| * DateFormat: no Field subclass. All methods implemented.
| * DateFormatSymbols: All methods implemented.
| * DecimalFormat: formatToCharacterIterator, getCurrency are missing.
| * DecimalFormatSymbols: get/setCurrency are missing.
| * NumberFormat: Field is missing.
| * SimpleDateFormat: format prototype is different (Date for JDK,
| Calendar for ICU). formatToCharacterIterator is missing. parse is
| different.
| * StringCharacterIterator is deprecated in ICU.
|
| Other interesting features of ICU:
| * More calendars: Gregorian, Hebrew, Islamic, Japanese, BuddhistCalendar.
| * Calendar: all methods implemented.
|

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFAeCEvWRk4qbNiTwgRAnRQAJ91tghsgPLozR9GtXRf0C9FlncDvwCfatN2
/NgGI0OXxzqybG23Jy8UBOk=
=MZhr
-----END PGP SIGNATURE-----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]