Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

utf8transliterator.h

00001 /*
00002  *
00003  * Copyright 2001 CrossWire Bible Society (http://www.crosswire.org)
00004  *      CrossWire Bible Society
00005  *      P. O. Box 2528
00006  *      Tempe, AZ  85280-2528
00007  *
00008  * This program is free software; you can redistribute it and/or modify it
00009  * under the terms of the GNU General Public License as published by the
00010  * Free Software Foundation version 2.
00011  *
00012  * This program is distributed in the hope that it will be useful, but
00013  * WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * General Public License for more details.
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

Generated at Fri Oct 5 22:45:34 2001 for The Sword Project by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001