#include <Char16.hpp>
Public Types | |
typedef UInt16 Char16::* | safe_bool |
Public Member Functions | |
Char16 () | |
Create a new Char16 object with a value of zero. | |
Char16 (const Char16 &arg) | |
Copy constructor. | |
Char16 (char c) | |
Create a new Char16 object from a single byte character. | |
Char16 (const String &x) | |
Create a new Char16 object from the 1st byte of a string. | |
Char16 (UInt16 val) | |
Create a new Char16 object of an unsigned 16 bit value. | |
Char16 (Int16 val) | |
Create a new Char16 object of an signed 16 bit value. | |
Char16 (UInt8 val) | |
Create a new Char16 object of an unsigned 8 bit value. | |
Char16 (Int8 val) | |
Create a new Char16 object of an signed 8 bit value. | |
Char16 (UInt32 val) | |
Create a new Char16 object of an unsigned 32 bit value. | |
Char16 (Int32 val) | |
Create a new Char16 object of an signed 32 bit value. | |
Char16 (UInt64 val) | |
Create a new Char16 object of an unsigned 64 bit value. | |
Char16 (Int64 val) | |
Create a new Char16 object of an signed 64 bit value. | |
Char16 (Real32 val) | |
Create a new Char16 object from a real 32 value. | |
Char16 (Real64 val) | |
Create a new Char16 object from a real 64 value. | |
Char16 (Bool val) | |
Create a new Char16 object from a boolean value. | |
UInt16 | getValue () const |
operator UInt16 () const | |
Char16 & | operator= (const Char16 &arg) |
Assignment operator. | |
bool | operator== (const Char16 &arg) const |
Equality operator. | |
bool | operator!= (const Char16 &arg) const |
Inequality operator. | |
bool | operator< (const Char16 &arg) const |
Less than operator. | |
bool | operator<= (const Char16 &arg) const |
Less than or equal operator. | |
bool | operator> (const Char16 &arg) const |
Greater than operator. | |
bool | operator>= (const Char16 &arg) const |
Greater than or equal operator. | |
Char16 & | operator+= (const Char16 &arg) |
Add another Char16 object to this one. | |
Char16 & | operator-= (const Char16 &arg) |
Subtract another Char16 object from this one. | |
Char16 & | operator *= (const Char16 &arg) |
Multiply this Char16 object by another. | |
Char16 & | operator/= (const Char16 &arg) |
Divide this Char16 object by another. | |
operator safe_bool () const | |
bool | operator! () const |
Negation operator. | |
String | toString () const |
Convert this to UTF8. | |
void | writeObject (std::ostream &ostrm) const |
Write this object to an output stream. | |
void | readObject (std::istream &istrm) |
Read this object from an input stream. | |
Private Attributes | |
UInt16 | m_value |
Definition at line 54 of file Char16.hpp.
|
Definition at line 249 of file Char16.hpp. |
|
Create a new Char16 object with a value of zero.
Definition at line 60 of file Char16.hpp. |
|
Copy constructor.
Definition at line 65 of file Char16.hpp. |
|
Create a new Char16 object from a single byte character.
Definition at line 70 of file Char16.hpp. |
|
Create a new Char16 object from the 1st byte of a string.
Definition at line 59 of file Char16.cpp. References BLOCXX_NAMESPACE::String::c_str(), m_value, and BLOCXX_NAMESPACE::UTF8Utils::UTF8toUCS2(). |
|
Create a new Char16 object of an unsigned 16 bit value. Note that this constructor is intentionally non-explicit, because implicit conversion from UInt16 is desireable for this class.
Definition at line 83 of file Char16.hpp. |
|
Create a new Char16 object of an signed 16 bit value.
Definition at line 88 of file Char16.hpp. |
|
Create a new Char16 object of an unsigned 8 bit value.
Definition at line 93 of file Char16.hpp. |
|
Create a new Char16 object of an signed 8 bit value.
Definition at line 98 of file Char16.hpp. |
|
Create a new Char16 object of an unsigned 32 bit value.
Definition at line 103 of file Char16.hpp. |
|
Create a new Char16 object of an signed 32 bit value.
Definition at line 108 of file Char16.hpp. |
|
Create a new Char16 object of an unsigned 64 bit value.
Definition at line 113 of file Char16.hpp. |
|
Create a new Char16 object of an signed 64 bit value.
Definition at line 118 of file Char16.hpp. |
|
Create a new Char16 object from a real 32 value.
Definition at line 123 of file Char16.hpp. |
|
Create a new Char16 object from a real 64 value.
Definition at line 128 of file Char16.hpp. |
|
Create a new Char16 object from a boolean value.
Definition at line 133 of file Char16.hpp. |
|
Definition at line 137 of file Char16.hpp. Referenced by BLOCXX_NAMESPACE::operator *(), BLOCXX_NAMESPACE::operator!=(), BLOCXX_NAMESPACE::operator+(), BLOCXX_NAMESPACE::operator-(), BLOCXX_NAMESPACE::operator/(), BLOCXX_NAMESPACE::operator<<(), and BLOCXX_NAMESPACE::operator==(). |
|
Multiply this Char16 object by another.
Definition at line 233 of file Char16.hpp. References m_value. |
|
Definition at line 250 of file Char16.hpp. References m_value. |
|
Definition at line 141 of file Char16.hpp. |
|
Negation operator.
Definition at line 256 of file Char16.hpp. |
|
Inequality operator.
Definition at line 166 of file Char16.hpp. References m_value. |
|
Add another Char16 object to this one.
Definition at line 213 of file Char16.hpp. References m_value. |
|
Subtract another Char16 object from this one.
Definition at line 223 of file Char16.hpp. References m_value. |
|
Divide this Char16 object by another.
Definition at line 243 of file Char16.hpp. References m_value. |
|
Less than operator.
Definition at line 175 of file Char16.hpp. References m_value. |
|
Less than or equal operator.
Definition at line 185 of file Char16.hpp. References m_value. |
|
Assignment operator.
Definition at line 147 of file Char16.hpp. References m_value. |
|
Equality operator.
Definition at line 157 of file Char16.hpp. References m_value. |
|
Greater than operator.
Definition at line 194 of file Char16.hpp. References m_value. |
|
Greater than or equal operator.
Definition at line 204 of file Char16.hpp. References m_value. |
|
Read this object from an input stream.
|
|
Convert this to UTF8.
Definition at line 66 of file Char16.cpp. References m_value, and BLOCXX_NAMESPACE::UTF8Utils::UCS2toUTF8(). Referenced by BLOCXX_NAMESPACE::StringBuffer::operator+=(). |
|
Write this object to an output stream.
|
|
Definition at line 273 of file Char16.hpp. Referenced by Char16(), operator *=(), operator safe_bool(), operator!=(), operator+=(), operator-=(), operator/=(), operator<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), and toString(). |