|
|
String operations are separated into groups by function. Each operation is listed with one of the variants of its declaration, which shows the return type and one possible calling sequence. The complete set of functions is given in the manual page.
Almost all the operations have several different function declarations, for different kinds of arguments. For example, the function that appends to a String has the following declarations:
String& operator+=(const String& t); String& operator+=(const char* p);
That is, s += t
will append the characters
of
t
to s
, and
s += p
will append the characters pointed to by
p
(up to a null byte) to
s
.