how in c++ am i able to filter a string? my small app allows someone to enter in some text, im looking to filter out unneeded letters/characters, characters such as '\,<".< and so on, what is the best way to do this?
apart from adding the characters / symbols i want to remove (theres alot including foreign characters), how would i make it just accept "0-9 a-z A-Z _" and any other characters are removed? whats the best and fastest method for doing so?
final is of type std::string which does not work for strcpy. Also, how can stringupdated know how big to be? Just return final from the function. I updated my post.