Sorting User Input

Hey,

I'd like to take input from the user and sort that input to determine which function to all next. I am having trouble finding a clear description of how this can be done. For example, if a user types "quit" or "Quit" or "QUIT" or "QUit" I want the program to recognize these as all the same input and call a function commands::quit();

Any help pointing me in the right direction would be greatly appreciated. I think part of my trouble in finding the appropriate help articles is that I am not sure what to call this process.
From the top of my head, stricmp() does string comparison in a case-insensitive manner. Don't know the C++ counterpart with std::string and such.
AFAIK there is no case insensitive comparison for std::strings. You'd probably want to convert the input to lower case before comparing.
Topic archived. No new replies allowed.