Table of Contents Previous topic Next topic
C++ COMPILER LIBRARY FUNCTIONS->String Class Functions->Member Functions->append
#include <string>
string& append(const string& str)
Appends the data of string str to the data.
Returns a reference to the string to which the data has been appended.
string& append(const string& str, size_t pos, size_t n)
Appends the data of string str to the data starting with str[pos]. The amount of data appended is the smaller of n and str.size() pos.
Returns a reference to the string to which the data has been appended.
string& append(const char* s, size_t n)
Appends the array of char of length n with a first element s to the data.
Returns a reference to the string to which the data has been appended.
string& append(const char* s)
Appends the array of char of length strlen(s) with a first element s to the data.
Returns a reference to the string to which the data has been appended.
string& append(size_t n, char c)
Appends n copies of the character c to the data.
Returns a reference to the string to which the data has been appended.