(file) Return to Char16.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/Char16.cpp between version 1.19 and 1.20

version 1.19, 2005/04/07 20:00:16 version 1.20, 2005/10/17 20:51:56
Line 39 
Line 39 
 #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


Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2