I wanted to build a program that will check a user entry against a preset list of words and phrases to see if it exists (and if not, add it). I want to use STL containers and algorithms to do this, and so I started to use a vector<string> to hold the entries, however I can't figure out how to get around the capital and lowercase letters. I was planning on converting all of the entries and the user entry to either all caps or lowercase in an iteration, in the background, but can't figure it out.
1. Would this be the simplest/most efficient method?
2. How would you convert a whole vector to all caps or all lower case using STL algorithms?