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