diff options
author | danglassey <danglassey> | 2002-10-19 13:01:53 +0000 |
---|---|---|
committer | danglassey <danglassey> | 2002-10-19 13:01:53 +0000 |
commit | b2ca6e454c439c8e09ef3fc74f7464aa6740a57d (patch) | |
tree | f274a656497171ff92b513a82b7675f3e144ce68 /include | |
parent | 3233d36c65606df0336f45ff6d832d842798d349 (diff) | |
download | sword-sf-cvs-b2ca6e454c439c8e09ef3fc74f7464aa6740a57d.tar.gz |
sync with crosswire 20021019-1300
Diffstat (limited to 'include')
-rw-r--r-- | include/gbfosis.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/gbfosis.h b/include/gbfosis.h index 60ed9af..0c48cc2 100644 --- a/include/gbfosis.h +++ b/include/gbfosis.h @@ -30,24 +30,27 @@ SWORD_NAMESPACE_START class QuoteStack { private: class QuoteInstance { + public: 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; } + void pushStartStream(char **to); }; stack<QuoteInstance> quotes; public: QuoteStack(); virtual ~QuoteStack(); - void handleQuote(char *buf, char *quotePos, char *to); + void handleQuote(char *buf, char *quotePos, char **to); + void clear(); + bool empty() { return quotes.empty(); } }; /** this filter converts GBF text to HTML text with hrefs @@ -55,11 +58,11 @@ public: class SWDLLEXPORT GBFOSIS : public SWFilter { protected: virtual const char *convertToOSIS(const char *, const SWKey *key); - void pushString(char **buf, const char *format, ...); public: GBFOSIS(); virtual ~GBFOSIS(); char ProcessText(char *text, int maxlen, const SWKey *, const SWModule * = 0); + static void pushString(char **buf, const char *format, ...); }; SWORD_NAMESPACE_END |