Given:
std::string s1 = "Brown, III, Fred B.";
I need to (1) determine that there are 2 commas in this string and (2)
remove the first comma from the string so that it contains
"Brown III, Fred B.".
Presently, I parse the CSV elements into a vector, determine that
there are 3 elements, and rebuild the string without the first comma.
Much work and overhead for what I think this problem needs. 8<{{
I'm seeking some other way(s) to do this, perhaps using string::find
or something. However, there's no "find_next_of" in the STL, so this
doesn't work. Please advise. TIA
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus