[sword-cvs] sword/utilities mkfastmod.cpp,1.4,1.5
sword@www.crosswire.org
sword@www.crosswire.org
Tue, 20 Jan 2004 23:14:43 -0700
Update of /cvs/core/sword/utilities
In directory www:/tmp/cvs-serv16791/utilities
Modified Files:
mkfastmod.cpp
Log Message:
no message
Index: mkfastmod.cpp
===================================================================
RCS file: /cvs/core/sword/utilities/mkfastmod.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- mkfastmod.cpp 1 Oct 2002 19:52:41 -0000 1.4
+++ mkfastmod.cpp 21 Jan 2004 06:14:41 -0000 1.5
@@ -1,17 +1,25 @@
#include <stdio.h>
#include <rawtext.h>
#include <swmgr.h>
+#include <markupfiltmgr.h>
+#include <swbuf.h>
#ifndef NO_SWORD_NAMESPACE
using sword::SWMgr;
using sword::SWModule;
using sword::ListKey;
using sword::VerseKey;
using sword::ModMap;
+using sword::SWBuf;
#endif
int main(int argc, char **argv)
{
- SWMgr manager(0,0,true);
+ SWMgr manager(new sword::MarkupFilterMgr(sword::FMT_HTMLHREF, sword::ENC_UTF16));
+ SWModule &kjv = *(manager.Modules["KJV"]);
+ for (kjv.setKey("Gen 1:1"); ((VerseKey *)kjv.getKey())->Chapter() == 1; kjv++) {
+ SWBuf x = kjv.RenderText();
+ }
+
SWModule *target;
ListKey listkey;
VerseKey vk;