Making all strings UTF ranges has some risk of WTF
Ben Hanson
Ben.Hanson at tfbplc.co.uk
Thu Feb 4 03:06:24 PST 2010
Andrei Alexandrescu Wrote:
> Walter Bright wrote:
> > Andrei Alexandrescu wrote:
> >> Oh, one more thing: doing mixed-width searches would require decoding.
> >
> > Or a conversion before the loop starts of the search term.
>
> That triggers memory allocation plus the same cost. It's not likely to
> work any better.
>
> Andrei
Exactly. Please don't go down the route that Microsoft did for regex case insensitive searching (at least when I last looked at it) - they made the *input string* all lower case... D'oh!
Regards,
Ben
More information about the Digitalmars-d
mailing list