Go to the documentation of this file.
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);
ostream & operator<<(ostream &ostrm, const Bool &arg)
Insert the string representation of a Bool object into a given stream.
The Char16 class is an abstraction for a double byte character.
void readObject(std::streambuf &istrm)
Read this object from an input stream.
String toUTF8() const BLOCXX_DEPRECATED
Deprecated in favor of toString()
void write(std::streambuf &ostrm, void const *dataOut, size_t dataOutLen)
void writeObject(std::streambuf &ostrm) const
Write this object to an output stream.
void read(std::streambuf &istrm, void *dataIn, size_t dataInLen)
UInt16 UTF8toUCS2(const char *utf8char)
Convert one UTF-8 char (possibly multiple bytes) into a UCS2 16-bit char.
Char16()
Create a new Char16 object with a value of zero.
String UCS2toUTF8(UInt16 ucs2char)
Convert one UCS2 16-bit char into a UTF-8 char (possibly multiple bytes)
String toString() const
Convert this to UTF8.