PS: The feature I’m interested in here is kIgnoreCase, otherwise a plain “==” would of course do the job.
Adding a new operator for that specific case, e.g. “=~” would be nice too.
Cheers,
Z
[quote=“Zesp”]PS: The feature I’m interested in here is kIgnoreCase, otherwise a plain “==” would of course do the job.
Adding a new operator for that specific case, e.g. “=~” would be nice too.
Cheers,
Z[/quote]
C++ does not have ‘=~’ operator )) These are two operators.
Of course, you can overload ‘~’ to return something different from TString and ‘=’ which accepts such an object and instead of assignment does case-insensitive comparison.
But such a code will be too obfuscated.