Searched refs:word_offset (Results 1 – 2 of 2) sorted by relevance
62 int word_offset = std::distance(string_text.begin(), first_char); in SpellCheckWord() local63 int max_word_length = static_cast<int>(string_text.length()) - word_offset; in SpellCheckWord()77 word = string_text.substr(word_offset, word_length); in SpellCheckWord()80 word_offset + word_length || in SpellCheckWord()81 IsNotASCIIAlpha(string_text[word_offset + word_length]))) { in SpellCheckWord()82 *misspelled_offset = word_offset + skipped_length; in SpellCheckWord()92 string_text.begin() + word_offset, string_text.end(), IsNotASCIIAlpha); in SpellCheckWord()94 word_length = static_cast<int>(string_text.length()) - word_offset; in SpellCheckWord()98 DCHECK_LT(0, word_offset + word_length); in SpellCheckWord()99 string_text = string_text.substr(word_offset + word_length); in SpellCheckWord()[all …]
23 std::vector<size_t> word_offset(keep + 1, 0); in TrimWords() local28 word_offset[keep] = iter.prev(); in TrimWords()32 first = word_offset[0]; in TrimWords()36 std::rotate(word_offset.begin(), in TrimWords()37 word_offset.begin() + 1, in TrimWords()38 word_offset.end()); in TrimWords()