shorter way to represent alphabet
Hey everyone i have a piece of code here that i typed out all the letters of the alphabet.
however with the exception of the ' and the trailing space in the set the rest is the alphabet. is there a shorter way to represent this? the reason i ask is because i dont like the long statement in my code. I know there are things like isalpha() etc but i dont know if there is a similar representation for situations like this.
string::size_type pos = name.find_first_not_of("qwertyuiopasdfghjklzxcvbnm'QWERTYUIOPASDFGHJKLZXCVBNM " );
if not then i guess i would have to live with it like this:
string::size_type pos = name.find_first_not_of
("qwertyuiopasdfghjklzxcvbnm' QWERTYUIOPASDFGHJKLZXCVBNM" );