#include <awStringShared.h>
Public Member Functions |
|
ConstantCString () | |
ConstantCString (const char *str) | |
ConstantCString (const awString::CString &str) | |
bool | isValid () const |
const awString::CString * | operator-> () const |
const awString::CString & | operator* () const |
bool | operator== (const ConstantCString &rhs) const |
bool | operator!= (const ConstantCString &rhs) const |
bool | operator< (const ConstantCString &rhs) const |
bool | operator== (const DynamicCString &rhs) const |
bool | operator!= (const DynamicCString &rhs) const |
Friends |
|
class | DynamicCString |
AWSTRING_DECL ConstantCString | intern (const awString::CString &) |
ConstantCString | ( | ) | [inline] |
: m_value (0) { }
ConstantCString | ( | const char * | str | ) | [inline] |
{ ConstantCString intr = intern (str); m_value = intr.m_value; }
ConstantCString | ( | const awString::CString & | str | ) | [inline] |
{ ConstantCString intr = intern (str); m_value = intr.m_value; }
bool isValid | ( | ) | const [inline] |
{
return m_value != 0;
}
const awString::CString* operator-> | ( | ) | const [inline] |
{
assert (m_value);
return &(m_value->m_string);
}
const awString::CString& operator* | ( | ) | const [inline] |
{
assert (m_value);
return m_value->m_string;
}
bool operator== | ( | const ConstantCString & | rhs | ) | const [inline] |
{ // A pointer comparison return m_value == rhs.m_value; }
bool operator!= | ( | const ConstantCString & | rhs | ) | const [inline] |
{ // A pointer comparison return m_value != rhs.m_value; }
bool operator< | ( | const ConstantCString & | rhs | ) | const [inline] |
{ // A pointer comparison return m_value < rhs.m_value; }
bool operator== | ( | const DynamicCString & | rhs | ) | const [inline] |
{ // A pointer comparison return m_value == rhs.m_value; }
bool operator!= | ( | const DynamicCString & | rhs | ) | const [inline] |
{ // A pointer comparison return m_value != rhs.m_value; }
friend class DynamicCString
[friend] |
AWSTRING_DECL ConstantCString intern | ( | const awString::CString & | ) | [friend] |