Substring
is part of the C ++ standard library.
string x = "abc"; string y = x.substr(1, 2);
Not quite sure that I know what strpos does, but on the condition that it finds the position of the character in a string or similar, and then standard.
string x = "abc"; string::size_type p = x.find('b');
Regular expressions can be found in the cross-platform acceleration library, http://boost.org .
source share