Changeset 5906
- Timestamp:
- 2003-11-19T16:47:47+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/colservr/filter.cpp
r2212 r5906 263 263 bool in_set (const text_tset &set1, const text_t &el) { 264 264 text_t::const_iterator here = el.begin(); 265 text_t::const_iterator end = el. begin();265 text_t::const_iterator end = el.end(); 266 266 text_t tryel, tryel_add; 267 267 bool first = true; … … 285 285 bool in_set (const text_tarray &set1, const text_t &el) { 286 286 text_t::const_iterator here = el.begin(); 287 text_t::const_iterator end = el. begin();287 text_t::const_iterator end = el.end(); 288 288 text_t tryel, tryel_add; 289 289 bool first = true; … … 299 299 300 300 // see if this element is in the set 301 text_tarray::const_iterator h ere= set1.begin();302 text_tarray::const_iterator e nd= set1.end();303 while (h ere != end) {304 if (*h ere == tryel) break;305 h ere++;301 text_tarray::const_iterator h = set1.begin(); 302 text_tarray::const_iterator e = set1.end(); 303 while (h != e) { 304 if (*h == tryel) return true; 305 h++; 306 306 } 307 if (here != end) return true;308 307 } while (here != end); 309 308
Note:
See TracChangeset
for help on using the changeset viewer.