Lines Matching refs:read_offset
754 // unsearched region of the string so long as |write_offset| <= |read_offset|;
758 // |write_offset| grows slower than |read_offset|.
761 // |read_offset|, but |expansion| is big enough so that |write_offset|
762 // will only catch up to |read_offset| at the point of the last match.
765 size_t read_offset = first_match + expansion;
772 read_offset += find_length;
775 size_t match = std::min(matcher.Find(*str, read_offset), str_length);
777 size_t length = match - read_offset;
779 CharTraits::move(buffer + write_offset, buffer + read_offset, length);
781 read_offset += length;
783 } while (read_offset < str_length);