Ignore:
Timestamp:
2009-03-17T14:31:58+13:00 (15 years ago)
Author:
kjdon
Message:

findlastchar was dereferencing the last iterator (end()), so now it decrements that before dereferencing. parameter name changed to last_plus_one to hopefully inform user of this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/common-src/src/lib/text_t.h

    r16066 r18700  
    225225text_t::iterator findchar (text_t::iterator first, text_t::iterator last,
    226226               unsigned short c);
    227 text_t::iterator findlastchar (text_t::iterator first, text_t::iterator last,
     227// Find the last occurrence of c between first and last_plus_one -1. Returns last_plus_one if not found.
     228text_t::iterator findlastchar (text_t::iterator first, text_t::iterator last_plus_one,
    228229                   unsigned short c);
    229230text_t::iterator findword (text_t::iterator first, text_t::iterator last,
Note: See TracChangeset for help on using the changeset viewer.