DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
No More String Errors - String(C++)

Operations

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.


Next topic: Basic Operations
Previous topic: Declarations

© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005