Switch ignores case (?)
ketmar via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Nov 23 13:41:39 PST 2016
On Wednesday, 23 November 2016 at 21:31:08 UTC, Steven
Schveighoffer wrote:
> I think it makes the most sense to remove the memcmp, and do
> binary search based on actual char values.
yeah. there is wmemcmp, which can be used to speed up one of the
cases ('cause wchar_t has different size on windows and
GNU/Linux), as i did in my hackfix. yet i am not sure that
wmemcmp is really there on windows in all C runtimes (hence
HACKfix ;-).
More information about the Digitalmars-d-learn
mailing list