//------------------------------------------------------------------------------ str_iter line_state::get_word(unsigned int index) const { if (const word* word = m_words[index]) return str_iter(m_line + word->offset, word->length); return str_iter(); }
str_iter str::begin() { return str_iter(*this); }
//------------------------------------------------------------------------------ str_iter line_state::get_end_word() const { int n = get_word_count(); return (n ? get_word(n - 1) : str_iter()); }