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

Jim Fulton jim@digicool.com
Wed, 21 Mar 2001 11:37:53 -0500 (EST)


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

Modified Files:
      Tag: zope-2_3-branch
	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:20	1.14.28.1
+++ Splitter.c	2001/03/21 16:37:53	1.14.28.2
@@ -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;