[email protected]
[Top] [All Lists]

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

Subject: [Haskell-cafe] Re: [ANN] text 0.7, fast Unicode text
From: "Bryan O'Sullivan"
Date: Tue, 15 Dec 2009 21:22:50 -0800
On Tue, Dec 15, 2009 at 8:03 PM, Ashley Yakeley <[email protected]> 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#) :-)
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe
<Prev in Thread] Current Thread [Next in Thread>