Changeset 12318 for trunk/indexers/mgpp
- Timestamp:
- 2006-07-28T12:00:42+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/indexers/mgpp/text/GSDLQueryLex.cpp
r8692 r12318 43 43 // this version of end is used in unitool 44 44 // UCArray::const_iterator endMinus1 = end-1; 45 const unsigned char* endMinus1 = & (*end)-1;45 const unsigned char* endMinus1 = &*(end - 1); 46 46 47 47 int charLen; … … 83 83 // this version of end is used in unitool 84 84 //UCArray::const_iterator endMinus1 = end-1; 85 const unsigned char* endMinus1 = & (*end)-1;85 const unsigned char* endMinus1 = &*(end - 1); 86 86 87 87 int charLen=0; … … 123 123 UCArray::const_iterator end, 124 124 UCArray &text) { 125 if (here == end) 126 return false; 127 125 128 //UCArray::const_iterator endMinus1 = end-1; 126 const unsigned char* endMinus1 = & (*end)-1;129 const unsigned char* endMinus1 = &*(end - 1); 127 130 const unsigned char* new_here = ParseIndexWord (&*here, endMinus1, text); 128 131 here += (new_here - &*here); // advance iterator by number of chars advanced … … 137 140 138 141 // strange things can happen if here == end == 0 139 if (here == end) return false; 142 if (here == end) 143 return false; 140 144 141 145 // this version of end is used in unitool 142 146 //UCArray::const_iterator endMinus1 = end-1; 143 const unsigned char* endMinus1 = & (*end)-1;147 const unsigned char* endMinus1 = &*(end - 1); 144 148 145 149 // ignore all white space
Note:
See TracChangeset
for help on using the changeset viewer.