[Haskell-cafe] Re: [ANN] text 0.7, fast Unicode text

Bryan O'Sullivan bos at serpentine.com
Wed Dec 16 00:22:50 EST 2009

On Tue, Dec 15, 2009 at 8:03 PM, Ashley Yakeley <ashley at semantic.org> wrote:

> How do you pack Unicode codepoints into Word16? Do you use UTF-16?

You don't get to find out as a user of the Text API, but yes.

> Supposing -
>  s = "\x010A60\x010A61" -- Old South Arabian script
>  t = pack s
> Is (unpack t) the same as s? What is (length t)?

Yes, and 2. Any other answer would clearly be wrong (I'm lookin' at you,
Java and C#) :-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20091215/378f0515/attachment.html

More information about the Haskell-Cafe mailing list