25 #pragma warning( disable: 4251 )
34 #ifndef NO_SWORD_NAMESPACE
35 using namespace sword;
38 int main(
int argc,
char **argv) {
39 if ((argc < 2) || (argc > 4)) {
40 fprintf(stderr,
"usage: %s <\"string to parse\"> [locale_name] [test-in-set-verse]\n", *argv);
47 VerseKey DefaultVSKey;
49 DefaultVSKey =
"jas3:1";
51 ListKey verses = DefaultVSKey.parseVerseList(argv[1], DefaultVSKey,
true);
53 std::cout << verses.getOSISRefRangeText() <<
"\n";
56 verses.setText(argv[3]);
57 std::cout <<
"Verse is" << ((verses.popError()) ?
" NOT" :
"") <<
" in set.\n\n";
virtual void setDefaultLocaleName(const char *name)
static LocaleMgr * getSystemLocaleMgr()