2
* Copyright 2009 CrossWire Bible Society (http://www.crosswire.org)
3
* CrossWire Bible Society
7
* This program is free software; you can redistribute it and/or modify it
8
* under the terms of the GNU General Public License as published by the
9
* Free Software Foundation version 2.
11
* This program is distributed in the hope that it will be useful, but
12
* WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* General Public License for more details.
24
#include <localemgr.h>
27
#ifndef NO_SWORD_NAMESPACE
28
using namespace sword;
34
int main(int argc, char **argv) {
37
SWModule *mod = mgr.getModule("KJVgb");
39
VerseKey *key1 = (VerseKey *)mod->CreateKey();
46
cout << "\n" << key1->getText() << ":\n\n";
51
cout << "\n" << keys.getRangeText() << ":\n\n";
55
cout << "\n" << keys2.getRangeText() << ":\n\n";
57
keys = key1->ParseVerseList("Lk.4.5");
59
cout << "\n" << key1->getText() << ":\n\n";
61
key1->setText("jn.6.7");
63
cout << "\n" << key1->getText() << ":\n\n";
66
mod->setKey("lk.2.3");
68
cout << "\n" << mod->getKeyText() << ":\n" << endl;
69
cout << mod->getRawEntry() << endl;
72
cout << "\nListkey persist key iteration test\n\n";
73
keys = key1->ParseVerseList("mat1", 0, true);
75
for (keys = TOP; !keys.Error(); keys++) {
76
cout << "\n" << keys.getText() << ":\n" << endl;
84
for ((*mod) = TOP; !mod->Error(); (*mod)++) {
85
cout << "\n" << mod->getKeyText() << ":\n" << endl;