develooper Front page | perl.perl6.internals | Postings from June 2001

Re: The internal string API

Thread Previous | Thread Next
From:
Dan Sugalski
Date:
June 19, 2001 14:55
Subject:
Re: The internal string API
Message ID:
5.1.0.14.0.20010619173845.0200daf0@24.8.96.48
At 04:08 PM 6/19/2001 -0500, David L. Nicol wrote:
>Dan Sugalski wrote:
> > Hong Zhang wrote:
> >
> > > I don't see the core should support language/locale in this detail.
> > > I deal a lot of mix chinese/english text file. There is no way to 
> represent
> > > it using plain string, unless you want to make string be rich-format-text
> > > -buffer. Current locale or explicit locale parameter will suffice 
> your goal.
> >
> > On the other hand, the case of mixed-data strings was one that hadn't
> > occurred to me. With that in mind, it's a far less useful thing to tag data
> > with.
>
>If the internal string API is a tree instead of a contiguous memory block,
>the tagging could be done at the node or branch level.
>
>Besides, you get nondestructive inserts.

Yup. The only problem is that it makes the string data significantly more 
complex. I don't think it's a win for raw data. Perhaps for fancier data 
it'd work.

					Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
dan@sidhe.org                         have teddy bears and even
                                      teddy bears get drunk


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About