[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: newbie question - strings and arrays
- From: David Given <dg@...>
- Date: Thu, 13 Oct 2005 16:03:59 +0100
On Thursday 13 October 2005 15:47, Chris Marrin wrote:
[...]
> This would work fine for ASCII, and maybe even for Latin1 in some cases.
> But if your string is UTF8, then you will possibly be getting
> intermediate bytes.
Well, yeah; Lua strings are defined to be, er, defined in terms of bytes. This
would work (or fail to) to exactly the same extent as all the rest of Lua's
strings.
[...]
> My Fusion package will have a Javascript String object which will make
> strings look like Unicode sequences and will support character indexing
> as well as things like split, join and substring.
Um. While a reasonable String class would be valuable, I'm not filled with
confidence with the idea of one based on the Javascript libraries; see the
archives for my opinions of the Javascript library system in general.
Although I'll admit that String isn't too bad; it's Array that's really
unspeakable. But this is a rant for another time.
--
+- David Given --McQ-+ "Information wants to be free, but my mail client
| dg@cowlark.com | does not want to be chock-full of herbal pot
| (dg@tao-group.com) | alternative spam." --- Sant Lupus on Slashdot
+- www.cowlark.com --+
Attachment:
pgpv5ZVJnij79.pgp
Description: PGP signature