39#include "blocxx/BLOCXX_config.h"
47#ifdef BLOCXX_HAVE_OSTREAM
93 if (val > 0 && val <= 127)
95 ostrm << static_cast<char>(val);
101 sprintf(bfr,
"\\x%04X", val);
The Char16 class is an abstraction for a double byte character.
void readObject(std::streambuf &istrm)
Read this object from an input stream.
String toString() const
Convert this to UTF8.
Char16()
Create a new Char16 object with a value of zero.
void writeObject(std::streambuf &ostrm) const
Write this object to an output stream.
String toUTF8() const BLOCXX_DEPRECATED
Deprecated in favor of toString()
This String class is an abstract data type that represents as NULL terminated string of characters.
const char * c_str() const
void read(std::streambuf &istrm, void *dataIn, size_t dataInLen)
void write(std::streambuf &ostrm, void const *dataOut, size_t dataOutLen)
String UCS2toUTF8(UInt16 ucs2char)
Convert one UCS2 16-bit char into a UTF-8 char (possibly multiple bytes)
UInt16 UTF8toUCS2(const char *utf8char)
Convert one UTF-8 char (possibly multiple bytes) into a UCS2 16-bit char.
ostream & operator<<(ostream &ostrm, const Bool &arg)