[jsword-svn]
jsword/java/jsword/org/crosswire/jsword/book/search/parse s
jswordcvs at crosswire.org
jswordcvs at crosswire.org
Tue Apr 5 15:20:39 MST 2005
Update of /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/search/parse
In directory www.crosswire.org:/tmp/cvs-serv18201/java/jsword/org/crosswire/jsword/book/search/parse
Modified Files:
CustomTokenizer.java
Log Message:
fix blank search bug
Index: CustomTokenizer.java
===================================================================
RCS file: /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/search/parse/CustomTokenizer.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** CustomTokenizer.java 10 Mar 2005 00:09:12 -0000 1.12
--- CustomTokenizer.java 5 Apr 2005 22:20:37 -0000 1.13
***************
*** 53,57 ****
--- 53,63 ----
{
List output = new ArrayList();
+ if (sought == null || sought.length() == 0)
+ {
+ return output;
+ }
+
String commandChars = getSingleCharWords(commands);
+
char firstChar = sought.charAt(0);
int currentType = charType(firstChar, commandChars);
More information about the jsword-svn
mailing list