![]() |
• Utility Library | ||||||||||||||||||||||||||||||||||||||||
|
API Links
Developer Links
|
class StringDefined in:
The C4String.hString class template encapsulates a character string having a fixed maximum length.
Definition
Member Functions
Template Parameters
Constructor
Parameters
Description
The String class template can be used to store and manipulate strings. The len parameter establishes the maximum length of the string, excluding the null terminator. If the len parameter is zero (the default if the parameter is not specified), then the string has unlimited length, and allocation for the memory used by the string is automatically managed.If the len parameter is not zero, then the default constructor leaves the contents of the string undefined (and unterminated). If the len parameter is zero, then the String object is initially set to the empty string.String objects can always be implicitly converted to a pointer to char and thus can be accepted by any function expecting a parameter of type char *. In addition to the member functions of the String class, the Text namespace contains several functions that are useful for manipulating character strings.
Overloaded Operators
See Also
|