CString Class Reference
#include <String.h>
Public Member Functions
CString () CString (const CString &cstr) ~CString () CString & operator= (const CString &cstr) operator const char * () const Detailed Description
The CString class provides access to an 8-bit String representation.
Constructor & Destructor Documentation
CString::CString ( ) Constructs a CString object with a null string value.
CString::CString ( const CString & cstr )
CString::~CString ( ) Destructs a CString object.
Member Function Documentation
CString::operator const char * ( ) const Gets the CString's data as a C string pointer. IMPORTANT: The returned pointer refers to memory owned by the CString object. The caller must not free this memory. The returned pointer is valid only until the CString object is destructed or reassigned. Use of this operator on a temporary CString object may result in a memory error. For example, this usage is invalid:
const char* cstr = String("Hello").getCString(); printf(cstr);
- Returns:
- Returns a const char pointer to the CString's data.
The documentation for this class was generated from the following file:
- /scratch/rpmbuild.22230.L22270/pegasus/src/Pegasus/Common/String.h