#include <iostream>
#include <stdio.h>
#include <versekey.h>
#include <localemgr.h>
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 38 of file vs2osisreftxt.cpp.
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()