Re: [xml-dev] ANN: Gorille 0.3

From
Rick Jelliffe <>
To
Date
2002-01-11T07:40:37Z
ID
<000f01c19a73$42ef4c60$>
Thread
Re: [xml-dev] ANN: Gorille 0.3
> > Elliotte Rusty Harold wrote:
> > 
> > > It could be worse, though. You could be using C, and trying to decode 
> > > UTF-8. :-)
> > 
> > ?? It's about 10 lines of code, and has been written lots of
> > times now.   

But if your UTF-8 file is a big string, it slows you down for random access:
don't you have to count from the closest known point (unworkable) or maintain 
some kind of chop points (e.g. a list of line deltas). 

At least in UTF-8 you can just count bytes <0x80 to count characters.

Cheers
Rick Jelliffe