version 1.19, 2005/04/07 20:00:16
|
version 1.20, 2005/10/17 20:51:56
|
|
|
#include <cctype> | #include <cctype> |
#include "Char16.h" | #include "Char16.h" |
| |
#ifdef PEGASUS_PLATFORM_SOLARIS_SPARC_CC |
|
PEGASUS_USING_STD; |
|
#endif |
|
|
|
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
Char16::Char16() |
|
: _code(0) |
|
{ |
|
} |
|
|
|
Char16::Char16(Uint16 x) |
|
: _code(x) |
|
{ |
|
} |
|
|
|
Char16::Char16(const Char16& x) |
|
: _code(x._code) |
|
{ |
|
} |
|
|
|
Char16::~Char16() |
|
{ |
|
} |
|
|
|
Char16& Char16::operator=(Uint16 x) |
|
{ |
|
_code = x; |
|
return *this; |
|
} |
|
|
|
Char16& Char16::operator=(const Char16& x) |
|
{ |
|
_code = x._code; |
|
return *this; |
|
} |
|
|
|
Char16::operator Uint16() const |
|
{ |
|
return _code; |
|
} |
|
|
|
Boolean operator==(const Char16& x, const Char16& y) |
|
{ |
|
return Uint16(x) == Uint16(y); |
|
} |
|
|
|
Boolean operator==(const Char16& x, char y) |
|
{ |
|
return Uint16(x) == Uint16(y); |
|
} |
|
|
|
Boolean operator==(char x, const Char16& y) |
|
{ |
|
return Uint16(x) == Uint16(y); |
|
} |
|
|
|
Boolean operator!=(const Char16& x, const Char16& y) |
|
{ |
|
return Uint16(x) != Uint16(y); |
|
} |
|
|
|
Boolean operator!=(const Char16& x, char y) |
|
{ |
|
return Uint16(x) != Uint16(y); |
|
} |
|
|
|
Boolean operator!=(char x, const Char16& y) |
|
{ |
|
return Uint16(x) != Uint16(y); |
|
} |
|
|
|
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |