Andrei Alexandrescu wrote:
Yah, I definedenum CaseSensitive { no, yes }
Minor nitpick: there are lots of different ways to canonicalize text before performing a comparison. Ascii case conversions are just one way.
Instead of an enum with a yes/no value, what about future-proofing it with something more along the lines of...
enum CaseSensitivity {
None, Ascii, UnicodeChar, UnicodeSurrogatePair
}
...or something like that.
The yes/no enum will outlive its usefulness before long.
--benji
