Skip to content

Latest commit

 

History

History
48 lines (29 loc) · 833 Bytes

UTF8Encoder.md

File metadata and controls

48 lines (29 loc) · 833 Bytes

UTF8Encoder

class UTF8Encoder

Required header: <Eclog/UTF8Encoder.h>

The UTF8Encoder class represents a UTF-8 encoder.

Member functions

Name Description
(constructor) Constructor.
putChar Inserts a Unicode character into the stream.

(constructor)

explicit UTF8Encoder(OutputStream& os);

Constructs a UTF8Encoder.

Parameters

OutputStream& os The UTF-8 encoded stream to write to.


putChar

void putChar(int ch);
void putChar(int ch, ErrorCode& ec);

Inserts Unicode character ch into the stream.

Parameters

int ch Unicode code point.

ErrorCode& ec Set to indicate what error occurred, if any.