View previous topic :: View next topic |
Author |
Message |
kris
Joined: 27 Mar 2004 Posts: 1494 Location: South Pacific
|
Posted: Fri Nov 26, 2004 12:10 pm Post subject: ICU Bindings |
|
|
ICU Unicode processing is now available for D, over here: http://www.dsource.org/forums/viewtopic.php?t=420
Currently included:
Character classification
Conversion to and from UTF16, via all the supported transcoders
Preliminary Locale support
Number formatting, and parsing
Resource bundles
UnicodeString class
Message formatting
Numeric spellout
Calendars
Date & time formatting, and parsing
Preliminary time zone support
Character properties
String searching
Text-boundary analysis
Transliteration (with issues)
Normalization
StringPrep
International domain names
Collation
Unicode Set
I'd like to submit this for consideration as part of the ongoing library effort. |
|
Back to top |
|
|
kris
Joined: 27 Mar 2004 Posts: 1494 Location: South Pacific
|
Posted: Fri Nov 26, 2004 12:26 pm Post subject: |
|
|
According to IBM, ICU character-conversion supports over 200 encodings. This appears to be a listing of them http://oss.software.ibm.com/cvs/icu/~checkout~/icu/source/data/mappings/convrtrs.txt
I've hooked these converters into Mango.io, via a set of adapters that blend in seamlessly with the get/put (and <</>>) API. It should be reasonably easy to do something similar with other IO layers also. |
|
Back to top |
|
|
kris
Joined: 27 Mar 2004 Posts: 1494 Location: South Pacific
|
Posted: Fri Nov 26, 2004 12:34 pm Post subject: |
|
|
Another thing to note: the ICU bindings provides extensive numeric and date/time formatting, with optional localization, resource-bundles, and rule-processing enabled.
These formatters can also parse their own dog-food, so round-tripping is a breeze. |
|
Back to top |
|
|
|