summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/Makefile.in2
-rw-r--r--examples/classes/Makefile2
-rw-r--r--examples/classes/flatapiinstallmgr.cpp48
-rw-r--r--examples/classes/flatapilookup.c2
-rw-r--r--examples/classes/flatapiparsekey.c2
-rw-r--r--examples/classes/flatapisearch.c2
-rw-r--r--examples/classes/simplechapter.cpp2
-rw-r--r--examples/classes/versenorm.cpp72
-rw-r--r--examples/cmdline/CMakeLists.txt1
-rw-r--r--examples/cmdline/Makefile.am3
-rw-r--r--examples/cmdline/Makefile.in20
-rw-r--r--examples/cmdline/bcppmake/cmdline.bpg162
-rw-r--r--examples/cmdline/bcppmake/listoptions.bpf20
-rw-r--r--examples/cmdline/bcppmake/listoptions.bpr192
-rw-r--r--examples/cmdline/bcppmake/lookup.bpf20
-rw-r--r--examples/cmdline/bcppmake/lookup.bpr192
-rw-r--r--examples/cmdline/bcppmake/outplain.bpf20
-rw-r--r--examples/cmdline/bcppmake/outplain.bpr192
-rw-r--r--examples/cmdline/bcppmake/outrender.bpf20
-rw-r--r--examples/cmdline/bcppmake/outrender.bpr192
-rw-r--r--examples/cmdline/bcppmake/search.bpf22
-rw-r--r--examples/cmdline/bcppmake/search.bpr192
-rw-r--r--examples/cmdline/bcppmake/threaded_search.bpf20
-rw-r--r--examples/cmdline/bcppmake/threaded_search.bpr192
-rw-r--r--examples/cmdline/bcppmake/verserangeparse.bpf20
-rw-r--r--examples/cmdline/bcppmake/verserangeparse.bpr192
-rw-r--r--examples/cmdline/lookup.cpp16
-rw-r--r--examples/cmdline/search.cpp51
-rw-r--r--examples/cmdline/stripaccents.cpp80
-rw-r--r--examples/tasks/CMakeLists.txt2
-rw-r--r--examples/tasks/Makefile.am5
-rw-r--r--examples/tasks/Makefile.in39
-rw-r--r--examples/tasks/listbiblebooknames.cpp57
-rw-r--r--examples/tasks/parallelbibles.cpp69
-rw-r--r--examples/tasks/simpleverselookup.cpp (renamed from examples/simple.cpp)19
35 files changed, 1265 insertions, 877 deletions
diff --git a/examples/Makefile.in b/examples/Makefile.in
index 016b881..58e5cf0 100644
--- a/examples/Makefile.in
+++ b/examples/Makefile.in
@@ -326,9 +326,11 @@ target_vendor = @target_vendor@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
+with_bzip2 = @with_bzip2@
with_conf = @with_conf@
with_icu = @with_icu@
with_icusword = @with_icusword@
+with_xz = @with_xz@
with_zlib = @with_zlib@
AUTOMAKE_OPTIONS = 1.6
SUBDIRS = cmdline tasks
diff --git a/examples/classes/Makefile b/examples/classes/Makefile
index c626fb0..04e3457 100644
--- a/examples/classes/Makefile
+++ b/examples/classes/Makefile
@@ -1,4 +1,4 @@
-TARGETS= ciphercng swmgrex verseranges lastVerseInChapter verseposition simplechapter flatapilookup flatapiparsekey flatapisearch
+TARGETS= ciphercng swmgrex verseranges lastVerseInChapter verseposition simplechapter flatapilookup flatapiparsekey flatapisearch versenorm flatapiinstallmgr
all: $(TARGETS)
clean:
diff --git a/examples/classes/flatapiinstallmgr.cpp b/examples/classes/flatapiinstallmgr.cpp
new file mode 100644
index 0000000..6541063
--- /dev/null
+++ b/examples/classes/flatapiinstallmgr.cpp
@@ -0,0 +1,48 @@
+/******************************************************************************
+ *
+ * flatapilookup.c -
+ *
+ * $Id$
+ *
+ * Copyright 2014 CrossWire Bible Society (http://www.crosswire.org)
+ * CrossWire Bible Society
+ * P. O. Box 2528
+ * Tempe, AZ 85280-2528
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation version 2.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ */
+
+#include <stdio.h>
+#include <stdlib.h>
+
+#include <flatapi.h>
+
+int main(int argc, char **argv) {
+ if (argc != 4) {
+ fprintf(stderr, "\nusage: %s \"<sourceName>\" <\"modName\"> \"<destPath>\"\n"
+ "\tExample: CrossWire KJV ~/library\n\n", argv[0]);
+ exit(-1);
+ }
+
+
+ SWHANDLE mgr = org_crosswire_sword_SWMgr_newWithPath(argv[3]);
+
+ SWHANDLE instMgr = org_crosswire_sword_InstallMgr_new("/home/scribe/.sword/InstallMgr", 0);
+
+ org_crosswire_sword_InstallMgr_setUserDisclaimerConfirmed(instMgr);
+
+ fprintf(stdout, "Install returned: %d\n", org_crosswire_sword_InstallMgr_remoteInstallModule(instMgr, mgr, argv[1], argv[2]));
+
+ org_crosswire_sword_SWMgr_delete(mgr);
+ org_crosswire_sword_InstallMgr_delete(instMgr);
+
+ return 0;
+}
diff --git a/examples/classes/flatapilookup.c b/examples/classes/flatapilookup.c
index b76e7e2..9afde22 100644
--- a/examples/classes/flatapilookup.c
+++ b/examples/classes/flatapilookup.c
@@ -2,7 +2,7 @@
*
* flatapilookup.c -
*
- * $Id: flatapilookup.c 3162 2014-04-17 04:05:54Z greg.hellings $
+ * $Id: flatapilookup.c 3097 2014-03-11 11:40:13Z scribe $
*
* Copyright 2014 CrossWire Bible Society (http://www.crosswire.org)
* CrossWire Bible Society
diff --git a/examples/classes/flatapiparsekey.c b/examples/classes/flatapiparsekey.c
index a8616a2..41f7118 100644
--- a/examples/classes/flatapiparsekey.c
+++ b/examples/classes/flatapiparsekey.c
@@ -2,7 +2,7 @@
*
* flatapiparsekey.c -
*
- * $Id: flatapiparsekey.c 3162 2014-04-17 04:05:54Z greg.hellings $
+ * $Id: flatapiparsekey.c 3097 2014-03-11 11:40:13Z scribe $
*
* Copyright 2014 CrossWire Bible Society (http://www.crosswire.org)
* CrossWire Bible Society
diff --git a/examples/classes/flatapisearch.c b/examples/classes/flatapisearch.c
index 59e0074..715d6bc 100644
--- a/examples/classes/flatapisearch.c
+++ b/examples/classes/flatapisearch.c
@@ -2,7 +2,7 @@
*
* flatapisearch.c -
*
- * $Id: flatapisearch.c 3165 2014-04-17 04:07:57Z greg.hellings $
+ * $Id: flatapisearch.c 3102 2014-03-12 04:55:44Z chrislit $
*
* Copyright 2014 CrossWire Bible Society (http://www.crosswire.org)
* CrossWire Bible Society
diff --git a/examples/classes/simplechapter.cpp b/examples/classes/simplechapter.cpp
index 2178181..489f730 100644
--- a/examples/classes/simplechapter.cpp
+++ b/examples/classes/simplechapter.cpp
@@ -2,7 +2,7 @@
*
* simplechapter.cpp -
*
- * $Id: simplechapter.cpp 3156 2014-04-17 03:50:37Z greg.hellings $
+ * $Id: simplechapter.cpp 3045 2014-03-02 07:53:52Z chrislit $
*
* Copyright 2013-2014 CrossWire Bible Society (http://www.crosswire.org)
* CrossWire Bible Society
diff --git a/examples/classes/versenorm.cpp b/examples/classes/versenorm.cpp
new file mode 100644
index 0000000..08bad54
--- /dev/null
+++ b/examples/classes/versenorm.cpp
@@ -0,0 +1,72 @@
+/******************************************************************************
+ *
+ * versenorm.cpp - checks normalization of verse to module
+ *
+ * $Id$
+ *
+ * Copyright 2012-2013 CrossWire Bible Society (http://www.crosswire.org)
+ * CrossWire Bible Society
+ * P. O. Box 2528
+ * Tempe, AZ 85280-2528
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation version 2.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ */
+
+#include <iostream>
+#include <swmgr.h>
+#include <swmodule.h>
+#include <versekey.h>
+
+
+using namespace sword;
+using namespace std;
+
+
+int main(int argc, char **argv) {
+
+ const char *modName = "RusCARS";
+ const char *keyTextRegular = "1Sam1.20";
+ const char *keyTextNeedsNormalization = "1Sam1.200";
+
+
+ SWMgr library;
+ SWModule *book = library.getModule(modName);
+ if (!book) {
+ cerr << "Can't find module: " << modName << endl;
+ return -1;
+ }
+
+
+ // get two VerseKey objects for a module
+ VerseKey *verse = ((VerseKey *)book->createKey());
+ VerseKey *verseNormalized = ((VerseKey *)book->createKey());
+
+ // turn off autonormalization for one VerseKey reference
+ verse->setAutoNormalize(false);
+
+ // set a reference not requiring normalization to both VerseKey objects
+ verse->setText(keyTextRegular);
+ verseNormalized->setText(keyTextRegular);
+
+ // check to see if they are equal
+ cout << *verse << ((*verse) == (*verseNormalized) ? " == " : " != ") << *verseNormalized << endl;
+
+ // now do the same for a reference which requires normalization in this module's v11n system
+ verse->setText(keyTextNeedsNormalization);
+ verseNormalized->setText(keyTextNeedsNormalization);
+
+ cout << *verse << ((*verse) == (*verseNormalized) ? " == " : " != ") << *verseNormalized << endl;
+
+ delete verse;
+ delete verseNormalized;
+
+ return 0;
+}
diff --git a/examples/cmdline/CMakeLists.txt b/examples/cmdline/CMakeLists.txt
index bfbb995..a6c8c73 100644
--- a/examples/cmdline/CMakeLists.txt
+++ b/examples/cmdline/CMakeLists.txt
@@ -11,6 +11,7 @@ SET(example_PROGRAMS
outrender
search
verserangeparse
+ stripaccents
)
FOREACH(DEMO ${example_PROGRAMS})
diff --git a/examples/cmdline/Makefile.am b/examples/cmdline/Makefile.am
index 1b14b67..1e1444e 100644
--- a/examples/cmdline/Makefile.am
+++ b/examples/cmdline/Makefile.am
@@ -5,10 +5,11 @@ AM_CPPFLAGS += -I$(top_srcdir)/include/internal/regex
endif
LDADD = $(top_builddir)/lib/libsword.la
-noinst_PROGRAMS = lookup search threaded_search listoptions verserangeparse outplain outrender
+noinst_PROGRAMS = lookup search threaded_search listoptions verserangeparse outplain outrender stripaccents
lookup_SOURCES = lookup.cpp
search_SOURCES = search.cpp
+stripaccents_SOURCES = stripaccents.cpp
listoptions_SOURCES = listoptions.cpp
verserangeparse_SOURCES = verserangeparse.cpp
threaded_search_SOURCES = threaded_search.cpp
diff --git a/examples/cmdline/Makefile.in b/examples/cmdline/Makefile.in
index a6fa444..6d8cded 100644
--- a/examples/cmdline/Makefile.in
+++ b/examples/cmdline/Makefile.in
@@ -82,7 +82,8 @@ target_triplet = @target@
@USE_INTERNAL_REGEX_TRUE@am__append_1 = -I$(top_srcdir)/include/internal/regex
noinst_PROGRAMS = lookup$(EXEEXT) search$(EXEEXT) \
threaded_search$(EXEEXT) listoptions$(EXEEXT) \
- verserangeparse$(EXEEXT) outplain$(EXEEXT) outrender$(EXEEXT)
+ verserangeparse$(EXEEXT) outplain$(EXEEXT) outrender$(EXEEXT) \
+ stripaccents$(EXEEXT)
subdir = examples/cmdline
DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
$(top_srcdir)/depcomp
@@ -123,6 +124,10 @@ am_search_OBJECTS = search.$(OBJEXT)
search_OBJECTS = $(am_search_OBJECTS)
search_LDADD = $(LDADD)
search_DEPENDENCIES = $(top_builddir)/lib/libsword.la
+am_stripaccents_OBJECTS = stripaccents.$(OBJEXT)
+stripaccents_OBJECTS = $(am_stripaccents_OBJECTS)
+stripaccents_LDADD = $(LDADD)
+stripaccents_DEPENDENCIES = $(top_builddir)/lib/libsword.la
am_threaded_search_OBJECTS = threaded_search.$(OBJEXT)
threaded_search_OBJECTS = $(am_threaded_search_OBJECTS)
threaded_search_DEPENDENCIES = $(LDADD)
@@ -165,11 +170,12 @@ am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@)
am__v_CXXLD_0 = @echo " CXXLD " $@;
am__v_CXXLD_1 =
SOURCES = $(listoptions_SOURCES) $(lookup_SOURCES) $(outplain_SOURCES) \
- $(outrender_SOURCES) $(search_SOURCES) \
+ $(outrender_SOURCES) $(search_SOURCES) $(stripaccents_SOURCES) \
$(threaded_search_SOURCES) $(verserangeparse_SOURCES)
DIST_SOURCES = $(listoptions_SOURCES) $(lookup_SOURCES) \
$(outplain_SOURCES) $(outrender_SOURCES) $(search_SOURCES) \
- $(threaded_search_SOURCES) $(verserangeparse_SOURCES)
+ $(stripaccents_SOURCES) $(threaded_search_SOURCES) \
+ $(verserangeparse_SOURCES)
am__can_run_installinfo = \
case $$AM_UPDATE_INFO_DIR in \
n|no|NO) false;; \
@@ -348,15 +354,18 @@ target_vendor = @target_vendor@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
+with_bzip2 = @with_bzip2@
with_conf = @with_conf@
with_icu = @with_icu@
with_icusword = @with_icusword@
+with_xz = @with_xz@
with_zlib = @with_zlib@
AUTOMAKE_OPTIONS = 1.6
AM_CPPFLAGS = -I $(top_srcdir)/include $(am__append_1)
LDADD = $(top_builddir)/lib/libsword.la
lookup_SOURCES = lookup.cpp
search_SOURCES = search.cpp
+stripaccents_SOURCES = stripaccents.cpp
listoptions_SOURCES = listoptions.cpp
verserangeparse_SOURCES = verserangeparse.cpp
threaded_search_SOURCES = threaded_search.cpp
@@ -427,6 +436,10 @@ search$(EXEEXT): $(search_OBJECTS) $(search_DEPENDENCIES) $(EXTRA_search_DEPENDE
@rm -f search$(EXEEXT)
$(AM_V_CXXLD)$(CXXLINK) $(search_OBJECTS) $(search_LDADD) $(LIBS)
+stripaccents$(EXEEXT): $(stripaccents_OBJECTS) $(stripaccents_DEPENDENCIES) $(EXTRA_stripaccents_DEPENDENCIES)
+ @rm -f stripaccents$(EXEEXT)
+ $(AM_V_CXXLD)$(CXXLINK) $(stripaccents_OBJECTS) $(stripaccents_LDADD) $(LIBS)
+
threaded_search$(EXEEXT): $(threaded_search_OBJECTS) $(threaded_search_DEPENDENCIES) $(EXTRA_threaded_search_DEPENDENCIES)
@rm -f threaded_search$(EXEEXT)
$(AM_V_CXXLD)$(CXXLINK) $(threaded_search_OBJECTS) $(threaded_search_LDADD) $(LIBS)
@@ -446,6 +459,7 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/outplain.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/outrender.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/search.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/stripaccents.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/threaded_search.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/verserangeparse.Po@am__quote@
diff --git a/examples/cmdline/bcppmake/cmdline.bpg b/examples/cmdline/bcppmake/cmdline.bpg
index 943790e..756b532 100644
--- a/examples/cmdline/bcppmake/cmdline.bpg
+++ b/examples/cmdline/bcppmake/cmdline.bpg
@@ -1,81 +1,81 @@
-#------------------------------------------------------------------------------
-VERSION = BWS.01
-#------------------------------------------------------------------------------
-!ifndef ROOT
-ROOT = $(MAKEDIR)\..
-!endif
-#------------------------------------------------------------------------------
-MAKE = $(ROOT)\bin\make.exe -$(MAKEFLAGS) -f$**
-DCC = $(ROOT)\bin\dcc32.exe $**
-BRCC = $(ROOT)\bin\brcc32.exe $**
-#------------------------------------------------------------------------------
-PROJECTS = icuuc.lib icuin.lib libcurl.lib clucene.lib libsword.lib \
- listoptions.exe lookup.exe outplain.exe outrender.exe search.exe \
- verserangeparse.exe threaded_search.exe
-#------------------------------------------------------------------------------
-default: $(PROJECTS)
-#------------------------------------------------------------------------------
-
-libsword.lib: ..\..\..\lib\bcppmake\libsword.bpr
- $(ROOT)\bin\bpr2mak -t$(ROOT)\bin\deflib.bmk $**
- $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
-
-icuuc.lib: ..\..\..\..\icu-sword\as_is\borland\icuuc.bpr
- $(ROOT)\bin\bpr2mak -t$(ROOT)\bin\deflib.bmk $**
- $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
-
-icuin.lib: ..\..\..\..\icu-sword\as_is\borland\icuin.bpr
- $(ROOT)\bin\bpr2mak -t$(ROOT)\bin\deflib.bmk $**
- $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
-
-xml2gbs.exe: xml2gbs.bpr
- $(ROOT)\bin\bpr2mak $**
- $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
-
-osis2mod.exe: osis2mod.bpr
- $(ROOT)\bin\bpr2mak $**
- $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
-
-tei2mod.exe: tei2mod.bpr
- $(ROOT)\bin\bpr2mak $**
- $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
-
-installmgr.exe: installmgr.bpr
- $(ROOT)\bin\bpr2mak $**
- $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
-
-clucene.lib: ..\..\..\..\biblecs\clucene\clucene.bpr
- $(ROOT)\bin\bpr2mak -t$(ROOT)\bin\deflib.bmk $**
- $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
-
-libcurl.lib: ..\..\..\..\biblecs\apps\InstallMgr\libcurl.bpr
- $(ROOT)\bin\bpr2mak -t$(ROOT)\bin\deflib.bmk $**
- $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
-
-verserangeparse.exe: verserangeparse.bpr
- $(ROOT)\bin\bpr2mak $**
- $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
-
-threaded_search.exe: threaded_search.bpr
- $(ROOT)\bin\bpr2mak $**
- $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
-
-search.exe: search.bpr
- $(ROOT)\bin\bpr2mak $**
- $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
-
-outrender.exe: outrender.bpr
- $(ROOT)\bin\bpr2mak $**
- $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
-
-outplain.exe: outplain.bpr
- $(ROOT)\bin\bpr2mak $**
- $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
-
-lookup.exe: lookup.bpr
- $(ROOT)\bin\bpr2mak $**
- $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
-
-listoptions.exe: listoptions.bpr
- $(ROOT)\bin\bpr2mak $**
- $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
+#------------------------------------------------------------------------------
+VERSION = BWS.01
+#------------------------------------------------------------------------------
+!ifndef ROOT
+ROOT = $(MAKEDIR)\..
+!endif
+#------------------------------------------------------------------------------
+MAKE = $(ROOT)\bin\make.exe -$(MAKEFLAGS) -f$**
+DCC = $(ROOT)\bin\dcc32.exe $**
+BRCC = $(ROOT)\bin\brcc32.exe $**
+#------------------------------------------------------------------------------
+PROJECTS = icuuc.lib icuin.lib libcurl.lib clucene.lib libsword.lib \
+ listoptions.exe lookup.exe outplain.exe outrender.exe search.exe \
+ verserangeparse.exe threaded_search.exe
+#------------------------------------------------------------------------------
+default: $(PROJECTS)
+#------------------------------------------------------------------------------
+
+libsword.lib: ..\..\..\lib\bcppmake\libsword.bpr
+ $(ROOT)\bin\bpr2mak -t$(ROOT)\bin\deflib.bmk $**
+ $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
+
+icuuc.lib: ..\..\..\..\icu-sword\as_is\borland\icuuc.bpr
+ $(ROOT)\bin\bpr2mak -t$(ROOT)\bin\deflib.bmk $**
+ $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
+
+icuin.lib: ..\..\..\..\icu-sword\as_is\borland\icuin.bpr
+ $(ROOT)\bin\bpr2mak -t$(ROOT)\bin\deflib.bmk $**
+ $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
+
+xml2gbs.exe: xml2gbs.bpr
+ $(ROOT)\bin\bpr2mak $**
+ $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
+
+osis2mod.exe: osis2mod.bpr
+ $(ROOT)\bin\bpr2mak $**
+ $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
+
+tei2mod.exe: tei2mod.bpr
+ $(ROOT)\bin\bpr2mak $**
+ $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
+
+installmgr.exe: installmgr.bpr
+ $(ROOT)\bin\bpr2mak $**
+ $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
+
+clucene.lib: ..\..\..\..\biblecs\clucene\clucene.bpr
+ $(ROOT)\bin\bpr2mak -t$(ROOT)\bin\deflib.bmk $**
+ $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
+
+libcurl.lib: ..\..\..\..\biblecs\apps\InstallMgr\libcurl.bpr
+ $(ROOT)\bin\bpr2mak -t$(ROOT)\bin\deflib.bmk $**
+ $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
+
+verserangeparse.exe: verserangeparse.bpr
+ $(ROOT)\bin\bpr2mak $**
+ $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
+
+threaded_search.exe: threaded_search.bpr
+ $(ROOT)\bin\bpr2mak $**
+ $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
+
+search.exe: search.bpr
+ $(ROOT)\bin\bpr2mak $**
+ $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
+
+outrender.exe: outrender.bpr
+ $(ROOT)\bin\bpr2mak $**
+ $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
+
+outplain.exe: outplain.bpr
+ $(ROOT)\bin\bpr2mak $**
+ $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
+
+lookup.exe: lookup.bpr
+ $(ROOT)\bin\bpr2mak $**
+ $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
+
+listoptions.exe: listoptions.bpr
+ $(ROOT)\bin\bpr2mak $**
+ $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
diff --git a/examples/cmdline/bcppmake/listoptions.bpf b/examples/cmdline/bcppmake/listoptions.bpf
index 9e2ee47..64148ce 100644
--- a/examples/cmdline/bcppmake/listoptions.bpf
+++ b/examples/cmdline/bcppmake/listoptions.bpf
@@ -1,11 +1,11 @@
-USEUNIT("..\listoptions.cpp");
-USELIB("..\..\..\..\icu-sword\as_is\borland\icuin.lib");
-USELIB("..\..\..\..\icu-sword\as_is\borland\icudatab.lib");
-USELIB("..\..\..\..\icu-sword\as_is\borland\icuuc.lib");
-USELIB("..\..\..\lib\libsword.lib");
-USELIB("..\..\..\..\biblecs\clucene\clucene.lib");
-//---------------------------------------------------------------------------
-This file is used by the project manager only and should be treated like the project file
-
-
+USEUNIT("..\listoptions.cpp");
+USELIB("..\..\..\..\icu-sword\as_is\borland\icuin.lib");
+USELIB("..\..\..\..\icu-sword\as_is\borland\icudatab.lib");
+USELIB("..\..\..\..\icu-sword\as_is\borland\icuuc.lib");
+USELIB("..\..\..\lib\libsword.lib");
+USELIB("..\..\..\..\biblecs\clucene\clucene.lib");
+//---------------------------------------------------------------------------
+This file is used by the project manager only and should be treated like the project file
+
+
main \ No newline at end of file
diff --git a/examples/cmdline/bcppmake/listoptions.bpr b/examples/cmdline/bcppmake/listoptions.bpr
index 753553e..18ec3f1 100644
--- a/examples/cmdline/bcppmake/listoptions.bpr
+++ b/examples/cmdline/bcppmake/listoptions.bpr
@@ -1,96 +1,96 @@
-<?xml version='1.0' encoding='utf-8' ?>
-<!-- C++Builder XML Project -->
-<PROJECT>
- <MACROS>
- <VERSION value="BCB.05.03"/>
- <PROJECT value="listoptions.exe"/>
- <OBJFILES value="..\listoptions.obj"/>
- <RESFILES value=""/>
- <IDLFILES value=""/>
- <IDLGENFILES value=""/>
- <DEFFILE value=""/>
- <RESDEPEN value="$(RESFILES)"/>
- <LIBFILES value="..\..\..\..\icu-sword\as_is\borland\icuin.lib
- ..\..\..\..\icu-sword\as_is\borland\icudatab.lib
- ..\..\..\..\icu-sword\as_is\borland\icuuc.lib ..\..\..\lib\libsword.lib
- ..\..\..\..\biblecs\clucene\clucene.lib"/>
- <LIBRARIES value=""/>
- <SPARELIBS value=""/>
- <PACKAGES value="VCL50.bpi VCLX50.bpi bcbsmp50.bpi QRPT50.bpi VCLDB50.bpi VCLBDE50.bpi
- ibsmp50.bpi VCLDBX50.bpi TEEUI50.bpi TEEDB50.bpi TEE50.bpi TEEQR50.bpi
- VCLIB50.bpi bcbie50.bpi VCLIE50.bpi INETDB50.bpi INET50.bpi NMFAST50.bpi
- dclocx50.bpi bcb2kaxserver50.bpi"/>
- <PATHCPP value=".;.."/>
- <PATHPAS value=".;"/>
- <PATHRC value=".;"/>
- <PATHASM value=".;"/>
- <DEBUGLIBPATH value="$(BCB)\lib\debug"/>
- <RELEASELIBPATH value="$(BCB)\lib\release"/>
- <LINKER value="tlink32"/>
- <USERDEFINES value="_ICU_;_ICUSWORD_;USBINARY;U_HAVE_PLACEMENT_NEW=0;USELUCENE;_CL_DISABLE_MULTITHREADING"/>
- <SYSDEFINES value="NO_STRICT;_NO_VCL"/>
- <MAINSOURCE value="listoptions.bpf"/>
- <INCLUDEPATH value="..\;..\..\..\include;$(BCB)\include;$(BCB)\include\vcl;..\..\..\..\icu-sword\source\common;..\..\..\..\icu-sword\source\i18n"/>
- <LIBPATH value="..\;..\..\..\lib;$(BCB)\lib\obj;$(BCB)\lib"/>
- <WARNINGS value="-w-par"/>
- </MACROS>
- <OPTIONS>
- <IDLCFLAGS value="-I..\. -I.. -I..\..\..\..\include -I$(BCB)\include -I$(BCB)\include\vcl
- -I..\..\..\..\icu-sword\source\common -I..\..\..\..\icu-sword\source\i18n
- -src_suffix cpp -D_ICU_ -D_ICUSWORD_ -DUSBINARY -DU_HAVE_PLACEMENT_NEW=0
- -DUSELUCENE -D_CL_DISABLE_MULTITHREADING -boa"/>
- <CFLAG1 value="-O2 -H=$(BCB)\lib\vcl50.csm -Hc -Vx -Ve -X- -a8 -6 -b- -k- -vi -tWC -tWM -c"/>
- <PFLAGS value="-$Y- -$L- -$D- -v -JPHNE -M"/>
- <RFLAGS value=""/>
- <AFLAGS value="/mx /w2 /zn"/>
- <LFLAGS value="-D&quot;&quot; -ap -Tpe -x -Gn"/>
- </OPTIONS>
- <LINKER>
- <ALLOBJ value="c0x32.obj $(OBJFILES)"/>
- <ALLRES value="$(RESFILES)"/>
- <ALLLIB value="$(LIBFILES) $(LIBRARIES) import32.lib cw32mt.lib"/>
- </LINKER>
- <IDEOPTIONS>
-[Version Info]
-IncludeVerInfo=0
-AutoIncBuild=0
-MajorVer=1
-MinorVer=0
-Release=0
-Build=0
-Debug=0
-PreRelease=0
-Special=0
-Private=0
-DLL=0
-Locale=1033
-CodePage=1252
-
-[Version Info Keys]
-CompanyName=
-FileDescription=
-FileVersion=1.0.0.0
-InternalName=
-LegalCopyright=
-LegalTrademarks=
-OriginalFilename=
-ProductName=
-ProductVersion=1.0.0.0
-Comments=
-
-[Debugging]
-DebugSourceDirs=$(BCB)\source\vcl
-
-[Parameters]
-RunParams=./nasb nasb.xml
-HostApplication=
-RemoteHost=
-RemotePath=
-RemoteDebug=0
-
-[Language]
-ActiveLang=
-ProjectLang=
-RootDir=
- </IDEOPTIONS>
-</PROJECT>
+<?xml version='1.0' encoding='utf-8' ?>
+<!-- C++Builder XML Project -->
+<PROJECT>
+ <MACROS>
+ <VERSION value="BCB.05.03"/>
+ <PROJECT value="listoptions.exe"/>
+ <OBJFILES value="..\listoptions.obj"/>
+ <RESFILES value=""/>
+ <IDLFILES value=""/>
+ <IDLGENFILES value=""/>
+ <DEFFILE value=""/>
+ <RESDEPEN value="$(RESFILES)"/>
+ <LIBFILES value="..\..\..\..\icu-sword\as_is\borland\icuin.lib
+ ..\..\..\..\icu-sword\as_is\borland\icudatab.lib
+ ..\..\..\..\icu-sword\as_is\borland\icuuc.lib ..\..\..\lib\libsword.lib
+ ..\..\..\..\biblecs\clucene\clucene.lib"/>
+ <LIBRARIES value=""/>
+ <SPARELIBS value=""/>
+ <PACKAGES value="VCL50.bpi VCLX50.bpi bcbsmp50.bpi QRPT50.bpi VCLDB50.bpi VCLBDE50.bpi
+ ibsmp50.bpi VCLDBX50.bpi TEEUI50.bpi TEEDB50.bpi TEE50.bpi TEEQR50.bpi
+ VCLIB50.bpi bcbie50.bpi VCLIE50.bpi INETDB50.bpi INET50.bpi NMFAST50.bpi
+ dclocx50.bpi bcb2kaxserver50.bpi"/>
+ <PATHCPP value=".;.."/>
+ <PATHPAS value=".;"/>
+ <PATHRC value=".;"/>
+ <PATHASM value=".;"/>
+ <DEBUGLIBPATH value="$(BCB)\lib\debug"/>
+ <RELEASELIBPATH value="$(BCB)\lib\release"/>
+ <LINKER value="tlink32"/>
+ <USERDEFINES value="_ICU_;_ICUSWORD_;USBINARY;U_HAVE_PLACEMENT_NEW=0;USELUCENE;_CL_DISABLE_MULTITHREADING"/>
+ <SYSDEFINES value="NO_STRICT;_NO_VCL"/>
+ <MAINSOURCE value="listoptions.bpf"/>
+ <INCLUDEPATH value="..\;..\..\..\include;$(BCB)\include;$(BCB)\include\vcl;..\..\..\..\icu-sword\source\common;..\..\..\..\icu-sword\source\i18n"/>
+ <LIBPATH value="..\;..\..\..\lib;$(BCB)\lib\obj;$(BCB)\lib"/>
+ <WARNINGS value="-w-par"/>
+ </MACROS>
+ <OPTIONS>
+ <IDLCFLAGS value="-I..\. -I.. -I..\..\..\..\include -I$(BCB)\include -I$(BCB)\include\vcl
+ -I..\..\..\..\icu-sword\source\common -I..\..\..\..\icu-sword\source\i18n
+ -src_suffix cpp -D_ICU_ -D_ICUSWORD_ -DUSBINARY -DU_HAVE_PLACEMENT_NEW=0
+ -DUSELUCENE -D_CL_DISABLE_MULTITHREADING -boa"/>
+ <CFLAG1 value="-O2 -H=$(BCB)\lib\vcl50.csm -Hc -Vx -Ve -X- -a8 -6 -b- -k- -vi -tWC -tWM -c"/>
+ <PFLAGS value="-$Y- -$L- -$D- -v -JPHNE -M"/>
+ <RFLAGS value=""/>
+ <AFLAGS value="/mx /w2 /zn"/>
+ <LFLAGS value="-D&quot;&quot; -ap -Tpe -x -Gn"/>
+ </OPTIONS>
+ <LINKER>
+ <ALLOBJ value="c0x32.obj $(OBJFILES)"/>
+ <ALLRES value="$(RESFILES)"/>
+ <ALLLIB value="$(LIBFILES) $(LIBRARIES) import32.lib cw32mt.lib"/>
+ </LINKER>
+ <IDEOPTIONS>
+[Version Info]
+IncludeVerInfo=0
+AutoIncBuild=0
+MajorVer=1
+MinorVer=0
+Release=0
+Build=0
+Debug=0
+PreRelease=0
+Special=0
+Private=0
+DLL=0
+Locale=1033
+CodePage=1252
+
+[Version Info Keys]
+CompanyName=
+FileDescription=
+FileVersion=1.0.0.0
+InternalName=
+LegalCopyright=
+LegalTrademarks=
+OriginalFilename=
+ProductName=
+ProductVersion=1.0.0.0
+Comments=
+
+[Debugging]
+DebugSourceDirs=$(BCB)\source\vcl
+
+[Parameters]
+RunParams=./nasb nasb.xml
+HostApplication=
+RemoteHost=
+RemotePath=
+RemoteDebug=0
+
+[Language]
+ActiveLang=
+ProjectLang=
+RootDir=
+ </IDEOPTIONS>
+</PROJECT>
diff --git a/examples/cmdline/bcppmake/lookup.bpf b/examples/cmdline/bcppmake/lookup.bpf
index d7722c5..f0f4680 100644
--- a/examples/cmdline/bcppmake/lookup.bpf
+++ b/examples/cmdline/bcppmake/lookup.bpf
@@ -1,11 +1,11 @@
-USEUNIT("..\lookup.cpp");
-USELIB("..\..\..\..\icu-sword\as_is\borland\icuin.lib");
-USELIB("..\..\..\..\icu-sword\as_is\borland\icudatab.lib");
-USELIB("..\..\..\..\icu-sword\as_is\borland\icuuc.lib");
-USELIB("..\..\..\lib\libsword.lib");
-USELIB("..\..\..\..\biblecs\clucene\clucene.lib");
-//---------------------------------------------------------------------------
-This file is used by the project manager only and should be treated like the project file
-
-
+USEUNIT("..\lookup.cpp");
+USELIB("..\..\..\..\icu-sword\as_is\borland\icuin.lib");
+USELIB("..\..\..\..\icu-sword\as_is\borland\icudatab.lib");
+USELIB("..\..\..\..\icu-sword\as_is\borland\icuuc.lib");
+USELIB("..\..\..\lib\libsword.lib");
+USELIB("..\..\..\..\biblecs\clucene\clucene.lib");
+//---------------------------------------------------------------------------
+This file is used by the project manager only and should be treated like the project file
+
+
main \ No newline at end of file
diff --git a/examples/cmdline/bcppmake/lookup.bpr b/examples/cmdline/bcppmake/lookup.bpr
index 4b642c3..2db34e2 100644
--- a/examples/cmdline/bcppmake/lookup.bpr
+++ b/examples/cmdline/bcppmake/lookup.bpr
@@ -1,96 +1,96 @@
-<?xml version='1.0' encoding='utf-8' ?>
-<!-- C++Builder XML Project -->
-<PROJECT>
- <MACROS>
- <VERSION value="BCB.05.03"/>
- <PROJECT value="lookup.exe"/>
- <OBJFILES value="..\lookup.obj"/>
- <RESFILES value=""/>
- <IDLFILES value=""/>
- <IDLGENFILES value=""/>
- <DEFFILE value=""/>
- <RESDEPEN value="$(RESFILES)"/>
- <LIBFILES value="..\..\..\..\icu-sword\as_is\borland\icuin.lib
- ..\..\..\..\icu-sword\as_is\borland\icudatab.lib
- ..\..\..\..\icu-sword\as_is\borland\icuuc.lib ..\..\..\lib\libsword.lib
- ..\..\..\..\biblecs\clucene\clucene.lib"/>
- <LIBRARIES value=""/>
- <SPARELIBS value=""/>
- <PACKAGES value="VCL50.bpi VCLX50.bpi bcbsmp50.bpi QRPT50.bpi VCLDB50.bpi VCLBDE50.bpi
- ibsmp50.bpi VCLDBX50.bpi TEEUI50.bpi TEEDB50.bpi TEE50.bpi TEEQR50.bpi
- VCLIB50.bpi bcbie50.bpi VCLIE50.bpi INETDB50.bpi INET50.bpi NMFAST50.bpi
- dclocx50.bpi bcb2kaxserver50.bpi"/>
- <PATHCPP value=".;.."/>
- <PATHPAS value=".;"/>
- <PATHRC value=".;"/>
- <PATHASM value=".;"/>
- <DEBUGLIBPATH value="$(BCB)\lib\debug"/>
- <RELEASELIBPATH value="$(BCB)\lib\release"/>
- <LINKER value="tlink32"/>
- <USERDEFINES value="_ICU_;_ICUSWORD_;USBINARY;U_HAVE_PLACEMENT_NEW=0;USELUCENE;_CL_DISABLE_MULTITHREADING"/>
- <SYSDEFINES value="NO_STRICT;_NO_VCL"/>
- <MAINSOURCE value="lookup.bpf"/>
- <INCLUDEPATH value="..\;..\..\..\include;$(BCB)\include;$(BCB)\include\vcl;..\..\..\..\icu-sword\source\common;..\..\..\..\icu-sword\source\i18n"/>
- <LIBPATH value="..\;..\..\..\lib;$(BCB)\lib\obj;$(BCB)\lib"/>
- <WARNINGS value="-w-par"/>
- </MACROS>
- <OPTIONS>
- <IDLCFLAGS value="-I..\. -I.. -I..\..\..\..\include -I$(BCB)\include -I$(BCB)\include\vcl
- -I..\..\..\..\icu-sword\source\common -I..\..\..\..\icu-sword\source\i18n
- -src_suffix cpp -D_ICU_ -D_ICUSWORD_ -DUSBINARY -DU_HAVE_PLACEMENT_NEW=0
- -DUSELUCENE -D_CL_DISABLE_MULTITHREADING -boa"/>
- <CFLAG1 value="-O2 -H=$(BCB)\lib\vcl50.csm -Hc -Vx -Ve -X- -a8 -6 -b- -k- -vi -tWC -tWM -c"/>
- <PFLAGS value="-$Y- -$L- -$D- -v -JPHNE -M"/>
- <RFLAGS value=""/>
- <AFLAGS value="/mx /w2 /zn"/>
- <LFLAGS value="-D&quot;&quot; -ap -Tpe -x -Gn"/>
- </OPTIONS>
- <LINKER>
- <ALLOBJ value="c0x32.obj $(OBJFILES)"/>
- <ALLRES value="$(RESFILES)"/>
- <ALLLIB value="$(LIBFILES) $(LIBRARIES) import32.lib cw32mt.lib"/>
- </LINKER>
- <IDEOPTIONS>
-[Version Info]
-IncludeVerInfo=0
-AutoIncBuild=0
-MajorVer=1
-MinorVer=0
-Release=0
-Build=0
-Debug=0
-PreRelease=0
-Special=0
-Private=0
-DLL=0
-Locale=1033
-CodePage=1252
-
-[Version Info Keys]
-CompanyName=
-FileDescription=
-FileVersion=1.0.0.0
-InternalName=
-LegalCopyright=
-LegalTrademarks=
-OriginalFilename=
-ProductName=
-ProductVersion=1.0.0.0
-Comments=
-
-[Debugging]
-DebugSourceDirs=$(BCB)\source\vcl
-
-[Parameters]
-RunParams=./nasb nasb.xml
-HostApplication=
-RemoteHost=
-RemotePath=
-RemoteDebug=0
-
-[Language]
-ActiveLang=
-ProjectLang=
-RootDir=
- </IDEOPTIONS>
-</PROJECT>
+<?xml version='1.0' encoding='utf-8' ?>
+<!-- C++Builder XML Project -->
+<PROJECT>
+ <MACROS>
+ <VERSION value="BCB.05.03"/>
+ <PROJECT value="lookup.exe"/>
+ <OBJFILES value="..\lookup.obj"/>
+ <RESFILES value=""/>
+ <IDLFILES value=""/>
+ <IDLGENFILES value=""/>
+ <DEFFILE value=""/>
+ <RESDEPEN value="$(RESFILES)"/>
+ <LIBFILES value="..\..\..\..\icu-sword\as_is\borland\icuin.lib
+ ..\..\..\..\icu-sword\as_is\borland\icudatab.lib
+ ..\..\..\..\icu-sword\as_is\borland\icuuc.lib ..\..\..\lib\libsword.lib
+ ..\..\..\..\biblecs\clucene\clucene.lib"/>
+ <LIBRARIES value=""/>
+ <SPARELIBS value=""/>
+ <PACKAGES value="VCL50.bpi VCLX50.bpi bcbsmp50.bpi QRPT50.bpi VCLDB50.bpi VCLBDE50.bpi
+ ibsmp50.bpi VCLDBX50.bpi TEEUI50.bpi TEEDB50.bpi TEE50.bpi TEEQR50.bpi
+ VCLIB50.bpi bcbie50.bpi VCLIE50.bpi INETDB50.bpi INET50.bpi NMFAST50.bpi
+ dclocx50.bpi bcb2kaxserver50.bpi"/>
+ <PATHCPP value=".;.."/>
+ <PATHPAS value=".;"/>
+ <PATHRC value=".;"/>
+ <PATHASM value=".;"/>
+ <DEBUGLIBPATH value="$(BCB)\lib\debug"/>
+ <RELEASELIBPATH value="$(BCB)\lib\release"/>
+ <LINKER value="tlink32"/>
+ <USERDEFINES value="_ICU_;_ICUSWORD_;USBINARY;U_HAVE_PLACEMENT_NEW=0;USELUCENE;_CL_DISABLE_MULTITHREADING"/>
+ <SYSDEFINES value="NO_STRICT;_NO_VCL"/>
+ <MAINSOURCE value="lookup.bpf"/>
+ <INCLUDEPATH value="..\;..\..\..\include;$(BCB)\include;$(BCB)\include\vcl;..\..\..\..\icu-sword\source\common;..\..\..\..\icu-sword\source\i18n"/>
+ <LIBPATH value="..\;..\..\..\lib;$(BCB)\lib\obj;$(BCB)\lib"/>
+ <WARNINGS value="-w-par"/>
+ </MACROS>
+ <OPTIONS>
+ <IDLCFLAGS value="-I..\. -I.. -I..\..\..\..\include -I$(BCB)\include -I$(BCB)\include\vcl
+ -I..\..\..\..\icu-sword\source\common -I..\..\..\..\icu-sword\source\i18n
+ -src_suffix cpp -D_ICU_ -D_ICUSWORD_ -DUSBINARY -DU_HAVE_PLACEMENT_NEW=0
+ -DUSELUCENE -D_CL_DISABLE_MULTITHREADING -boa"/>
+ <CFLAG1 value="-O2 -H=$(BCB)\lib\vcl50.csm -Hc -Vx -Ve -X- -a8 -6 -b- -k- -vi -tWC -tWM -c"/>
+ <PFLAGS value="-$Y- -$L- -$D- -v -JPHNE -M"/>
+ <RFLAGS value=""/>
+ <AFLAGS value="/mx /w2 /zn"/>
+ <LFLAGS value="-D&quot;&quot; -ap -Tpe -x -Gn"/>
+ </OPTIONS>
+ <LINKER>
+ <ALLOBJ value="c0x32.obj $(OBJFILES)"/>
+ <ALLRES value="$(RESFILES)"/>
+ <ALLLIB value="$(LIBFILES) $(LIBRARIES) import32.lib cw32mt.lib"/>
+ </LINKER>
+ <IDEOPTIONS>
+[Version Info]
+IncludeVerInfo=0
+AutoIncBuild=0
+MajorVer=1
+MinorVer=0
+Release=0
+Build=0
+Debug=0
+PreRelease=0
+Special=0
+Private=0
+DLL=0
+Locale=1033
+CodePage=1252
+
+[Version Info Keys]
+CompanyName=
+FileDescription=
+FileVersion=1.0.0.0
+InternalName=
+LegalCopyright=
+LegalTrademarks=
+OriginalFilename=
+ProductName=
+ProductVersion=1.0.0.0
+Comments=
+
+[Debugging]
+DebugSourceDirs=$(BCB)\source\vcl
+
+[Parameters]
+RunParams=./nasb nasb.xml
+HostApplication=
+RemoteHost=
+RemotePath=
+RemoteDebug=0
+
+[Language]
+ActiveLang=
+ProjectLang=
+RootDir=
+ </IDEOPTIONS>
+</PROJECT>
diff --git a/examples/cmdline/bcppmake/outplain.bpf b/examples/cmdline/bcppmake/outplain.bpf
index edce864..9995991 100644
--- a/examples/cmdline/bcppmake/outplain.bpf
+++ b/examples/cmdline/bcppmake/outplain.bpf
@@ -1,11 +1,11 @@
-USEUNIT("..\outplain.cpp");
-USELIB("..\..\..\..\icu-sword\as_is\borland\icuin.lib");
-USELIB("..\..\..\..\icu-sword\as_is\borland\icudatab.lib");
-USELIB("..\..\..\..\icu-sword\as_is\borland\icuuc.lib");
-USELIB("..\..\..\lib\libsword.lib");
-USELIB("..\..\..\..\biblecs\clucene\clucene.lib");
-//---------------------------------------------------------------------------
-This file is used by the project manager only and should be treated like the project file
-
-
+USEUNIT("..\outplain.cpp");
+USELIB("..\..\..\..\icu-sword\as_is\borland\icuin.lib");
+USELIB("..\..\..\..\icu-sword\as_is\borland\icudatab.lib");
+USELIB("..\..\..\..\icu-sword\as_is\borland\icuuc.lib");
+USELIB("..\..\..\lib\libsword.lib");
+USELIB("..\..\..\..\biblecs\clucene\clucene.lib");
+//---------------------------------------------------------------------------
+This file is used by the project manager only and should be treated like the project file
+
+
main \ No newline at end of file
diff --git a/examples/cmdline/bcppmake/outplain.bpr b/examples/cmdline/bcppmake/outplain.bpr
index 089d890..cdc38b9 100644
--- a/examples/cmdline/bcppmake/outplain.bpr
+++ b/examples/cmdline/bcppmake/outplain.bpr
@@ -1,96 +1,96 @@
-<?xml version='1.0' encoding='utf-8' ?>
-<!-- C++Builder XML Project -->
-<PROJECT>
- <MACROS>
- <VERSION value="BCB.05.03"/>
- <PROJECT value="outplain.exe"/>
- <OBJFILES value="..\outplain.obj"/>
- <RESFILES value=""/>
- <IDLFILES value=""/>
- <IDLGENFILES value=""/>
- <DEFFILE value=""/>
- <RESDEPEN value="$(RESFILES)"/>
- <LIBFILES value="..\..\..\..\icu-sword\as_is\borland\icuin.lib
- ..\..\..\..\icu-sword\as_is\borland\icudatab.lib
- ..\..\..\..\icu-sword\as_is\borland\icuuc.lib ..\..\..\lib\libsword.lib
- ..\..\..\..\biblecs\clucene\clucene.lib"/>
- <LIBRARIES value=""/>
- <SPARELIBS value=""/>
- <PACKAGES value="VCL50.bpi VCLX50.bpi bcbsmp50.bpi QRPT50.bpi VCLDB50.bpi VCLBDE50.bpi
- ibsmp50.bpi VCLDBX50.bpi TEEUI50.bpi TEEDB50.bpi TEE50.bpi TEEQR50.bpi
- VCLIB50.bpi bcbie50.bpi VCLIE50.bpi INETDB50.bpi INET50.bpi NMFAST50.bpi
- dclocx50.bpi bcb2kaxserver50.bpi"/>
- <PATHCPP value=".;.."/>
- <PATHPAS value=".;"/>
- <PATHRC value=".;"/>
- <PATHASM value=".;"/>
- <DEBUGLIBPATH value="$(BCB)\lib\debug"/>
- <RELEASELIBPATH value="$(BCB)\lib\release"/>
- <LINKER value="tlink32"/>
- <USERDEFINES value="_ICU_;_ICUSWORD_;USBINARY;U_HAVE_PLACEMENT_NEW=0;USELUCENE;_CL_DISABLE_MULTITHREADING"/>
- <SYSDEFINES value="NO_STRICT;_NO_VCL"/>
- <MAINSOURCE value="outplain.bpf"/>
- <INCLUDEPATH value="..\;..\..\..\include;$(BCB)\include;$(BCB)\include\vcl;..\..\..\..\icu-sword\source\common;..\..\..\..\icu-sword\source\i18n"/>
- <LIBPATH value="..\;..\..\..\lib;$(BCB)\lib\obj;$(BCB)\lib"/>
- <WARNINGS value="-w-par"/>
- </MACROS>
- <OPTIONS>
- <IDLCFLAGS value="-I..\. -I.. -I..\..\..\..\include -I$(BCB)\include -I$(BCB)\include\vcl
- -I..\..\..\..\icu-sword\source\common -I..\..\..\..\icu-sword\source\i18n
- -src_suffix cpp -D_ICU_ -D_ICUSWORD_ -DUSBINARY -DU_HAVE_PLACEMENT_NEW=0
- -DUSELUCENE -D_CL_DISABLE_MULTITHREADING -boa"/>
- <CFLAG1 value="-O2 -H=$(BCB)\lib\vcl50.csm -Hc -Vx -Ve -X- -a8 -6 -b- -k- -vi -tWC -tWM -c"/>
- <PFLAGS value="-$Y- -$L- -$D- -v -JPHNE -M"/>
- <RFLAGS value=""/>
- <AFLAGS value="/mx /w2 /zn"/>
- <LFLAGS value="-D&quot;&quot; -ap -Tpe -x -Gn"/>
- </OPTIONS>
- <LINKER>
- <ALLOBJ value="c0x32.obj $(OBJFILES)"/>
- <ALLRES value="$(RESFILES)"/>
- <ALLLIB value="$(LIBFILES) $(LIBRARIES) import32.lib cw32mt.lib"/>
- </LINKER>
- <IDEOPTIONS>
-[Version Info]
-IncludeVerInfo=0
-AutoIncBuild=0
-MajorVer=1
-MinorVer=0
-Release=0
-Build=0
-Debug=0
-PreRelease=0
-Special=0
-Private=0
-DLL=0
-Locale=1033
-CodePage=1252
-
-[Version Info Keys]
-CompanyName=
-FileDescription=
-FileVersion=1.0.0.0
-InternalName=
-LegalCopyright=
-LegalTrademarks=
-OriginalFilename=
-ProductName=
-ProductVersion=1.0.0.0
-Comments=
-
-[Debugging]
-DebugSourceDirs=$(BCB)\source\vcl
-
-[Parameters]
-RunParams=./nasb nasb.xml
-HostApplication=
-RemoteHost=
-RemotePath=
-RemoteDebug=0
-
-[Language]
-ActiveLang=
-ProjectLang=
-RootDir=
- </IDEOPTIONS>
-</PROJECT>
+<?xml version='1.0' encoding='utf-8' ?>
+<!-- C++Builder XML Project -->
+<PROJECT>
+ <MACROS>
+ <VERSION value="BCB.05.03"/>
+ <PROJECT value="outplain.exe"/>
+ <OBJFILES value="..\outplain.obj"/>
+ <RESFILES value=""/>
+ <IDLFILES value=""/>
+ <IDLGENFILES value=""/>
+ <DEFFILE value=""/>
+ <RESDEPEN value="$(RESFILES)"/>
+ <LIBFILES value="..\..\..\..\icu-sword\as_is\borland\icuin.lib
+ ..\..\..\..\icu-sword\as_is\borland\icudatab.lib
+ ..\..\..\..\icu-sword\as_is\borland\icuuc.lib ..\..\..\lib\libsword.lib
+ ..\..\..\..\biblecs\clucene\clucene.lib"/>
+ <LIBRARIES value=""/>
+ <SPARELIBS value=""/>
+ <PACKAGES value="VCL50.bpi VCLX50.bpi bcbsmp50.bpi QRPT50.bpi VCLDB50.bpi VCLBDE50.bpi
+ ibsmp50.bpi VCLDBX50.bpi TEEUI50.bpi TEEDB50.bpi TEE50.bpi TEEQR50.bpi
+ VCLIB50.bpi bcbie50.bpi VCLIE50.bpi INETDB50.bpi INET50.bpi NMFAST50.bpi
+ dclocx50.bpi bcb2kaxserver50.bpi"/>
+ <PATHCPP value=".;.."/>
+ <PATHPAS value=".;"/>
+ <PATHRC value=".;"/>
+ <PATHASM value=".;"/>
+ <DEBUGLIBPATH value="$(BCB)\lib\debug"/>
+ <RELEASELIBPATH value="$(BCB)\lib\release"/>
+ <LINKER value="tlink32"/>
+ <USERDEFINES value="_ICU_;_ICUSWORD_;USBINARY;U_HAVE_PLACEMENT_NEW=0;USELUCENE;_CL_DISABLE_MULTITHREADING"/>
+ <SYSDEFINES value="NO_STRICT;_NO_VCL"/>
+ <MAINSOURCE value="outplain.bpf"/>
+ <INCLUDEPATH value="..\;..\..\..\include;$(BCB)\include;$(BCB)\include\vcl;..\..\..\..\icu-sword\source\common;..\..\..\..\icu-sword\source\i18n"/>
+ <LIBPATH value="..\;..\..\..\lib;$(BCB)\lib\obj;$(BCB)\lib"/>
+ <WARNINGS value="-w-par"/>
+ </MACROS>
+ <OPTIONS>
+ <IDLCFLAGS value="-I..\. -I.. -I..\..\..\..\include -I$(BCB)\include -I$(BCB)\include\vcl
+ -I..\..\..\..\icu-sword\source\common -I..\..\..\..\icu-sword\source\i18n
+ -src_suffix cpp -D_ICU_ -D_ICUSWORD_ -DUSBINARY -DU_HAVE_PLACEMENT_NEW=0
+ -DUSELUCENE -D_CL_DISABLE_MULTITHREADING -boa"/>
+ <CFLAG1 value="-O2 -H=$(BCB)\lib\vcl50.csm -Hc -Vx -Ve -X- -a8 -6 -b- -k- -vi -tWC -tWM -c"/>
+ <PFLAGS value="-$Y- -$L- -$D- -v -JPHNE -M"/>
+ <RFLAGS value=""/>
+ <AFLAGS value="/mx /w2 /zn"/>
+ <LFLAGS value="-D&quot;&quot; -ap -Tpe -x -Gn"/>
+ </OPTIONS>
+ <LINKER>
+ <ALLOBJ value="c0x32.obj $(OBJFILES)"/>
+ <ALLRES value="$(RESFILES)"/>
+ <ALLLIB value="$(LIBFILES) $(LIBRARIES) import32.lib cw32mt.lib"/>
+ </LINKER>
+ <IDEOPTIONS>
+[Version Info]
+IncludeVerInfo=0
+AutoIncBuild=0
+MajorVer=1
+MinorVer=0
+Release=0
+Build=0
+Debug=0
+PreRelease=0
+Special=0
+Private=0
+DLL=0
+Locale=1033
+CodePage=1252
+
+[Version Info Keys]
+CompanyName=
+FileDescription=
+FileVersion=1.0.0.0
+InternalName=
+LegalCopyright=
+LegalTrademarks=
+OriginalFilename=
+ProductName=
+ProductVersion=1.0.0.0
+Comments=
+
+[Debugging]
+DebugSourceDirs=$(BCB)\source\vcl
+
+[Parameters]
+RunParams=./nasb nasb.xml
+HostApplication=
+RemoteHost=
+RemotePath=
+RemoteDebug=0
+
+[Language]
+ActiveLang=
+ProjectLang=
+RootDir=
+ </IDEOPTIONS>
+</PROJECT>
diff --git a/examples/cmdline/bcppmake/outrender.bpf b/examples/cmdline/bcppmake/outrender.bpf
index 0ca9e33..6ff21ee 100644
--- a/examples/cmdline/bcppmake/outrender.bpf
+++ b/examples/cmdline/bcppmake/outrender.bpf
@@ -1,11 +1,11 @@
-USEUNIT("..\outrender.cpp");
-USELIB("..\..\..\..\icu-sword\as_is\borland\icuin.lib");
-USELIB("..\..\..\..\icu-sword\as_is\borland\icudatab.lib");
-USELIB("..\..\..\..\icu-sword\as_is\borland\icuuc.lib");
-USELIB("..\..\..\lib\libsword.lib");
-USELIB("..\..\..\..\biblecs\clucene\clucene.lib");
-//---------------------------------------------------------------------------
-This file is used by the project manager only and should be treated like the project file
-
-
+USEUNIT("..\outrender.cpp");
+USELIB("..\..\..\..\icu-sword\as_is\borland\icuin.lib");
+USELIB("..\..\..\..\icu-sword\as_is\borland\icudatab.lib");
+USELIB("..\..\..\..\icu-sword\as_is\borland\icuuc.lib");
+USELIB("..\..\..\lib\libsword.lib");
+USELIB("..\..\..\..\biblecs\clucene\clucene.lib");
+//---------------------------------------------------------------------------
+This file is used by the project manager only and should be treated like the project file
+
+
main \ No newline at end of file
diff --git a/examples/cmdline/bcppmake/outrender.bpr b/examples/cmdline/bcppmake/outrender.bpr
index 6c2438a..609e1ec 100644
--- a/examples/cmdline/bcppmake/outrender.bpr
+++ b/examples/cmdline/bcppmake/outrender.bpr
@@ -1,96 +1,96 @@
-<?xml version='1.0' encoding='utf-8' ?>
-<!-- C++Builder XML Project -->
-<PROJECT>
- <MACROS>
- <VERSION value="BCB.05.03"/>
- <PROJECT value="outrender.exe"/>
- <OBJFILES value="..\outrender.obj"/>
- <RESFILES value=""/>
- <IDLFILES value=""/>
- <IDLGENFILES value=""/>
- <DEFFILE value=""/>
- <RESDEPEN value="$(RESFILES)"/>
- <LIBFILES value="..\..\..\..\icu-sword\as_is\borland\icuin.lib
- ..\..\..\..\icu-sword\as_is\borland\icudatab.lib
- ..\..\..\..\icu-sword\as_is\borland\icuuc.lib ..\..\..\lib\libsword.lib
- ..\..\..\..\biblecs\clucene\clucene.lib"/>
- <LIBRARIES value=""/>
- <SPARELIBS value=""/>
- <PACKAGES value="VCL50.bpi VCLX50.bpi bcbsmp50.bpi QRPT50.bpi VCLDB50.bpi VCLBDE50.bpi
- ibsmp50.bpi VCLDBX50.bpi TEEUI50.bpi TEEDB50.bpi TEE50.bpi TEEQR50.bpi
- VCLIB50.bpi bcbie50.bpi VCLIE50.bpi INETDB50.bpi INET50.bpi NMFAST50.bpi
- dclocx50.bpi bcb2kaxserver50.bpi"/>
- <PATHCPP value=".;.."/>
- <PATHPAS value=".;"/>
- <PATHRC value=".;"/>
- <PATHASM value=".;"/>
- <DEBUGLIBPATH value="$(BCB)\lib\debug"/>
- <RELEASELIBPATH value="$(BCB)\lib\release"/>
- <LINKER value="tlink32"/>
- <USERDEFINES value="_ICU_;_ICUSWORD_;USBINARY;U_HAVE_PLACEMENT_NEW=0;USELUCENE;_CL_DISABLE_MULTITHREADING"/>
- <SYSDEFINES value="NO_STRICT;_NO_VCL"/>
- <MAINSOURCE value="outrender.bpf"/>
- <INCLUDEPATH value="..\;..\..\..\include;$(BCB)\include;$(BCB)\include\vcl;..\..\..\..\icu-sword\source\common;..\..\..\..\icu-sword\source\i18n"/>
- <LIBPATH value="..\;..\..\..\lib;$(BCB)\lib\obj;$(BCB)\lib"/>
- <WARNINGS value="-w-par"/>
- </MACROS>
- <OPTIONS>
- <IDLCFLAGS value="-I..\. -I.. -I..\..\..\..\include -I$(BCB)\include -I$(BCB)\include\vcl
- -I..\..\..\..\icu-sword\source\common -I..\..\..\..\icu-sword\source\i18n
- -src_suffix cpp -D_ICU_ -D_ICUSWORD_ -DUSBINARY -DU_HAVE_PLACEMENT_NEW=0
- -DUSELUCENE -D_CL_DISABLE_MULTITHREADING -boa"/>
- <CFLAG1 value="-O2 -H=$(BCB)\lib\vcl50.csm -Hc -Vx -Ve -X- -a8 -6 -b- -k- -vi -tWC -tWM -c"/>
- <PFLAGS value="-$Y- -$L- -$D- -v -JPHNE -M"/>
- <RFLAGS value=""/>
- <AFLAGS value="/mx /w2 /zn"/>
- <LFLAGS value="-D&quot;&quot; -ap -Tpe -x -Gn"/>
- </OPTIONS>
- <LINKER>
- <ALLOBJ value="c0x32.obj $(OBJFILES)"/>
- <ALLRES value="$(RESFILES)"/>
- <ALLLIB value="$(LIBFILES) $(LIBRARIES) import32.lib cw32mt.lib"/>
- </LINKER>
- <IDEOPTIONS>
-[Version Info]
-IncludeVerInfo=0
-AutoIncBuild=0
-MajorVer=1
-MinorVer=0
-Release=0
-Build=0
-Debug=0
-PreRelease=0
-Special=0
-Private=0
-DLL=0
-Locale=1033
-CodePage=1252
-
-[Version Info Keys]
-CompanyName=
-FileDescription=
-FileVersion=1.0.0.0
-InternalName=
-LegalCopyright=
-LegalTrademarks=
-OriginalFilename=
-ProductName=
-ProductVersion=1.0.0.0
-Comments=
-
-[Debugging]
-DebugSourceDirs=$(BCB)\source\vcl
-
-[Parameters]
-RunParams=./nasb nasb.xml
-HostApplication=
-RemoteHost=
-RemotePath=
-RemoteDebug=0
-
-[Language]
-ActiveLang=
-ProjectLang=
-RootDir=
- </IDEOPTIONS>
-</PROJECT>
+<?xml version='1.0' encoding='utf-8' ?>
+<!-- C++Builder XML Project -->
+<PROJECT>
+ <MACROS>
+ <VERSION value="BCB.05.03"/>
+ <PROJECT value="outrender.exe"/>
+ <OBJFILES value="..\outrender.obj"/>
+ <RESFILES value=""/>
+ <IDLFILES value=""/>
+ <IDLGENFILES value=""/>
+ <DEFFILE value=""/>
+ <RESDEPEN value="$(RESFILES)"/>
+ <LIBFILES value="..\..\..\..\icu-sword\as_is\borland\icuin.lib
+ ..\..\..\..\icu-sword\as_is\borland\icudatab.lib
+ ..\..\..\..\icu-sword\as_is\borland\icuuc.lib ..\..\..\lib\libsword.lib
+ ..\..\..\..\biblecs\clucene\clucene.lib"/>
+ <LIBRARIES value=""/>
+ <SPARELIBS value=""/>
+ <PACKAGES value="VCL50.bpi VCLX50.bpi bcbsmp50.bpi QRPT50.bpi VCLDB50.bpi VCLBDE50.bpi
+ ibsmp50.bpi VCLDBX50.bpi TEEUI50.bpi TEEDB50.bpi TEE50.bpi TEEQR50.bpi
+ VCLIB50.bpi bcbie50.bpi VCLIE50.bpi INETDB50.bpi INET50.bpi NMFAST50.bpi
+ dclocx50.bpi bcb2kaxserver50.bpi"/>
+ <PATHCPP value=".;.."/>
+ <PATHPAS value=".;"/>
+ <PATHRC value=".;"/>
+ <PATHASM value=".;"/>
+ <DEBUGLIBPATH value="$(BCB)\lib\debug"/>
+ <RELEASELIBPATH value="$(BCB)\lib\release"/>
+ <LINKER value="tlink32"/>
+ <USERDEFINES value="_ICU_;_ICUSWORD_;USBINARY;U_HAVE_PLACEMENT_NEW=0;USELUCENE;_CL_DISABLE_MULTITHREADING"/>
+ <SYSDEFINES value="NO_STRICT;_NO_VCL"/>
+ <MAINSOURCE value="outrender.bpf"/>
+ <INCLUDEPATH value="..\;..\..\..\include;$(BCB)\include;$(BCB)\include\vcl;..\..\..\..\icu-sword\source\common;..\..\..\..\icu-sword\source\i18n"/>
+ <LIBPATH value="..\;..\..\..\lib;$(BCB)\lib\obj;$(BCB)\lib"/>
+ <WARNINGS value="-w-par"/>
+ </MACROS>
+ <OPTIONS>
+ <IDLCFLAGS value="-I..\. -I.. -I..\..\..\..\include -I$(BCB)\include -I$(BCB)\include\vcl
+ -I..\..\..\..\icu-sword\source\common -I..\..\..\..\icu-sword\source\i18n
+ -src_suffix cpp -D_ICU_ -D_ICUSWORD_ -DUSBINARY -DU_HAVE_PLACEMENT_NEW=0
+ -DUSELUCENE -D_CL_DISABLE_MULTITHREADING -boa"/>
+ <CFLAG1 value="-O2 -H=$(BCB)\lib\vcl50.csm -Hc -Vx -Ve -X- -a8 -6 -b- -k- -vi -tWC -tWM -c"/>
+ <PFLAGS value="-$Y- -$L- -$D- -v -JPHNE -M"/>
+ <RFLAGS value=""/>
+ <AFLAGS value="/mx /w2 /zn"/>
+ <LFLAGS value="-D&quot;&quot; -ap -Tpe -x -Gn"/>
+ </OPTIONS>
+ <LINKER>
+ <ALLOBJ value="c0x32.obj $(OBJFILES)"/>
+ <ALLRES value="$(RESFILES)"/>
+ <ALLLIB value="$(LIBFILES) $(LIBRARIES) import32.lib cw32mt.lib"/>
+ </LINKER>
+ <IDEOPTIONS>
+[Version Info]
+IncludeVerInfo=0
+AutoIncBuild=0
+MajorVer=1
+MinorVer=0
+Release=0
+Build=0
+Debug=0
+PreRelease=0
+Special=0
+Private=0
+DLL=0
+Locale=1033
+CodePage=1252
+
+[Version Info Keys]
+CompanyName=
+FileDescription=
+FileVersion=1.0.0.0
+InternalName=
+LegalCopyright=
+LegalTrademarks=
+OriginalFilename=
+ProductName=
+ProductVersion=1.0.0.0
+Comments=
+
+[Debugging]
+DebugSourceDirs=$(BCB)\source\vcl
+
+[Parameters]
+RunParams=./nasb nasb.xml
+HostApplication=
+RemoteHost=
+RemotePath=
+RemoteDebug=0
+
+[Language]
+ActiveLang=
+ProjectLang=
+RootDir=
+ </IDEOPTIONS>
+</PROJECT>
diff --git a/examples/cmdline/bcppmake/search.bpf b/examples/cmdline/bcppmake/search.bpf
index 438ee60..b85f692 100644
--- a/examples/cmdline/bcppmake/search.bpf
+++ b/examples/cmdline/bcppmake/search.bpf
@@ -1,11 +1,11 @@
-USEUNIT("..\search.cpp");
-USELIB("..\..\..\..\icu-sword\as_is\borland\icuin.lib");
-USELIB("..\..\..\..\icu-sword\as_is\borland\icudatab.lib");
-USELIB("..\..\..\..\icu-sword\as_is\borland\icuuc.lib");
-USELIB("..\..\..\lib\libsword.lib");
-USELIB("..\..\..\..\biblecs\clucene\clucene.lib");
-//---------------------------------------------------------------------------
-This file is used by the project manager only and should be treated like the project file
-
-
-main
+USEUNIT("..\search.cpp");
+USELIB("..\..\..\..\icu-sword\as_is\borland\icuin.lib");
+USELIB("..\..\..\..\icu-sword\as_is\borland\icudatab.lib");
+USELIB("..\..\..\..\icu-sword\as_is\borland\icuuc.lib");
+USELIB("..\..\..\lib\libsword.lib");
+USELIB("..\..\..\..\biblecs\clucene\clucene.lib");
+//---------------------------------------------------------------------------
+This file is used by the project manager only and should be treated like the project file
+
+
+main
diff --git a/examples/cmdline/bcppmake/search.bpr b/examples/cmdline/bcppmake/search.bpr
index 23a79ca..13417b3 100644
--- a/examples/cmdline/bcppmake/search.bpr
+++ b/examples/cmdline/bcppmake/search.bpr
@@ -1,96 +1,96 @@
-<?xml version='1.0' encoding='utf-8' ?>
-<!-- C++Builder XML Project -->
-<PROJECT>
- <MACROS>
- <VERSION value="BCB.05.03"/>
- <PROJECT value="search.exe"/>
- <OBJFILES value="..\search.obj"/>
- <RESFILES value=""/>
- <IDLFILES value=""/>
- <IDLGENFILES value=""/>
- <DEFFILE value=""/>
- <RESDEPEN value="$(RESFILES)"/>
- <LIBFILES value="..\..\..\..\icu-sword\as_is\borland\icuin.lib
- ..\..\..\..\icu-sword\as_is\borland\icudatab.lib
- ..\..\..\..\icu-sword\as_is\borland\icuuc.lib ..\..\..\lib\libsword.lib
- ..\..\..\..\biblecs\clucene\clucene.lib"/>
- <LIBRARIES value=""/>
- <SPARELIBS value=""/>
- <PACKAGES value="VCL50.bpi VCLX50.bpi bcbsmp50.bpi QRPT50.bpi VCLDB50.bpi VCLBDE50.bpi
- ibsmp50.bpi VCLDBX50.bpi TEEUI50.bpi TEEDB50.bpi TEE50.bpi TEEQR50.bpi
- VCLIB50.bpi bcbie50.bpi VCLIE50.bpi INETDB50.bpi INET50.bpi NMFAST50.bpi
- dclocx50.bpi bcb2kaxserver50.bpi"/>
- <PATHCPP value=".;.."/>
- <PATHPAS value=".;"/>
- <PATHRC value=".;"/>
- <PATHASM value=".;"/>
- <DEBUGLIBPATH value="$(BCB)\lib\debug"/>
- <RELEASELIBPATH value="$(BCB)\lib\release"/>
- <LINKER value="tlink32"/>
- <USERDEFINES value="_ICU_;_ICUSWORD_;USBINARY;U_HAVE_PLACEMENT_NEW=0;USELUCENE;_CL_DISABLE_MULTITHREADING"/>
- <SYSDEFINES value="NO_STRICT;_NO_VCL"/>
- <MAINSOURCE value="search.bpf"/>
- <INCLUDEPATH value="..\;..\..\..\include;$(BCB)\include;$(BCB)\include\vcl;..\..\..\..\icu-sword\source\common;..\..\..\..\icu-sword\source\i18n"/>
- <LIBPATH value="..\;..\..\..\lib;$(BCB)\lib\obj;$(BCB)\lib"/>
- <WARNINGS value="-w-par"/>
- </MACROS>
- <OPTIONS>
- <IDLCFLAGS value="-I..\. -I.. -I..\..\..\..\include -I$(BCB)\include -I$(BCB)\include\vcl
- -I..\..\..\..\icu-sword\source\common -I..\..\..\..\icu-sword\source\i18n
- -src_suffix cpp -D_ICU_ -D_ICUSWORD_ -DUSBINARY -DU_HAVE_PLACEMENT_NEW=0
- -DUSELUCENE -D_CL_DISABLE_MULTITHREADING -boa"/>
- <CFLAG1 value="-O2 -H=$(BCB)\lib\vcl50.csm -Hc -Vx -Ve -X- -a8 -6 -b- -k- -vi -tWC -tWM -c"/>
- <PFLAGS value="-$Y- -$L- -$D- -v -JPHNE -M"/>
- <RFLAGS value=""/>
- <AFLAGS value="/mx /w2 /zn"/>
- <LFLAGS value="-D&quot;&quot; -ap -Tpe -x -Gn"/>
- </OPTIONS>
- <LINKER>
- <ALLOBJ value="c0x32.obj $(OBJFILES)"/>
- <ALLRES value="$(RESFILES)"/>
- <ALLLIB value="$(LIBFILES) $(LIBRARIES) import32.lib cw32mt.lib"/>
- </LINKER>
- <IDEOPTIONS>
-[Version Info]
-IncludeVerInfo=0
-AutoIncBuild=0
-MajorVer=1
-MinorVer=0
-Release=0
-Build=0
-Debug=0
-PreRelease=0
-Special=0
-Private=0
-DLL=0
-Locale=1033
-CodePage=1252
-
-[Version Info Keys]
-CompanyName=
-FileDescription=
-FileVersion=1.0.0.0
-InternalName=
-LegalCopyright=
-LegalTrademarks=
-OriginalFilename=
-ProductName=
-ProductVersion=1.0.0.0
-Comments=
-
-[Debugging]
-DebugSourceDirs=$(BCB)\source\vcl
-
-[Parameters]
-RunParams=./nasb nasb.xml
-HostApplication=
-RemoteHost=
-RemotePath=
-RemoteDebug=0
-
-[Language]
-ActiveLang=
-ProjectLang=
-RootDir=
- </IDEOPTIONS>
-</PROJECT>
+<?xml version='1.0' encoding='utf-8' ?>
+<!-- C++Builder XML Project -->
+<PROJECT>
+ <MACROS>
+ <VERSION value="BCB.05.03"/>
+ <PROJECT value="search.exe"/>
+ <OBJFILES value="..\search.obj"/>
+ <RESFILES value=""/>
+ <IDLFILES value=""/>
+ <IDLGENFILES value=""/>
+ <DEFFILE value=""/>
+ <RESDEPEN value="$(RESFILES)"/>
+ <LIBFILES value="..\..\..\..\icu-sword\as_is\borland\icuin.lib
+ ..\..\..\..\icu-sword\as_is\borland\icudatab.lib
+ ..\..\..\..\icu-sword\as_is\borland\icuuc.lib ..\..\..\lib\libsword.lib
+ ..\..\..\..\biblecs\clucene\clucene.lib"/>
+ <LIBRARIES value=""/>
+ <SPARELIBS value=""/>
+ <PACKAGES value="VCL50.bpi VCLX50.bpi bcbsmp50.bpi QRPT50.bpi VCLDB50.bpi VCLBDE50.bpi
+ ibsmp50.bpi VCLDBX50.bpi TEEUI50.bpi TEEDB50.bpi TEE50.bpi TEEQR50.bpi
+ VCLIB50.bpi bcbie50.bpi VCLIE50.bpi INETDB50.bpi INET50.bpi NMFAST50.bpi
+ dclocx50.bpi bcb2kaxserver50.bpi"/>
+ <PATHCPP value=".;.."/>
+ <PATHPAS value=".;"/>
+ <PATHRC value=".;"/>
+ <PATHASM value=".;"/>
+ <DEBUGLIBPATH value="$(BCB)\lib\debug"/>
+ <RELEASELIBPATH value="$(BCB)\lib\release"/>
+ <LINKER value="tlink32"/>
+ <USERDEFINES value="_ICU_;_ICUSWORD_;USBINARY;U_HAVE_PLACEMENT_NEW=0;USELUCENE;_CL_DISABLE_MULTITHREADING"/>
+ <SYSDEFINES value="NO_STRICT;_NO_VCL"/>
+ <MAINSOURCE value="search.bpf"/>
+ <INCLUDEPATH value="..\;..\..\..\include;$(BCB)\include;$(BCB)\include\vcl;..\..\..\..\icu-sword\source\common;..\..\..\..\icu-sword\source\i18n"/>
+ <LIBPATH value="..\;..\..\..\lib;$(BCB)\lib\obj;$(BCB)\lib"/>
+ <WARNINGS value="-w-par"/>
+ </MACROS>
+ <OPTIONS>
+ <IDLCFLAGS value="-I..\. -I.. -I..\..\..\..\include -I$(BCB)\include -I$(BCB)\include\vcl
+ -I..\..\..\..\icu-sword\source\common -I..\..\..\..\icu-sword\source\i18n
+ -src_suffix cpp -D_ICU_ -D_ICUSWORD_ -DUSBINARY -DU_HAVE_PLACEMENT_NEW=0
+ -DUSELUCENE -D_CL_DISABLE_MULTITHREADING -boa"/>
+ <CFLAG1 value="-O2 -H=$(BCB)\lib\vcl50.csm -Hc -Vx -Ve -X- -a8 -6 -b- -k- -vi -tWC -tWM -c"/>
+ <PFLAGS value="-$Y- -$L- -$D- -v -JPHNE -M"/>
+ <RFLAGS value=""/>
+ <AFLAGS value="/mx /w2 /zn"/>
+ <LFLAGS value="-D&quot;&quot; -ap -Tpe -x -Gn"/>
+ </OPTIONS>
+ <LINKER>
+ <ALLOBJ value="c0x32.obj $(OBJFILES)"/>
+ <ALLRES value="$(RESFILES)"/>
+ <ALLLIB value="$(LIBFILES) $(LIBRARIES) import32.lib cw32mt.lib"/>
+ </LINKER>
+ <IDEOPTIONS>
+[Version Info]
+IncludeVerInfo=0
+AutoIncBuild=0
+MajorVer=1
+MinorVer=0
+Release=0
+Build=0
+Debug=0
+PreRelease=0
+Special=0
+Private=0
+DLL=0
+Locale=1033
+CodePage=1252
+
+[Version Info Keys]
+CompanyName=
+FileDescription=
+FileVersion=1.0.0.0
+InternalName=
+LegalCopyright=
+LegalTrademarks=
+OriginalFilename=
+ProductName=
+ProductVersion=1.0.0.0
+Comments=
+
+[Debugging]
+DebugSourceDirs=$(BCB)\source\vcl
+
+[Parameters]
+RunParams=./nasb nasb.xml
+HostApplication=
+RemoteHost=
+RemotePath=
+RemoteDebug=0
+
+[Language]
+ActiveLang=
+ProjectLang=
+RootDir=
+ </IDEOPTIONS>
+</PROJECT>
diff --git a/examples/cmdline/bcppmake/threaded_search.bpf b/examples/cmdline/bcppmake/threaded_search.bpf
index f69800a..8871afd 100644
--- a/examples/cmdline/bcppmake/threaded_search.bpf
+++ b/examples/cmdline/bcppmake/threaded_search.bpf
@@ -1,11 +1,11 @@
-USEUNIT("..\threaded_search.cpp");
-USELIB("..\..\..\..\icu-sword\as_is\borland\icuin.lib");
-USELIB("..\..\..\..\icu-sword\as_is\borland\icudatab.lib");
-USELIB("..\..\..\..\icu-sword\as_is\borland\icuuc.lib");
-USELIB("..\..\..\lib\libsword.lib");
-USELIB("..\..\..\..\biblecs\clucene\clucene.lib");
-//---------------------------------------------------------------------------
-This file is used by the project manager only and should be treated like the project file
-
-
+USEUNIT("..\threaded_search.cpp");
+USELIB("..\..\..\..\icu-sword\as_is\borland\icuin.lib");
+USELIB("..\..\..\..\icu-sword\as_is\borland\icudatab.lib");
+USELIB("..\..\..\..\icu-sword\as_is\borland\icuuc.lib");
+USELIB("..\..\..\lib\libsword.lib");
+USELIB("..\..\..\..\biblecs\clucene\clucene.lib");
+//---------------------------------------------------------------------------
+This file is used by the project manager only and should be treated like the project file
+
+
main \ No newline at end of file
diff --git a/examples/cmdline/bcppmake/threaded_search.bpr b/examples/cmdline/bcppmake/threaded_search.bpr
index a666afa..5459afd 100644
--- a/examples/cmdline/bcppmake/threaded_search.bpr
+++ b/examples/cmdline/bcppmake/threaded_search.bpr
@@ -1,96 +1,96 @@
-<?xml version='1.0' encoding='utf-8' ?>
-<!-- C++Builder XML Project -->
-<PROJECT>
- <MACROS>
- <VERSION value="BCB.05.03"/>
- <PROJECT value="threaded_search.exe"/>
- <OBJFILES value="..\threaded_search.obj"/>
- <RESFILES value=""/>
- <IDLFILES value=""/>
- <IDLGENFILES value=""/>
- <DEFFILE value=""/>
- <RESDEPEN value="$(RESFILES)"/>
- <LIBFILES value="..\..\..\..\icu-sword\as_is\borland\icuin.lib
- ..\..\..\..\icu-sword\as_is\borland\icudatab.lib
- ..\..\..\..\icu-sword\as_is\borland\icuuc.lib ..\..\..\lib\libsword.lib
- ..\..\..\..\biblecs\clucene\clucene.lib"/>
- <LIBRARIES value=""/>
- <SPARELIBS value=""/>
- <PACKAGES value="VCL50.bpi VCLX50.bpi bcbsmp50.bpi QRPT50.bpi VCLDB50.bpi VCLBDE50.bpi
- ibsmp50.bpi VCLDBX50.bpi TEEUI50.bpi TEEDB50.bpi TEE50.bpi TEEQR50.bpi
- VCLIB50.bpi bcbie50.bpi VCLIE50.bpi INETDB50.bpi INET50.bpi NMFAST50.bpi
- dclocx50.bpi bcb2kaxserver50.bpi"/>
- <PATHCPP value=".;.."/>
- <PATHPAS value=".;"/>
- <PATHRC value=".;"/>
- <PATHASM value=".;"/>
- <DEBUGLIBPATH value="$(BCB)\lib\debug"/>
- <RELEASELIBPATH value="$(BCB)\lib\release"/>
- <LINKER value="tlink32"/>
- <USERDEFINES value="_ICU_;_ICUSWORD_;USBINARY;U_HAVE_PLACEMENT_NEW=0;USELUCENE;_CL_DISABLE_MULTITHREADING"/>
- <SYSDEFINES value="NO_STRICT;_NO_VCL"/>
- <MAINSOURCE value="threaded_search.bpf"/>
- <INCLUDEPATH value="..\;..\..\..\include;$(BCB)\include;$(BCB)\include\vcl;..\..\..\..\icu-sword\source\common;..\..\..\..\icu-sword\source\i18n"/>
- <LIBPATH value="..\;..\..\..\lib;$(BCB)\lib\obj;$(BCB)\lib"/>
- <WARNINGS value="-w-par"/>
- </MACROS>
- <OPTIONS>
- <IDLCFLAGS value="-I..\. -I.. -I..\..\..\..\include -I$(BCB)\include -I$(BCB)\include\vcl
- -I..\..\..\..\icu-sword\source\common -I..\..\..\..\icu-sword\source\i18n
- -src_suffix cpp -D_ICU_ -D_ICUSWORD_ -DUSBINARY -DU_HAVE_PLACEMENT_NEW=0
- -DUSELUCENE -D_CL_DISABLE_MULTITHREADING -boa"/>
- <CFLAG1 value="-O2 -H=$(BCB)\lib\vcl50.csm -Hc -Vx -Ve -X- -a8 -6 -b- -k- -vi -tWC -tWM -c"/>
- <PFLAGS value="-$Y- -$L- -$D- -v -JPHNE -M"/>
- <RFLAGS value=""/>
- <AFLAGS value="/mx /w2 /zn"/>
- <LFLAGS value="-D&quot;&quot; -ap -Tpe -x -Gn"/>
- </OPTIONS>
- <LINKER>
- <ALLOBJ value="c0x32.obj $(OBJFILES)"/>
- <ALLRES value="$(RESFILES)"/>
- <ALLLIB value="$(LIBFILES) $(LIBRARIES) import32.lib cw32mt.lib"/>
- </LINKER>
- <IDEOPTIONS>
-[Version Info]
-IncludeVerInfo=0
-AutoIncBuild=0
-MajorVer=1
-MinorVer=0
-Release=0
-Build=0
-Debug=0
-PreRelease=0
-Special=0
-Private=0
-DLL=0
-Locale=1033
-CodePage=1252
-
-[Version Info Keys]
-CompanyName=
-FileDescription=
-FileVersion=1.0.0.0
-InternalName=
-LegalCopyright=
-LegalTrademarks=
-OriginalFilename=
-ProductName=
-ProductVersion=1.0.0.0
-Comments=
-
-[Debugging]
-DebugSourceDirs=$(BCB)\source\vcl
-
-[Parameters]
-RunParams=./nasb nasb.xml
-HostApplication=
-RemoteHost=
-RemotePath=
-RemoteDebug=0
-
-[Language]
-ActiveLang=
-ProjectLang=
-RootDir=
- </IDEOPTIONS>
-</PROJECT>
+<?xml version='1.0' encoding='utf-8' ?>
+<!-- C++Builder XML Project -->
+<PROJECT>
+ <MACROS>
+ <VERSION value="BCB.05.03"/>
+ <PROJECT value="threaded_search.exe"/>
+ <OBJFILES value="..\threaded_search.obj"/>
+ <RESFILES value=""/>
+ <IDLFILES value=""/>
+ <IDLGENFILES value=""/>
+ <DEFFILE value=""/>
+ <RESDEPEN value="$(RESFILES)"/>
+ <LIBFILES value="..\..\..\..\icu-sword\as_is\borland\icuin.lib
+ ..\..\..\..\icu-sword\as_is\borland\icudatab.lib
+ ..\..\..\..\icu-sword\as_is\borland\icuuc.lib ..\..\..\lib\libsword.lib
+ ..\..\..\..\biblecs\clucene\clucene.lib"/>
+ <LIBRARIES value=""/>
+ <SPARELIBS value=""/>
+ <PACKAGES value="VCL50.bpi VCLX50.bpi bcbsmp50.bpi QRPT50.bpi VCLDB50.bpi VCLBDE50.bpi
+ ibsmp50.bpi VCLDBX50.bpi TEEUI50.bpi TEEDB50.bpi TEE50.bpi TEEQR50.bpi
+ VCLIB50.bpi bcbie50.bpi VCLIE50.bpi INETDB50.bpi INET50.bpi NMFAST50.bpi
+ dclocx50.bpi bcb2kaxserver50.bpi"/>
+ <PATHCPP value=".;.."/>
+ <PATHPAS value=".;"/>
+ <PATHRC value=".;"/>
+ <PATHASM value=".;"/>
+ <DEBUGLIBPATH value="$(BCB)\lib\debug"/>
+ <RELEASELIBPATH value="$(BCB)\lib\release"/>
+ <LINKER value="tlink32"/>
+ <USERDEFINES value="_ICU_;_ICUSWORD_;USBINARY;U_HAVE_PLACEMENT_NEW=0;USELUCENE;_CL_DISABLE_MULTITHREADING"/>
+ <SYSDEFINES value="NO_STRICT;_NO_VCL"/>
+ <MAINSOURCE value="threaded_search.bpf"/>
+ <INCLUDEPATH value="..\;..\..\..\include;$(BCB)\include;$(BCB)\include\vcl;..\..\..\..\icu-sword\source\common;..\..\..\..\icu-sword\source\i18n"/>
+ <LIBPATH value="..\;..\..\..\lib;$(BCB)\lib\obj;$(BCB)\lib"/>
+ <WARNINGS value="-w-par"/>
+ </MACROS>
+ <OPTIONS>
+ <IDLCFLAGS value="-I..\. -I.. -I..\..\..\..\include -I$(BCB)\include -I$(BCB)\include\vcl
+ -I..\..\..\..\icu-sword\source\common -I..\..\..\..\icu-sword\source\i18n
+ -src_suffix cpp -D_ICU_ -D_ICUSWORD_ -DUSBINARY -DU_HAVE_PLACEMENT_NEW=0
+ -DUSELUCENE -D_CL_DISABLE_MULTITHREADING -boa"/>
+ <CFLAG1 value="-O2 -H=$(BCB)\lib\vcl50.csm -Hc -Vx -Ve -X- -a8 -6 -b- -k- -vi -tWC -tWM -c"/>
+ <PFLAGS value="-$Y- -$L- -$D- -v -JPHNE -M"/>
+ <RFLAGS value=""/>
+ <AFLAGS value="/mx /w2 /zn"/>
+ <LFLAGS value="-D&quot;&quot; -ap -Tpe -x -Gn"/>
+ </OPTIONS>
+ <LINKER>
+ <ALLOBJ value="c0x32.obj $(OBJFILES)"/>
+ <ALLRES value="$(RESFILES)"/>
+ <ALLLIB value="$(LIBFILES) $(LIBRARIES) import32.lib cw32mt.lib"/>
+ </LINKER>
+ <IDEOPTIONS>
+[Version Info]
+IncludeVerInfo=0
+AutoIncBuild=0
+MajorVer=1
+MinorVer=0
+Release=0
+Build=0
+Debug=0
+PreRelease=0
+Special=0
+Private=0
+DLL=0
+Locale=1033
+CodePage=1252
+
+[Version Info Keys]
+CompanyName=
+FileDescription=
+FileVersion=1.0.0.0
+InternalName=
+LegalCopyright=
+LegalTrademarks=
+OriginalFilename=
+ProductName=
+ProductVersion=1.0.0.0
+Comments=
+
+[Debugging]
+DebugSourceDirs=$(BCB)\source\vcl
+
+[Parameters]
+RunParams=./nasb nasb.xml
+HostApplication=
+RemoteHost=
+RemotePath=
+RemoteDebug=0
+
+[Language]
+ActiveLang=
+ProjectLang=
+RootDir=
+ </IDEOPTIONS>
+</PROJECT>
diff --git a/examples/cmdline/bcppmake/verserangeparse.bpf b/examples/cmdline/bcppmake/verserangeparse.bpf
index 6e2bc5a..b237e62 100644
--- a/examples/cmdline/bcppmake/verserangeparse.bpf
+++ b/examples/cmdline/bcppmake/verserangeparse.bpf
@@ -1,11 +1,11 @@
-USEUNIT("..\verserangeparse.cpp");
-USELIB("..\..\..\..\icu-sword\as_is\borland\icuin.lib");
-USELIB("..\..\..\..\icu-sword\as_is\borland\icudatab.lib");
-USELIB("..\..\..\..\icu-sword\as_is\borland\icuuc.lib");
-USELIB("..\..\..\lib\libsword.lib");
-USELIB("..\..\..\..\biblecs\clucene\clucene.lib");
-//---------------------------------------------------------------------------
-This file is used by the project manager only and should be treated like the project file
-
-
+USEUNIT("..\verserangeparse.cpp");
+USELIB("..\..\..\..\icu-sword\as_is\borland\icuin.lib");
+USELIB("..\..\..\..\icu-sword\as_is\borland\icudatab.lib");
+USELIB("..\..\..\..\icu-sword\as_is\borland\icuuc.lib");
+USELIB("..\..\..\lib\libsword.lib");
+USELIB("..\..\..\..\biblecs\clucene\clucene.lib");
+//---------------------------------------------------------------------------
+This file is used by the project manager only and should be treated like the project file
+
+
main \ No newline at end of file
diff --git a/examples/cmdline/bcppmake/verserangeparse.bpr b/examples/cmdline/bcppmake/verserangeparse.bpr
index 89de5ae..aa2a4e2 100644
--- a/examples/cmdline/bcppmake/verserangeparse.bpr
+++ b/examples/cmdline/bcppmake/verserangeparse.bpr
@@ -1,96 +1,96 @@
-<?xml version='1.0' encoding='utf-8' ?>
-<!-- C++Builder XML Project -->
-<PROJECT>
- <MACROS>
- <VERSION value="BCB.05.03"/>
- <PROJECT value="verserangeparse.exe"/>
- <OBJFILES value="..\verserangeparse.obj"/>
- <RESFILES value=""/>
- <IDLFILES value=""/>
- <IDLGENFILES value=""/>
- <DEFFILE value=""/>
- <RESDEPEN value="$(RESFILES)"/>
- <LIBFILES value="..\..\..\..\icu-sword\as_is\borland\icuin.lib
- ..\..\..\..\icu-sword\as_is\borland\icudatab.lib
- ..\..\..\..\icu-sword\as_is\borland\icuuc.lib ..\..\..\lib\libsword.lib
- ..\..\..\..\biblecs\clucene\clucene.lib"/>
- <LIBRARIES value=""/>
- <SPARELIBS value=""/>
- <PACKAGES value="VCL50.bpi VCLX50.bpi bcbsmp50.bpi QRPT50.bpi VCLDB50.bpi VCLBDE50.bpi
- ibsmp50.bpi VCLDBX50.bpi TEEUI50.bpi TEEDB50.bpi TEE50.bpi TEEQR50.bpi
- VCLIB50.bpi bcbie50.bpi VCLIE50.bpi INETDB50.bpi INET50.bpi NMFAST50.bpi
- dclocx50.bpi bcb2kaxserver50.bpi"/>
- <PATHCPP value=".;.."/>
- <PATHPAS value=".;"/>
- <PATHRC value=".;"/>
- <PATHASM value=".;"/>
- <DEBUGLIBPATH value="$(BCB)\lib\debug"/>
- <RELEASELIBPATH value="$(BCB)\lib\release"/>
- <LINKER value="tlink32"/>
- <USERDEFINES value="_ICU_;_ICUSWORD_;USBINARY;U_HAVE_PLACEMENT_NEW=0;USELUCENE;_CL_DISABLE_MULTITHREADING"/>
- <SYSDEFINES value="NO_STRICT;_NO_VCL"/>
- <MAINSOURCE value="verserangeparse.bpf"/>
- <INCLUDEPATH value="..\;..\..\..\include;$(BCB)\include;$(BCB)\include\vcl;..\..\..\..\icu-sword\source\common;..\..\..\..\icu-sword\source\i18n"/>
- <LIBPATH value="..\;..\..\..\lib;$(BCB)\lib\obj;$(BCB)\lib"/>
- <WARNINGS value="-w-par"/>
- </MACROS>
- <OPTIONS>
- <IDLCFLAGS value="-I..\. -I.. -I..\..\..\..\include -I$(BCB)\include -I$(BCB)\include\vcl
- -I..\..\..\..\icu-sword\source\common -I..\..\..\..\icu-sword\source\i18n
- -src_suffix cpp -D_ICU_ -D_ICUSWORD_ -DUSBINARY -DU_HAVE_PLACEMENT_NEW=0
- -DUSELUCENE -D_CL_DISABLE_MULTITHREADING -boa"/>
- <CFLAG1 value="-O2 -H=$(BCB)\lib\vcl50.csm -Hc -Vx -Ve -X- -a8 -6 -b- -k- -vi -tWC -tWM -c"/>
- <PFLAGS value="-$Y- -$L- -$D- -v -JPHNE -M"/>
- <RFLAGS value=""/>
- <AFLAGS value="/mx /w2 /zn"/>
- <LFLAGS value="-D&quot;&quot; -ap -Tpe -x -Gn"/>
- </OPTIONS>
- <LINKER>
- <ALLOBJ value="c0x32.obj $(OBJFILES)"/>
- <ALLRES value="$(RESFILES)"/>
- <ALLLIB value="$(LIBFILES) $(LIBRARIES) import32.lib cw32mt.lib"/>
- </LINKER>
- <IDEOPTIONS>
-[Version Info]
-IncludeVerInfo=0
-AutoIncBuild=0
-MajorVer=1
-MinorVer=0
-Release=0
-Build=0
-Debug=0
-PreRelease=0
-Special=0
-Private=0
-DLL=0
-Locale=1033
-CodePage=1252
-
-[Version Info Keys]
-CompanyName=
-FileDescription=
-FileVersion=1.0.0.0
-InternalName=
-LegalCopyright=
-LegalTrademarks=
-OriginalFilename=
-ProductName=
-ProductVersion=1.0.0.0
-Comments=
-
-[Debugging]
-DebugSourceDirs=$(BCB)\source\vcl
-
-[Parameters]
-RunParams=./nasb nasb.xml
-HostApplication=
-RemoteHost=
-RemotePath=
-RemoteDebug=0
-
-[Language]
-ActiveLang=
-ProjectLang=
-RootDir=
- </IDEOPTIONS>
-</PROJECT>
+<?xml version='1.0' encoding='utf-8' ?>
+<!-- C++Builder XML Project -->
+<PROJECT>
+ <MACROS>
+ <VERSION value="BCB.05.03"/>
+ <PROJECT value="verserangeparse.exe"/>
+ <OBJFILES value="..\verserangeparse.obj"/>
+ <RESFILES value=""/>
+ <IDLFILES value=""/>
+ <IDLGENFILES value=""/>
+ <DEFFILE value=""/>
+ <RESDEPEN value="$(RESFILES)"/>
+ <LIBFILES value="..\..\..\..\icu-sword\as_is\borland\icuin.lib
+ ..\..\..\..\icu-sword\as_is\borland\icudatab.lib
+ ..\..\..\..\icu-sword\as_is\borland\icuuc.lib ..\..\..\lib\libsword.lib
+ ..\..\..\..\biblecs\clucene\clucene.lib"/>
+ <LIBRARIES value=""/>
+ <SPARELIBS value=""/>
+ <PACKAGES value="VCL50.bpi VCLX50.bpi bcbsmp50.bpi QRPT50.bpi VCLDB50.bpi VCLBDE50.bpi
+ ibsmp50.bpi VCLDBX50.bpi TEEUI50.bpi TEEDB50.bpi TEE50.bpi TEEQR50.bpi
+ VCLIB50.bpi bcbie50.bpi VCLIE50.bpi INETDB50.bpi INET50.bpi NMFAST50.bpi
+ dclocx50.bpi bcb2kaxserver50.bpi"/>
+ <PATHCPP value=".;.."/>
+ <PATHPAS value=".;"/>
+ <PATHRC value=".;"/>
+ <PATHASM value=".;"/>
+ <DEBUGLIBPATH value="$(BCB)\lib\debug"/>
+ <RELEASELIBPATH value="$(BCB)\lib\release"/>
+ <LINKER value="tlink32"/>
+ <USERDEFINES value="_ICU_;_ICUSWORD_;USBINARY;U_HAVE_PLACEMENT_NEW=0;USELUCENE;_CL_DISABLE_MULTITHREADING"/>
+ <SYSDEFINES value="NO_STRICT;_NO_VCL"/>
+ <MAINSOURCE value="verserangeparse.bpf"/>
+ <INCLUDEPATH value="..\;..\..\..\include;$(BCB)\include;$(BCB)\include\vcl;..\..\..\..\icu-sword\source\common;..\..\..\..\icu-sword\source\i18n"/>
+ <LIBPATH value="..\;..\..\..\lib;$(BCB)\lib\obj;$(BCB)\lib"/>
+ <WARNINGS value="-w-par"/>
+ </MACROS>
+ <OPTIONS>
+ <IDLCFLAGS value="-I..\. -I.. -I..\..\..\..\include -I$(BCB)\include -I$(BCB)\include\vcl
+ -I..\..\..\..\icu-sword\source\common -I..\..\..\..\icu-sword\source\i18n
+ -src_suffix cpp -D_ICU_ -D_ICUSWORD_ -DUSBINARY -DU_HAVE_PLACEMENT_NEW=0
+ -DUSELUCENE -D_CL_DISABLE_MULTITHREADING -boa"/>
+ <CFLAG1 value="-O2 -H=$(BCB)\lib\vcl50.csm -Hc -Vx -Ve -X- -a8 -6 -b- -k- -vi -tWC -tWM -c"/>
+ <PFLAGS value="-$Y- -$L- -$D- -v -JPHNE -M"/>
+ <RFLAGS value=""/>
+ <AFLAGS value="/mx /w2 /zn"/>
+ <LFLAGS value="-D&quot;&quot; -ap -Tpe -x -Gn"/>
+ </OPTIONS>
+ <LINKER>
+ <ALLOBJ value="c0x32.obj $(OBJFILES)"/>
+ <ALLRES value="$(RESFILES)"/>
+ <ALLLIB value="$(LIBFILES) $(LIBRARIES) import32.lib cw32mt.lib"/>
+ </LINKER>
+ <IDEOPTIONS>
+[Version Info]
+IncludeVerInfo=0
+AutoIncBuild=0
+MajorVer=1
+MinorVer=0
+Release=0
+Build=0
+Debug=0
+PreRelease=0
+Special=0
+Private=0
+DLL=0
+Locale=1033
+CodePage=1252
+
+[Version Info Keys]
+CompanyName=
+FileDescription=
+FileVersion=1.0.0.0
+InternalName=
+LegalCopyright=
+LegalTrademarks=
+OriginalFilename=
+ProductName=
+ProductVersion=1.0.0.0
+Comments=
+
+[Debugging]
+DebugSourceDirs=$(BCB)\source\vcl
+
+[Parameters]
+RunParams=./nasb nasb.xml
+HostApplication=
+RemoteHost=
+RemotePath=
+RemoteDebug=0
+
+[Language]
+ActiveLang=
+ProjectLang=
+RootDir=
+ </IDEOPTIONS>
+</PROJECT>
diff --git a/examples/cmdline/lookup.cpp b/examples/cmdline/lookup.cpp
index 2ff80c8..e328143 100644
--- a/examples/cmdline/lookup.cpp
+++ b/examples/cmdline/lookup.cpp
@@ -3,7 +3,7 @@
* lookup.cpp - Simple example of how to retrieve an entry from a
* SWORD module
*
- * $Id: lookup.cpp 3187 2014-04-17 04:34:03Z greg.hellings $
+ * $Id: lookup.cpp 3483 2017-06-25 15:19:34Z scribe $
*
* Copyright 1997-2013 CrossWire Bible Society (http://www.crosswire.org)
* CrossWire Bible Society
@@ -29,6 +29,7 @@
#include <swfilter.h>
#include <markupfiltmgr.h>
#include <versekey.h>
+//#include "../../bindings/corba/orbitcpp/webmgr.hpp"
using sword::SWMgr;
@@ -36,7 +37,9 @@ using sword::MarkupFilterMgr;
using sword::SWModule;
using sword::FMT_WEBIF;
using sword::FMT_HTMLHREF;
+using sword::FMT_XHTML;
using sword::FMT_RTF;
+using sword::FMT_LATEX;
using sword::ModMap;
using sword::AttributeTypeList;
using sword::AttributeList;
@@ -48,8 +51,13 @@ using sword::FilterList;
int main(int argc, char **argv)
{
- SWMgr manager(new MarkupFilterMgr(FMT_WEBIF));
-// SWMgr manager(new MarkupFilterMgr(FMT_HTMLHREF));
+// for testing webmgr
+// WebMgr manager((const char *)0);
+// manager.setJavascript(true);
+//
+ SWMgr manager(new MarkupFilterMgr(FMT_XHTML));
+// SWMgr manager(new MarkupFilterMgr(FMT_WEBIF));
+
SWModule *target;
if (argc != 3) {
@@ -71,7 +79,7 @@ int main(int argc, char **argv)
// turn all filters to default values
manager.setGlobalOption("Headings", "On");
- manager.setGlobalOption("Strong's Numbers", "On");
+ manager.setGlobalOption("Strong's Numbers", "Off");
manager.setGlobalOption("Lemmas", "Off");
// manager.setGlobalOption("Greek Accents", "Off");
diff --git a/examples/cmdline/search.cpp b/examples/cmdline/search.cpp
index f437430..1a3b098 100644
--- a/examples/cmdline/search.cpp
+++ b/examples/cmdline/search.cpp
@@ -6,7 +6,7 @@
*
* search KJV "swift hear slow speak"
*
- * $Id: search.cpp 2980 2013-09-14 21:51:47Z scribe $
+ * $Id: search.cpp 3515 2017-11-01 11:38:09Z scribe $
*
* Copyright 1997-2013 CrossWire Bible Society (http://www.crosswire.org)
* CrossWire Bible Society
@@ -36,15 +36,23 @@
using namespace sword;
#endif
-/*
- * >=0 - regex
- * -1 - phrase
- * -2 - multiword
- * -3 - entryAttrib (eg. Word//Lemma/G1234/)
- * -4 - Lucene
- */
+// FROM swmodule.h
+ /*
+ * >=0 - regex; (for backward compat, if > 0 then used as additional REGEX FLAGS)
+ * -1 - phrase
+ * -2 - multiword
+ * -3 - entryAttrib (eg. Word//Lemma./G1234/) (Lemma with dot means check components (Lemma.[1-9]) also)
+ * -4 - Lucene
+ * -5 - multilemma window; set 'flags' param to window size (NOT DONE)
+ */
char SEARCH_TYPE=-2;
+int flags = 0
+// for case insensitivity
+| REG_ICASE
+// for use with entryAttrib search type to match whole entry to value, e.g., G1234 and not G12345
+//| SEARCHFLAG_MATCHWHOLEENTRY
+;
char printed = 0;
void percentUpdate(char percent, void *userData) {
@@ -68,7 +76,7 @@ int main(int argc, char **argv)
SWMgr manager;
SWModule *target;
ListKey listkey;
- ListKey scope;
+ ListKey *scope = 0;
ModMap::iterator it;
if ((argc < 3) || (argc > 5)) {
@@ -81,7 +89,7 @@ int main(int argc, char **argv)
SWBuf searchTerm = argv[2];
manager.setGlobalOption("Greek Accents", "Off");
- manager.setGlobalOption("Strong's Numbers", "On");
+ manager.setGlobalOption("Strong's Numbers", "Off");
manager.setGlobalOption("Hebrew Vowel Points", "Off");
manager.filterText("Greek Accents", searchTerm);
@@ -96,32 +104,33 @@ int main(int argc, char **argv)
target = (*it).second;
+ ListKey maybeScope;
if (argc > 3) { // if min / max specified
SWKey *k = target->getKey();
VerseKey *parser = SWDYNAMIC_CAST(VerseKey, k);
VerseKey kjvParser;
if (!parser) parser = &kjvParser; // use standard KJV parsing as fallback
- scope = parser->parseVerseList(argv[3], *parser, true);
- scope.setPersist(true);
- target->setKey(scope);
+ maybeScope = parser->parseVerseList(argv[3], *parser, true);
+ scope = &maybeScope;
}
std::cerr << "[0=================================50===============================100]\n ";
char lineLen = 70;
- listkey = target->search(searchTerm.c_str(), SEARCH_TYPE, /*SEARCHFLAG_MATCHWHOLEENTRY*/ REG_ICASE, 0, 0, &percentUpdate, &lineLen);
+ listkey = target->search(searchTerm.c_str(), SEARCH_TYPE, flags, scope, 0, &percentUpdate, &lineLen);
std::cerr << std::endl;
- if (argc > 4) { // if min / max specified
- scope = listkey;
- scope.setPersist(true);
- target->setKey(scope);
+ if (argc > 4) { // example: if a second search term is supplied, search again for a second search term, limiting to previous results
+ scope = &listkey;
printed = 0;
std::cerr << " ";
- listkey = target->search(argv[4], SEARCH_TYPE, /*SEARCHFLAG_MATCHWHOLEENTRY*/ REG_ICASE, 0, 0, &percentUpdate, &lineLen);
+ listkey = target->search(argv[4], SEARCH_TYPE, flags, scope, 0, &percentUpdate, &lineLen);
std::cerr << std::endl;
}
- listkey.sort();
+// we don't want to sort by verse if we've been given scores
+// listkey.sort();
while (!listkey.popError()) {
- std::cout << (const char *)listkey << std::endl;
+ std::cout << (const char *)listkey;
+ if (listkey.getElement()->userData) std::cout << " : " << (__u64)listkey.getElement()->userData << "%";
+ std::cout << std::endl;
listkey++;
}
diff --git a/examples/cmdline/stripaccents.cpp b/examples/cmdline/stripaccents.cpp
new file mode 100644
index 0000000..34061d5
--- /dev/null
+++ b/examples/cmdline/stripaccents.cpp
@@ -0,0 +1,80 @@
+/******************************************************************************
+ *
+ * stripaccents.cpp - This simple example shows how to strip diacritical marks from a stringa
+ * using the SWORD library. It amounts to a simple commandline
+ * tool with a usage like:
+ *
+ * stripaccents 4 "וְהָאָ֗רֶץ הָיְתָ֥ה תֹ֙הוּ֙ וָבֹ֔הוּ וְחֹ֖שֶׁךְ עַל־פְּנֵ֣י תְהֹ֑ום וְר֣וּחַ "
+ *
+ *
+ * $Id: stripaccents.cpp 3382 2015-09-01 22:57GMT refdoc $
+ *
+ * Copyright 1997-2013 CrossWire Bible Society (http://www.crosswire.org)
+ * CrossWire Bible Society
+ * P. O. Box 2528
+ * Tempe, AZ 85280-2528
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation version 2.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ */
+
+#include <stdio.h>
+#include <cstdlib>
+#include <swmgr.h>
+#include <markupfiltmgr.h>
+#include <iostream>
+
+#ifndef NO_SWORD_NAMESPACE
+using namespace sword;
+#endif
+
+int usage()
+{
+ fprintf(stderr, "\nusage: stripaccents <n=1-15> <text-to-be-stripped> \n");
+ fprintf(stderr, "\n n=1 \t strip Greek accents");
+ fprintf(stderr, "\n n=2 \t strip Arabic vowel points");
+ fprintf(stderr, "\n n=4 \t strip Hebrew vowel points");
+ fprintf(stderr, "\n n=8 \t strip Hebrew Cantillation marks\n");
+ fprintf(stderr, "\n several of the above filters can be engaged by adding the values\n");
+ exit(0);
+}
+
+int main(int argc, char **argv)
+{
+// SWMgr manager(0, 0, true, new MarkupFilterMgr(FMT_RTF, ENC_RTF));
+ SWMgr manager;
+
+ if ((argc < 3) || (argc > 3)) {
+ usage();
+ exit(-1);
+ }
+
+ int stripFilters = atoi(argv[1]);
+
+ if ((stripFilters < 1) || (stripFilters > 15)) {
+ usage();
+ exit(-1);
+ }
+ SWBuf stripTerm = argv[2];
+
+ manager.setGlobalOption("Greek Accents", "Off");
+ manager.setGlobalOption("Arabic Vowel Points", "Off");
+ manager.setGlobalOption("Hebrew Vowel Points", "Off");
+ manager.setGlobalOption("Hebrew Cantillation", "Off");
+
+ if (stripFilters & (1 << 3)) manager.filterText("Hebrew Cantillation", stripTerm);
+ if (stripFilters & (1 << 2)) manager.filterText("Hebrew Vowel Points", stripTerm);
+ if (stripFilters & (1 << 1)) manager.filterText("Arabic Vowel Points", stripTerm);
+ if (stripFilters & (1 << 0)) manager.filterText("Greek Accents", stripTerm);
+
+ fprintf(stdout,"%s\n",stripTerm.c_str());
+ return 0;
+
+}
diff --git a/examples/tasks/CMakeLists.txt b/examples/tasks/CMakeLists.txt
index dceeb0b..d63731d 100644
--- a/examples/tasks/CMakeLists.txt
+++ b/examples/tasks/CMakeLists.txt
@@ -6,6 +6,8 @@
MESSAGE(STATUS "\n-- CONFIGURING LIBRARY EXAMPLES")
SET(example_PROGRAMS
parallelbibles
+ simpleverselookup
+ listbiblebooknames
)
FOREACH(DEMO ${example_PROGRAMS})
diff --git a/examples/tasks/Makefile.am b/examples/tasks/Makefile.am
index bdc5169..318a73b 100644
--- a/examples/tasks/Makefile.am
+++ b/examples/tasks/Makefile.am
@@ -5,7 +5,8 @@ AM_CPPFLAGS += -I$(top_srcdir)/include/internal/regex
endif
LDADD = $(top_builddir)/lib/libsword.la
-noinst_PROGRAMS = parallelbibles
+noinst_PROGRAMS = parallelbibles listbiblebooknames simpleverselookup
parallelbibles_SOURCES = parallelbibles.cpp
-
+listbiblebooknames_SOURCES = listbiblebooknames.cpp
+simpleverselookup_SOURCES = simpleverselookup.cpp
diff --git a/examples/tasks/Makefile.in b/examples/tasks/Makefile.in
index 3b08667..254abf1 100644
--- a/examples/tasks/Makefile.in
+++ b/examples/tasks/Makefile.in
@@ -80,7 +80,8 @@ build_triplet = @build@
host_triplet = @host@
target_triplet = @target@
@USE_INTERNAL_REGEX_TRUE@am__append_1 = -I$(top_srcdir)/include/internal/regex
-noinst_PROGRAMS = parallelbibles$(EXEEXT)
+noinst_PROGRAMS = parallelbibles$(EXEEXT) listbiblebooknames$(EXEEXT) \
+ simpleverselookup$(EXEEXT)
subdir = examples/tasks
DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
$(top_srcdir)/depcomp
@@ -97,14 +98,22 @@ CONFIG_HEADER = $(top_builddir)/include/config.h
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
PROGRAMS = $(noinst_PROGRAMS)
-am_parallelbibles_OBJECTS = parallelbibles.$(OBJEXT)
-parallelbibles_OBJECTS = $(am_parallelbibles_OBJECTS)
-parallelbibles_LDADD = $(LDADD)
-parallelbibles_DEPENDENCIES = $(top_builddir)/lib/libsword.la
+am_listbiblebooknames_OBJECTS = listbiblebooknames.$(OBJEXT)
+listbiblebooknames_OBJECTS = $(am_listbiblebooknames_OBJECTS)
+listbiblebooknames_LDADD = $(LDADD)
+listbiblebooknames_DEPENDENCIES = $(top_builddir)/lib/libsword.la
AM_V_lt = $(am__v_lt_@AM_V@)
am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
am__v_lt_0 = --silent
am__v_lt_1 =
+am_parallelbibles_OBJECTS = parallelbibles.$(OBJEXT)
+parallelbibles_OBJECTS = $(am_parallelbibles_OBJECTS)
+parallelbibles_LDADD = $(LDADD)
+parallelbibles_DEPENDENCIES = $(top_builddir)/lib/libsword.la
+am_simpleverselookup_OBJECTS = simpleverselookup.$(OBJEXT)
+simpleverselookup_OBJECTS = $(am_simpleverselookup_OBJECTS)
+simpleverselookup_LDADD = $(LDADD)
+simpleverselookup_DEPENDENCIES = $(top_builddir)/lib/libsword.la
AM_V_P = $(am__v_P_@AM_V@)
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
am__v_P_0 = false
@@ -139,8 +148,10 @@ AM_V_CXXLD = $(am__v_CXXLD_@AM_V@)
am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@)
am__v_CXXLD_0 = @echo " CXXLD " $@;
am__v_CXXLD_1 =
-SOURCES = $(parallelbibles_SOURCES)
-DIST_SOURCES = $(parallelbibles_SOURCES)
+SOURCES = $(listbiblebooknames_SOURCES) $(parallelbibles_SOURCES) \
+ $(simpleverselookup_SOURCES)
+DIST_SOURCES = $(listbiblebooknames_SOURCES) $(parallelbibles_SOURCES) \
+ $(simpleverselookup_SOURCES)
am__can_run_installinfo = \
case $$AM_UPDATE_INFO_DIR in \
n|no|NO) false;; \
@@ -319,14 +330,18 @@ target_vendor = @target_vendor@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
+with_bzip2 = @with_bzip2@
with_conf = @with_conf@
with_icu = @with_icu@
with_icusword = @with_icusword@
+with_xz = @with_xz@
with_zlib = @with_zlib@
AUTOMAKE_OPTIONS = 1.6
AM_CPPFLAGS = -I $(top_srcdir)/include $(am__append_1)
LDADD = $(top_builddir)/lib/libsword.la
parallelbibles_SOURCES = parallelbibles.cpp
+listbiblebooknames_SOURCES = listbiblebooknames.cpp
+simpleverselookup_SOURCES = simpleverselookup.cpp
all: all-am
.SUFFIXES:
@@ -371,17 +386,27 @@ clean-noinstPROGRAMS:
echo " rm -f" $$list; \
rm -f $$list
+listbiblebooknames$(EXEEXT): $(listbiblebooknames_OBJECTS) $(listbiblebooknames_DEPENDENCIES) $(EXTRA_listbiblebooknames_DEPENDENCIES)
+ @rm -f listbiblebooknames$(EXEEXT)
+ $(AM_V_CXXLD)$(CXXLINK) $(listbiblebooknames_OBJECTS) $(listbiblebooknames_LDADD) $(LIBS)
+
parallelbibles$(EXEEXT): $(parallelbibles_OBJECTS) $(parallelbibles_DEPENDENCIES) $(EXTRA_parallelbibles_DEPENDENCIES)
@rm -f parallelbibles$(EXEEXT)
$(AM_V_CXXLD)$(CXXLINK) $(parallelbibles_OBJECTS) $(parallelbibles_LDADD) $(LIBS)
+simpleverselookup$(EXEEXT): $(simpleverselookup_OBJECTS) $(simpleverselookup_DEPENDENCIES) $(EXTRA_simpleverselookup_DEPENDENCIES)
+ @rm -f simpleverselookup$(EXEEXT)
+ $(AM_V_CXXLD)$(CXXLINK) $(simpleverselookup_OBJECTS) $(simpleverselookup_LDADD) $(LIBS)
+
mostlyclean-compile:
-rm -f *.$(OBJEXT)
distclean-compile:
-rm -f *.tab.c
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/listbiblebooknames.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/parallelbibles.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/simpleverselookup.Po@am__quote@
.cpp.o:
@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
diff --git a/examples/tasks/listbiblebooknames.cpp b/examples/tasks/listbiblebooknames.cpp
new file mode 100644
index 0000000..5c42072
--- /dev/null
+++ b/examples/tasks/listbiblebooknames.cpp
@@ -0,0 +1,57 @@
+/******************************************************************************
+ *
+ * verseranges.cpp - This example demonstrates how to work with contiguous
+ * verse ranges using VerseKey
+ *
+ * $Id$
+ *
+ * Copyright 2011-2013 CrossWire Bible Society (http://www.crosswire.org)
+ * CrossWire Bible Society
+ * P. O. Box 2528
+ * Tempe, AZ 85280-2528
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation version 2.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ */
+
+#include <iostream>
+
+#include <swmgr.h>
+#include <swmodule.h>
+#include <versekey.h>
+
+
+using namespace sword;
+using namespace std;
+
+
+int main(int argc, char **argv) {
+
+ cout << "\n";
+
+ const char *modName = (argc > 1) ? argv[1] : "KJV";
+ SWMgr manager;
+ SWModule *bible = manager.getModule(modName);
+ if (!bible) {
+ cout << modName << " module is not installed.\nPlease install to show versification (v11n) from this specific Bible.\nShowing builtin KJV v11n scheme..\n\n";
+ }
+
+ VerseKey *vk = (bible) ? (VerseKey *)bible->getKey() : new VerseKey();
+
+ for ((*vk) = TOP; !vk->popError(); vk->setBook(vk->getBook()+1)) {
+ cout << vk->getBookName() << "\n";
+ }
+
+ // if we 'new'ed a VerseKey unassociated with a module, above, then we should delete it.
+ if (!bible) delete vk;
+
+ return 0;
+}
+
diff --git a/examples/tasks/parallelbibles.cpp b/examples/tasks/parallelbibles.cpp
index dd57f86..86e692c 100644
--- a/examples/tasks/parallelbibles.cpp
+++ b/examples/tasks/parallelbibles.cpp
@@ -33,13 +33,19 @@
using namespace sword;
using namespace std;
+const bool o = 1;
void parallelDisplay(vector<SWModule *>modules, const char *key) {
+ //cout << "Start key:" << key;
+
// We'll use the first module's key as our master key to position all other modules.
VerseKey *master = (VerseKey *)modules[0]->createKey();
master->setText(key);
+
+ //cout << "\t key:" << master->getText();
+
int curVerse = master->getVerse();
int curChapter = master->getChapter();
int curBook = master->getBook();
@@ -49,15 +55,66 @@ void parallelDisplay(vector<SWModule *>modules, const char *key) {
&& !master->popError();
(*master)++) {
- cout << "<tr class=\"" << (master->getVerse() == curVerse ? "currentverse":"verse") << "\">";
+ if(o) cout << "<tr class=\"" << (master->getVerse() == curVerse ? "currentverse":"verse") << "\">";
+
for (vector<SWModule *>::iterator module = modules.begin(); module != modules.end(); ++module) {
+ //cout << "\n\n====================\nfromKey" << master->getOSISRef();
+
(*module)->setKey(master);
+ VerseKey slave((*module)->getKey());
+
+ //cout << "setKey" << (*module)->getName() << slave.getBookName() << slave.getRangeText() << slave.getShortText();
+
+ if(o) cout << "<td>" << "<span class=\"versenum\">";
+
+ //cout << "[" << (int)slave.getBook() << " " << (int)master->getBook() << " " << (int)slave.getTestament() << " " << (int)master->getTestament() << "]";
+
+
if (!(*module)->popError()) {
- cout << "<td>" << "<span class=\"versenum\">" << master->getVerse() << "</span> ";
- cout << (*module)->renderText() << "</td>";
+
+ if(strcmp(slave.getBookName(), master->getBookName())) {
+ if(o) cout << slave.getShortText();
+ }
+ else if(slave.getChapter() != master->getChapter()) {
+ if(o) cout << slave.getChapter() << ":" << slave.getVerse();
+ }
+ else {
+ if(o) cout << slave.getVerse();
+ }
+
+ if(slave.isBoundSet()) {
+ if(o) cout << "-";
+ if(slave.getUpperBound().getBook() != slave.getLowerBound().getBook()) {
+ if(o) cout << slave.getUpperBound().getShortText();
+ }
+ else if(slave.getUpperBound().getChapter() != slave.getLowerBound().getChapter()) {
+ if(o) cout << slave.getUpperBound().getChapter() << ":" << slave.getUpperBound().getVerse();
+ }
+ else {
+ if(o) cout << slave.getUpperBound().getVerse();
+ }
+ }
+
+ if(o) cout << "</span> ";
+
+
+ if(slave.isBoundSet()) {
+ VerseKey temp(slave);
+ for(int i = slave.getLowerBound().getIndex(); i <= slave.getUpperBound().getIndex(); ++i) {
+ if(i > 0) if(o) cout << " ";
+ temp.setIndex(i);
+ (*module)->setKey(temp);
+ if(o) cout << (*module)->renderText();
+ }
+ }
+ else {
+ if(o) cout << (*module)->renderText();
+ }
+
+ if(o) cout << "</td>";
}
}
- cout << "</tr>";
+ if(o) cout << "</tr>";
}
delete master;
}
@@ -171,9 +228,9 @@ int main(int argc, char **argv) {
modules.push_back(bible);
}
- outputHeader(modules, argv[argc-1]);
+ if(o) outputHeader(modules, argv[argc-1]);
parallelDisplay(modules, argv[argc-1]);
- outputFooter(modules);
+ if(o) outputFooter(modules);
return 0;
}
diff --git a/examples/simple.cpp b/examples/tasks/simpleverselookup.cpp
index c46346b..164e66c 100644
--- a/examples/simple.cpp
+++ b/examples/tasks/simpleverselookup.cpp
@@ -16,7 +16,7 @@
*
* SWMgr library(0, 0, true, new MarkupFilterMgr(FMT_HTMLHREF));
*
- * $Id: simple.cpp 2980 2013-09-14 21:51:47Z scribe $
+ * $Id: simpleverselookup.cpp 3483 2017-06-25 15:19:34Z scribe $
*
* Copyright 2006-2013 CrossWire Bible Society (http://www.crosswire.org)
* CrossWire Bible Society
@@ -34,6 +34,10 @@
*
*/
+// Simple example to show James 1:19 from KJV,
+// if argv[1] is passed then use this instead of KJV
+// if argv[2] is passed then use this instead of James 1:19
+
#include <swmgr.h>
#include <swmodule.h>
#include <iostream>
@@ -44,10 +48,17 @@ using std::cout;
int main(int argc, char **argv) {
+ // instantiate a SWORD Manager to give access to the installed library of books (modules)
SWMgr library;
- SWModule *darby = library.getModule("Darby");
- darby->setKey("James 1:19");
- cout << darby->RenderText();
+
+ // try to retrieve a reference to an installed book (module)
+ SWModule *book = library.getModule((argc > 1) ? argv[1] : "KJV");
+
+ // set that book's reference key to our desired verse
+ book->setKey((argc > 2) ? argv[2] : "James 1:19");
+
+ // ask the book to render the current text
+ cout << book->renderText() << "\n";
return 0;
}