basic_string::substr - C++ Reference - cplusplus.com - The C++ Resources Network
Returns a newly constructed basic_string object with its value initialized to a copy of a substring of this object. The substring is the portion of the object that starts at character position pos and spans len characters (or until the end of the string, ...