[review] new string type

Simon s.d.hammett at gmail.com
Fri Dec 3 10:33:51 PST 2010


On 03/12/2010 18:29, Steven Schveighoffer wrote:
> On Fri, 03 Dec 2010 11:15:36 -0500, spir <denis.spir at gmail.com> wrote:
>
> Indexing a string is rare, unless you are parsing something (yes it does
> truly depend on the domain),

In my XP you never index *especially* when parsing.
Every parser I've written & used treats input as a character stream.

XML & D for instance permit code points > 0x7x which means you must 
decode them properly when using utf-8, even if you are going to be 
storing the input back as utf-8.

-- 
My enormous talent is exceeded only by my outrageous laziness.
http://www.ssTk.co.uk


More information about the Digitalmars-d mailing list