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

Re: The internal string API

Thread Previous | Thread Next
Dan Sugalski
June 19, 2001 14:55
Re: The internal string API
Message ID:
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.


--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai                         have teddy bears and even
                                      teddy bears get drunk

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About