]> git.tdb.fi Git - libs/core.git/blob - source/iso646fi.h
885015a1abd3169cbf28872b986cb7e9406aa0f2
[libs/core.git] / source / iso646fi.h
1 #ifndef MSP_STRINGS_ISO646FI_H_
2 #define MSP_STRINGS_ISO646FI_H_
3
4 #include "codec.h"
5
6 namespace Msp {
7
8 class Iso646Fi: 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