diff options
Diffstat (limited to 'tests/striptest.cpp')
-rw-r--r-- | tests/striptest.cpp | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/tests/striptest.cpp b/tests/striptest.cpp index e7eecaa..8013481 100644 --- a/tests/striptest.cpp +++ b/tests/striptest.cpp @@ -1,3 +1,25 @@ +/****************************************************************************** + * + * striptest.cpp - + * + * $Id: striptest.cpp 2833 2013-06-29 06:40:28Z chrislit $ + * + * Copyright 2009-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 <swmgr.h> #include <swmodule.h> #include <iostream> @@ -20,13 +42,13 @@ int main(int argc, char **argv) { library.setGlobalOption(*it, "Off"); } book->setKey(keyText.c_str()); - SWBuf entryStripped = book->StripText(); - cout << "Module: " << book->Description() << "\t Key: " << book->getKeyText() << "\n"; + SWBuf entryStripped = book->stripText(); + cout << "Module: " << book->getDescription() << "\t Key: " << book->getKeyText() << "\n"; cout << "RawEntry:\n" << book->getRawEntry() << "\n"; cout << "StripText:\n" << entryStripped << "\n"; cout << "Search Target: " << searchText << "\n"; - cout << "Search Target StripText: " << book->StripText(searchText) << "\n"; - cout << "Found: " << ((strstr(entryStripped.c_str(), book->StripText(searchText))) ? "true":"false") << endl; + cout << "Search Target StripText: " << book->stripText(searchText) << "\n"; + cout << "Found: " << ((strstr(entryStripped.c_str(), book->stripText(searchText))) ? "true":"false") << endl; return 0; } |