00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifdef ICU
00019
00020 #ifndef UTF8TRANSLITERATOR_H
00021 #define UTF8TRANSLITERATOR_H
00022
00023 enum scriptEnum {SE_OFF, SE_LATIN, SE_GREEK, SE_HEBREW, SE_CYRILLIC, SE_ARABIC, SE_KANA, SE_JAMO, SE_HANGUL, SE_DEVANAGARI, SE_TAMIL, SE_BENGALI, SE_GURMUKHI, SE_GUJARATI, SE_ORIYA, SE_TELUGU, SE_KANNADA, SE_MALAYALAM};
00024
00025
00026 #define NUMSCRIPTS 18
00027
00028 #include <swfilter.h>
00029
00030 #include <defs.h>
00031
00034 class SWDLLEXPORT UTF8Transliterator : public SWFilter
00035 {
00036 char option;
00037
00038 static const char optionstring[][NUMSCRIPTS];
00039
00040 static const char optName[];
00041 static const char optTip[];
00042 OptionsList options;
00043 public:
00044 UTF8Transliterator ();
00045 virtual ~ UTF8Transliterator ();
00046 virtual char ProcessText (char *text, int maxlen, const SWKey * key);
00047 virtual const char *getOptionName ()
00048 {
00049 return optName;
00050 }
00051 virtual const char *getOptionTip ()
00052 {
00053 return optTip;
00054 }
00055 virtual void setOptionValue (const char *ival);
00056 virtual const char *getOptionValue ();
00057 virtual OptionsList getOptionValues ()
00058 {
00059 return options;
00060 }
00061 };
00062
00063 #endif
00064
00065 #endif