class UTF8Encoder
Required header: <Eclog/UTF8Encoder.h>
The UTF8Encoder class represents a UTF-8 encoder.
Name | Description |
---|---|
(constructor) | Constructor. |
putChar | Inserts a Unicode character into the stream. |
explicit UTF8Encoder(OutputStream& os);
Constructs a UTF8Encoder.
OutputStream&
os The UTF-8 encoded stream to write to.
void putChar(int ch);
void putChar(int ch, ErrorCode& ec);
Inserts Unicode character ch into the stream.
int
ch Unicode code point.
ErrorCode&
ec Set to indicate what error occurred, if any.