7.3 Strings

The CString class provides support for manipulating strings. It is intended to replace and extend the functionality normally provided by the C run-time library string package.

A CString object represents a sequence of a variable number of characters. CString objects can be thought of as arrays of single-byte characters.

A CString object can store up to 32,766 characters. The normal C char data type is used to get or set individual characters inside a CString object. CString objects are automatically growable (that is, you don't have to worry about growing a CString object to fit longer strings). A CString object also can act like a literal C-style string (a pointer to const char).