[Zope-Checkins] CVS: Zope2 - Splitter.c:1.16

Jim Fulton jim@digicool.com
Wed, 21 Mar 2001 17:06:32 -0500 (EST)


Update of /cvs-repository/Zope2/lib/python/SearchIndex
In directory korak:/tmp/cvs-serv14332

Modified Files:
	Splitter.c 
Log Message:
Added '_' as a special word character (like '/'). 
It should really be possible to pass in special word characters.



--- Updated File Splitter.c in package Zope2 --
--- Splitter.c	2001/03/16 16:57:38	1.15
+++ Splitter.c	2001/03/21 22:06:32	1.16
@@ -232,7 +232,7 @@
       c=tolower((unsigned char) *here);
       
       /* Check to see if this character is part of a word */
-      if(isalnum((unsigned char)c) || c=='/')
+      if(isalnum((unsigned char)c) || c=='/' || c=='_')
         { /* Found a word character */
 	  if(startpos && i==0) *startpos=here;
 	  if(i++ < MAX_WORD) *b++ = c;