3 This file is part of libmspstrings
4 Copyright © 2006-2007 Mikko Rasa
5 Distributed under the LGPL
15 void Iso646Fi::Encoder::encode_char(UnicodeChar ch, string &buf)
17 if((ch>=0 && ch<=0x5A) || ch==0x5F || (ch>=0x61 && ch<=0x7A))
38 error(ch, buf, "Can't express character in ISO-646-FI");
41 void Iso646Fi::Encoder::transliterate(UnicodeChar, string &buf)
47 UnicodeChar Iso646Fi::Decoder::decode_char(const string &str, string::const_iterator &i)
50 return error("No input");
53 UnicodeChar result=-1;
75 result=error("Undefined ISO-646-FI character");