Ignore:
Timestamp:
1999-08-25T16:51:06+12:00 (25 years ago)
Author:
sjboddie
Message:

small change to allow for searching using boolean operators

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/colservr/mgsearch.cpp

    r401 r473  
    1212/*
    1313   $Log$
     14   Revision 1.16  1999/08/25 04:51:06  sjboddie
     15   small change to allow for searching using boolean operators
     16
    1417   Revision 1.15  1999/07/16 08:35:03  rjmcnab
    1518   Fixed a weird bug to do with a faulty case statement.
     
    479482  text_t::iterator itend = ttquerystring.end ();
    480483 
    481   // remove all non alphanumeric characters
     484  // remove all non alphanumeric characters (except
     485  // boolean operators
    482486  while (ithere != itend) {
    483     if (!is_unicode_letdig(*ithere)) (*ithere) = ' ';
     487    if ((!is_unicode_letdig(*ithere)) && (*ithere != '!') &&
     488    (*ithere != '&') && (*ithere != '|') && (*ithere != '(') &&
     489    (*ithere != ')')) (*ithere) = ' ';
    484490    ithere++;
    485491  }
Note: See TracChangeset for help on using the changeset viewer.