Ignore:
Timestamp:
1999-07-01T21:25:54+12:00 (25 years ago)
Author:
rjmcnab
Message:

fixed bug :-

File:
1 edited

Legend:

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

    r328 r333  
    1212/*
    1313   $Log$
     14   Revision 1.2  1999/07/01 09:25:54  rjmcnab
     15   fixed bug :-^
     16
    1417   Revision 1.1  1999/07/01 04:01:46  rjmcnab
    1518   Initial revision.
     
    3134  while (here <= end) {
    3235    c_len = parse_utf8_char (here, end, &c);
    33     here += c_len;
    3436    if (is_unicode_letdig(c)) {
    35       word.push_back(c);
     37      while (c_len > 0) {
     38    word.push_back(*here);
     39    here++; c_len--;
     40      }
    3641      break;
    3742    }
     43    here += c_len;
    3844  }
    3945
     
    4147  while (here <= end) {
    4248    c_len = parse_utf8_char (here, end, &c);
    43     here += c_len;  // it is ok to skip a nonword character
    44     if (!is_unicode_letdig(c)) break;
    45     word.push_back(c);
     49    if (!is_unicode_letdig(c)) {
     50      here += c_len;  // it is ok to skip a nonword character
     51      break;
     52    }
     53    while (c_len > 0) {
     54      word.push_back(*here);
     55      here++; c_len--;
     56    }
    4657  }
    4758
Note: See TracChangeset for help on using the changeset viewer.