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

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

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004