Switch ignores case (?)
Chris via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Nov 24 02:29:56 PST 2016
On Thursday, 24 November 2016 at 10:12:40 UTC, ketmar wrote:
>
> thanks. tbh, i am surprised myself -- it is completely fubared,
> but nobody noticed. maybe that says something about real-world
> useability of dstring/wstring... ;-)
Well, I came across it, because I wanted to work around
autodecode, our old "friend" (who need enemies, if you have a
friend like that?). Except, it doesn't work as expected.
For my needs, I can work around it with `(c == "\u2019")`,
because switch works for the rest of the (common) cases like full
stop, question mark etc. The whole string handling issue in D
needs to be fixed asap, because text processing is one of _the_
big things in IT these days. Think of all the data harvesting and
evaluation and whatnot.
More information about the Digitalmars-d-learn
mailing list