]> git.tdb.fi Git - libs/core.git/blob - source/latin1.h
Initial upload
[libs/core.git] / source / latin1.h
1 #ifndef MSP_STRINGS_LATIN1_H_
2 #define MSP_STRINGS_LATIN1_H_
3
4 #include "codec.h"
5
6 namespace Msp {
7
8 class Latin1: public StringCodec
9 {
10 public:
11         class Encoder: public StringCodec::Encoder
12         {
13         public:
14                 void encode_char(wchar_t);
15         };
16
17         class Decoder: public StringCodec::Decoder
18         {
19         public:
20                 void decode_char(const std::string &, std::string::const_iterator &);
21         };
22
23         Encoder *create_encoder() const { return new Encoder; }
24         Decoder *create_decoder() const { return new Decoder; }
25 };
26
27 } // namespace Msp
28
29 #endif