Esempio n. 1
0
//------------------------------------------------------------------------------
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();
}
Esempio n. 2
0
File: str.cpp Progetto: ubsan/pink
str_iter str::begin() {
  return str_iter(*this);
}
Esempio n. 3
0
//------------------------------------------------------------------------------
str_iter line_state::get_end_word() const
{
    int n = get_word_count();
    return (n ? get_word(n - 1) : str_iter());
}