summaryrefslogtreecommitdiff
path: root/include/utf8cantillation.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/utf8cantillation.h')
-rw-r--r--include/utf8cantillation.h37
1 files changed, 9 insertions, 28 deletions
diff --git a/include/utf8cantillation.h b/include/utf8cantillation.h
index c95e0ff..8d2ae9d 100644
--- a/include/utf8cantillation.h
+++ b/include/utf8cantillation.h
@@ -1,5 +1,6 @@
-/*
+/******************************************************************************
*
+ * $Id: utf8cantillation.h,v 1.5 2003/07/05 04:58:42 scribe Exp $
*
* Copyright 1998 CrossWire Bible Society (http://www.crosswire.org)
* CrossWire Bible Society
@@ -20,38 +21,18 @@
#ifndef UTF8CANTILLATION_H
#define UTF8CANTILLATION_H
-#include <swfilter.h>
+#include <swoptfilter.h>
-#include <defs.h>
+SWORD_NAMESPACE_START
/** This Filter shows/hides Hebrew cantillation marks in UTF8 text
*/
-class SWDLLEXPORT UTF8Cantillation:public SWFilter
-{
- bool option;
- static const char on[];
- static const char off[];
- static const char optName[];
- static const char optTip[];
- OptionsList options;
+class SWDLLEXPORT UTF8Cantillation : public SWOptionFilter {
public:
- UTF8Cantillation ();
- virtual ~ UTF8Cantillation ();
- virtual char ProcessText (char *text, int maxlen, const SWKey * key, const SWModule * = 0);
- virtual const char *getOptionName ()
- {
- return optName;
- }
- virtual const char *getOptionTip ()
- {
- return optTip;
- }
- virtual void setOptionValue (const char *ival);
- virtual const char *getOptionValue ();
- virtual OptionsList getOptionValues ()
- {
- return options;
- }
+ UTF8Cantillation();
+ virtual ~UTF8Cantillation();
+ virtual char processText(SWBuf &text, const SWKey *key = 0, const SWModule *module = 0);
};
+SWORD_NAMESPACE_END
#endif