23 #ifndef __ccxx_CString_hxx 24 #define __ccxx_CString_hxx 49 explicit CString(
const char* str);
58 inline const char*
data()
const 63 {
return(reinterpret_cast<const byte_t*>(_str)); }
66 size_t length()
const;
69 inline operator const char*()
const 77 {
return(_str == NULL); }
87 char operator[](
int index)
const;
99 #endif // __ccxx_CString_hxx
bool isNull() const
Test if the string is NULL.
Definition: CString.h++:76
const char * data() const
Get a pointer to the character array.
Definition: CString.h++:58
const byte_t * bytes() const
Get a pointer to the character array, reinterpreted as a byte array.
Definition: CString.h++:62
An integer counter whose value is modified in an atomic fashion.
Definition: AtomicCounter.h++:36
#define COMMONCPP_API
Definition: Common.h++:126
An implicitly shared, reference-counted container for an immutable, NUL-terminated C string...
Definition: CString.h++:39
Definition: AllocationMap.c++:25
unsigned char byte_t
An unsigned 8-bit value.
Definition: Integers.h++:68