00001 // 00002 // The Fontaine Font Analysis Project 00003 // 00004 // Copyright (c) 2009 by Edward H. Trager 00005 // All Rights Reserved 00006 // 00007 // Released under the GNU GPL version 2.0 or later. 00008 // 00009 00010 #ifndef ENCODING_INCLUDED 00011 #define ENCODING_INCLUDED 00012 // 00013 // We use some type definitions from Utf8String: 00014 // 00015 #include "Utf8String.h" 00016 00017 // 00018 // Encoding: 00019 // 00020 class Encoding{ 00021 00022 private: 00023 00024 static UTF32 _macRoman[256]; 00025 static UTF32 _macThai[256]; 00026 static UTF32 _macArabic[256]; 00027 static UTF32 _macCentralEuropean[256]; 00028 00029 public: 00030 00031 static UTF32 macRomanToUTF32( unsigned char idx); 00032 static UTF32 macThaiToUTF32 ( unsigned char idx); 00033 static UTF32 macCentralEuropeanToUTF32( unsigned char idx); 00034 00035 }; 00036 00037 #endif