home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 1,952 of 2,753   
   glen herrmannsfeldt to Armel   
   Re: compiling case insensitive regular e   
   03 Nov 10 01:22:47   
   
   From: gah@ugcs.caltech.edu   
      
   Armel  wrote:   
      
   > I need to compile regular expressions which are case insensitive,   
   > there are two cases, the part which must be matched case insensitvely   
   > might be just a portion but it can be the entire RE as well.  The RE   
   > will be Unicode enabled and must be compiled to AFD.   
      
   Another way to do it, which I have seen used in the Paracel   
   FDF/TextFinder hardware search processor is to supply a bit mask for   
   each character being compared.  Only bits with a '1' in the mask are   
   used in the comparison.  (Bitwise AND with the mask, and compare to   
   the previously masked query character.)   
      
   -- glen   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca