1. 程式人生 > >string c++詳解 find_first_not_of() find_first_of()

string c++詳解 find_first_not_of() find_first_of()

Searches the string for any of the characters that are part of eitherstr,s or c, and returns the position of the first occurrence in the string.

When pos is specified the search only includes characters on or after positionpos, ignoring any possible occurrences at previous character positions.

Notice that for a match to happen it is enough that one of the characters matches in the string (any of them). To search for an entire sequence of characters use