39 #ifndef BLOCXX_CHAR16_HPP_INCLUDE_GUARD_
40 #define BLOCXX_CHAR16_HPP_INCLUDE_GUARD_
41 #include "blocxx/BLOCXX_config.h"
49 namespace BLOCXX_NAMESPACE
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);