Searched refs:caret_position (Results 1 – 4 of 4) sorted by relevance
979 size_t caret_position) { in ShouldAllowExactKeywordMatch() argument981 if (paste_state_ != NONE || caret_position < 2 || in ShouldAllowExactKeywordMatch()982 new_user_text.length() <= caret_position || in ShouldAllowExactKeywordMatch()983 old_user_text.length() < caret_position || in ShouldAllowExactKeywordMatch()984 !IsSpaceCharForAcceptingKeyword(new_user_text[caret_position - 1]) || in ShouldAllowExactKeywordMatch()985 IsSpaceCharForAcceptingKeyword(new_user_text[caret_position - 2]) || in ShouldAllowExactKeywordMatch()986 new_user_text.compare(0, caret_position - 1, old_user_text, in ShouldAllowExactKeywordMatch()987 0, caret_position - 1) || in ShouldAllowExactKeywordMatch()988 !new_user_text.compare(caret_position - 1, in ShouldAllowExactKeywordMatch()989 new_user_text.length() - caret_position + 1, in ShouldAllowExactKeywordMatch()[all …]
434 size_t caret_position);
1360 size_t caret_position) const { in CreatedKeywordSearchByInsertingSpaceInMiddle()1361 DCHECK_GE(new_text.length(), caret_position); in CreatedKeywordSearchByInsertingSpaceInMiddle()1364 if ((paste_state_ != NONE) || (caret_position < 2) || in CreatedKeywordSearchByInsertingSpaceInMiddle()1365 (old_text.length() < caret_position) || in CreatedKeywordSearchByInsertingSpaceInMiddle()1366 (new_text.length() == caret_position)) in CreatedKeywordSearchByInsertingSpaceInMiddle()1368 size_t space_position = caret_position - 1; in CreatedKeywordSearchByInsertingSpaceInMiddle()
406 size_t caret_position) const;