- /**
- Encodes a single unicode character. If the character can't be
- represented in this encoding, behavior depends on the error mode
- specified for the encoder:
-
- For THROW_ON_ERROR, an exception is thrown.
-
- For IGNORE_ERRORS, nothing is done.
-
- For TRANSLITERATE, the encoder attempts to select a character or a string
- or characters that closely approximates the non-representable character.
- */
- virtual void encode_char(UnicodeChar ch, std::string &buf) =0;
+ /** Encodes a single unicode character. If the character can't be
+ represented in this encoding, error() should be called. */
+ virtual void encode_char(UnicodeChar ch, std::string &buf) = 0;