On Fri, Sep 08, 2006 at 04:49:49PM -0400, Alvaro Herrera wrote: > Actually he muttered something about iterators, and not needing to > convert anything.
Yes, many of the useful functions accept strings in two forms, either UTF-16 or CharacterIterators. The iterator pretty much only has to know how to step forward through the string and return the code point at each point. Here's the docs for C++ class, but there's a equivalent C interface. http://icu.sourceforge.net/apiref/icu4c/classCharacterIterator.html#_details Have a nice day, -- Martijn van Oosterhout <firstname.lastname@example.org> http://svana.org/kleptog/ > From each according to his ability. To each according to his ability to > litigate.
Description: Digital signature