Crossware

Table of Contents        Previous topic       Next topic       

C++ COMPILER LIBRARY FUNCTIONS->String Class Functions->Member Functions->substr

#include <string>

string substr(size_t pos = 0, size_t n = npos) const

Return a string whose length is the smaller of n and size() and whose contents are copied from position pos onwards.