[sword-cvs] sword/examples/cmdline search.cpp,1.17,1.18
sword@www.crosswire.org
sword@www.crosswire.org
Mon, 10 Nov 2003 00:24:14 -0700
Update of /usr/local/cvsroot/sword/examples/cmdline
In directory www:/tmp/cvs-serv29813/examples/cmdline
Modified Files:
search.cpp
Log Message:
Added new search type for searching entry attributes: e.g.
AVPhrase//Phrase/savior
Need to change last leg to be regex instead of strstr
Index: search.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/examples/cmdline/search.cpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- search.cpp 31 Aug 2003 01:58:13 -0000 1.17
+++ search.cpp 10 Nov 2003 07:24:11 -0000 1.18
@@ -59,7 +59,7 @@
std::cout << "[0=================================50===============================100]\n ";
char lineLen = 70;
- listkey = target->Search(argv[2], -2, 0/*REG_ICASE*/, 0, 0, &percentUpdate, &lineLen);
+ listkey = target->Search(argv[2], -3, 0/*REG_ICASE*/, 0, 0, &percentUpdate, &lineLen);
std::cout << "\n";
while (!listkey.Error()) {
std::cout << (const char *)listkey << std::endl;