1 #ifndef MSP_STRINGCODEC_ISO646FI_H_
2 #define MSP_STRINGCODEC_ISO646FI_H_
4 #include <msp/core/mspcore_api.h>
8 namespace StringCodec {
10 class MSPCORE_API Iso646Fi: public StandardCodec<Iso646Fi>
13 class MSPCORE_API Encoder: public Codec::Encoder
16 Encoder(ErrorMode em = DEFAULT): Codec::Encoder(em) { }
18 void encode_char(unichar, std::string &) override;
20 void transliterate(unichar, std::string &) override;
23 class MSPCORE_API Decoder: public Codec::Decoder
26 Decoder(ErrorMode em = DEFAULT): Codec::Decoder(em) { }
28 unichar decode_char(const std::string &, std::string::const_iterator &) override;
31 Iso646Fi(ErrorMode em = DEFAULT): StandardCodec<Iso646Fi>(em) { }
33 const char *get_name() const override { return "ISO-646-FI"; }
36 } // namespace StringCodec