summaryrefslogtreecommitdiff
path: root/tests/webiftest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/webiftest.cpp')
-rw-r--r--tests/webiftest.cpp58
1 files changed, 0 insertions, 58 deletions
diff --git a/tests/webiftest.cpp b/tests/webiftest.cpp
deleted file mode 100644
index b72dbac..0000000
--- a/tests/webiftest.cpp
+++ /dev/null
@@ -1,58 +0,0 @@
-#ifndef __GNUC__
-#include <io.h>
-#else
-#include <unistd.h>
-#endif
-#ifndef O_BINARY
-#define O_BINARY 0
-#endif
-#include <fcntl.h>
-#include <errno.h>
-#include <iostream>
-#include <thmlhtmlhref.h>
-#include <unicodertf.h>
-#include <thmlosis.h>
-#include <gbfosis.h>
-#include <thmlosis.h>
-#include <versekey.h>
-#include <swmgr.h>
-#include <markupfiltmgr.h>
-#ifndef NO_SWORD_NAMESPACE
-using namespace sword;
-#endif
-using namespace std;
-
-#define MAXBUF 30000
-
-int main(int argc, char **argv) {
-
- const char* modName = (argc >= 2) ? argv[1] : "KJV";
- const char* keyName = (argc == 3) ? argv[2] : "John 1:1";
-
- SWMgr mgr(0, 0, true, new MarkupFilterMgr(FMT_WEBIF, ENC_UTF8));
- mgr.setGlobalOption("Strong's Numbers", "on");
- mgr.setGlobalOption("Morphological Tags", "on");
-
- SWModule *module = mgr.Modules[modName];
- if (!module) {
- module = mgr.Modules.begin()->second;
- }
- module->setKey(keyName);
- std::cout << module->RenderText() << std::endl<< std::endl<< std::endl;
-
- //------------------------
-
- SWMgr mgr2(0, 0, true, new MarkupFilterMgr(FMT_HTMLHREF, ENC_UTF8));
- mgr2.setGlobalOption("Strong's Numbers", "on");
- mgr2.setGlobalOption("Morphological Tags", "on");
- module = mgr2.Modules[modName];
- if (!module) {
- module = mgr2.Modules.begin()->second;
- }
-
- module->setKey(keyName);
- std::cout << module->RenderText() << std::endl;
-
- return 0;
-}
-