diff options
Diffstat (limited to 'include/gbfosis.h')
-rw-r--r-- | include/gbfosis.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/include/gbfosis.h b/include/gbfosis.h index 95e069b..60ed9af 100644 --- a/include/gbfosis.h +++ b/include/gbfosis.h @@ -19,9 +19,37 @@ #include <defs.h> #include <swfilter.h> +#include <string> +#include <stack> + +using std::string; +using std::stack; SWORD_NAMESPACE_START +class QuoteStack { +private: + class QuoteInstance { + char startChar; + char level; + string uniqueID; + char continueCount; + public: + QuoteInstance(char startChar = '\"', char level = 1, string uniqueID = "", char continueCount = 0) { + this->startChar = startChar; + this->level = level; + this->uniqueID = uniqueID; + this->continueCount = continueCount; + } + }; + + stack<QuoteInstance> quotes; +public: + QuoteStack(); + virtual ~QuoteStack(); + void handleQuote(char *buf, char *quotePos, char *to); +}; + /** this filter converts GBF text to HTML text with hrefs */ class SWDLLEXPORT GBFOSIS : public SWFilter { |