I have a wstring (or wchar_t, whichever fits better), I want to compare it to 6 possible strings (which half of it is dynamic, not constant) with single IF statement (if possible). I want to know what's best approach for doing it, instead of several lines and lots of building strings and variables. I want to know professional/shortest/fastest/best way.
In nutshell, I want to do this: If MyStr was equal to :
MyCurrentFolder() + "test" OR MyCurrentFolder() + "test," OR MyCurrentFolder() + "test, " OR "test" OR "test, " OR "test," do something...
Please advice.
MyCurrentFolder()guaranteed to contain at leas one character not in those suffixes? Like/or\?