1 #ifndef MSP_STRINGS_UTF8_H_
2 #define MSP_STRINGS_UTF8_H_
8 class Utf8: public StringCodec
11 class Encoder: public StringCodec::Encoder
14 void encode_char(wchar_t);
17 class Decoder: public StringCodec::Decoder
20 Decoder(): bytes(0), code(0) { }
21 void decode_char(const std::string &, std::string::const_iterator &);
29 Encoder *create_encoder() const { return new Encoder; }
30 Decoder *create_decoder() const { return new Decoder; }