39 #ifndef BLOCXX_CHAR16_HPP_INCLUDE_GUARD_ 40 #define BLOCXX_CHAR16_HPP_INCLUDE_GUARD_ 41 #include "blocxx/BLOCXX_config.h" 72 explicit Char16(
char c) : m_value(c) {}
90 explicit Char16(Int16 val) : m_value(val) {}
105 explicit Char16(UInt32 val) : m_value(val) {}
110 explicit Char16(Int32 val) : m_value(val) {}
115 explicit Char16(UInt64 val) : m_value(static_cast<UInt16>(val)) {}
120 explicit Char16(Int64 val) : m_value(static_cast<UInt16>(val)) {}
125 explicit Char16(Real32 val) : m_value(static_cast<UInt16>(val)) {}
130 explicit Char16(Real64 val) : m_value(static_cast<UInt16>(val)) {}
143 operator UInt16()
const {
return getValue(); }
265 void writeObject(
std::streambuf & ostrm) const;
270 void readObject(
std::streambuf & istrm);
276 inline
bool operator== (
char c, const Char16& arg)
278 return Char16(c) == arg;
332 BLOCXX_COMMON_API std::ostream&
operator<< (std::ostream& ostrm,
const Char16& arg);
Array<> wraps std::vector<> in COWReference<> adding ref counting and copy on write capability...
BLOCXX_EXPORT_TEMPLATE(BLOCXX_COMMON_API, Array, Bool)
bool operator!=(const Array< T > &x, const Array< T > &y)
Determine two Arrays are not equal.
Char16(Real64 val)
Create a new Char16 object from a real 64 value.
The Bool class is an abstraction for the boolean data type.
Char16(Real32 val)
Create a new Char16 object from a real 32 value.
const UInt32 INFINITE_TIMEOUT BLOCXX_DEPRECATED
Value that means infinite timeout.
Char16(Int32 val)
Create a new Char16 object of an signed 32 bit value.
Char16(char c)
Create a new Char16 object from a single byte character.
This String class is an abstract data type that represents as NULL terminated string of characters...
#define BLOCXX_SAFE_BOOL_IMPL(classname, type, variable, test)
Char16 operator+(const Char16 &arg1, const Char16 &arg2)
bool operator<=(const Array< T > &x, const Array< T > &y)
Determine if one Array is less than or equal to another.
Char16 operator*(const Char16 &arg1, const Char16 &arg2)
Char16 operator-(const Char16 &arg1, const Char16 &arg2)
Char16(const Char16 &arg)
Copy constructor.
Char16 operator/(const Char16 &arg1, const Char16 &arg2)
Char16(Int16 val)
Create a new Char16 object of an signed 16 bit value.
Char16(Bool val)
Create a new Char16 object from a boolean value.
Char16(Int64 val)
Create a new Char16 object of an signed 64 bit value.
bool operator==(const Array< T > &x, const Array< T > &y)
ostream & operator<<(ostream &ostrm, const Bool &arg)
Insert the string representation of a Bool object into a given stream.
bool operator>(const Array< T > &x, const Array< T > &y)
Determine if one Array is greater than another.
Char16(UInt16 val)
Create a new Char16 object of an unsigned 16 bit value.
Char16(UInt64 val)
Create a new Char16 object of an unsigned 64 bit value.
bool operator>=(const Array< T > &x, const Array< T > &y)
Determine if one Array is greater than or equal to another.
Char16(UInt8 val)
Create a new Char16 object of an unsigned 8 bit value.
bool operator<(const Array< T > &x, const Array< T > &y)
Char16(Int8 val)
Create a new Char16 object of an signed 8 bit value.
The Char16 class is an abstraction for a double byte character.
Char16(UInt32 val)
Create a new Char16 object of an unsigned 32 bit value.
Char16()
Create a new Char16 object with a value of zero.