Lines Matching refs:text_length_
128 text_length_(0), in CFDE_TextEditEngine()
161 text_length_ = 0; in Clear()
197 content_.resize(text_length_ + new_gap_size); in AdjustGap()
201 (text_length_ - gap_position_) * char_size); in AdjustGap()
258 idx = std::min(idx, text_length_); in Insert()
281 idx = std::min(idx, text_length_); in Insert()
297 if (has_character_limit_ && text_length_ + length > character_limit_) { in Insert()
300 character_limit_ = text_length_ + length; in Insert()
303 CHECK(text_length_ <= character_limit_); in Insert()
304 length = character_limit_ - text_length_; in Insert()
317 if (text_length_ - gap_position_ > 0) { in Insert()
319 text_length_ - gap_position_); in Insert()
359 text_length_ += length; in Insert()
449 if (pos >= text_length_) in GetIndexRight()
450 return text_length_; in GetIndexRight()
455 while (pos < text_length_ && (ch == '\r' || ch == '\n')) { in GetIndexRight()
494 if (line_end == text_length_) in GetIndexDown()
501 } while (line_end < text_length_ && (ch == '\r' || ch == '\n')); in GetIndexDown()
503 if (line_end == text_length_) in GetIndexDown()
540 if (pos >= text_length_) in GetIndexAtEndOfLine()
541 return text_length_; in GetIndexAtEndOfLine()
552 } while (pos < text_length_ && (ch != '\r' && ch != '\n')); in GetIndexAtEndOfLine()
633 character_limit_ = std::max(character_limit_, text_length_); in SetHasCharacterLimit()
646 character_limit_ = std::max(limit, text_length_); in SetCharacterLimit()
752 if (text_length_ == 0) in SelectAll()
757 selection_.count = text_length_; in SelectAll()
772 if (start_idx > text_length_) in SetSelection()
774 if (start_idx + count > text_length_) in SetSelection()
775 count = text_length_ - start_idx; in SetSelection()
826 if (start_idx >= text_length_) in Delete()
847 if (start_idx >= text_length_) in Delete()
851 length = std::min(length, text_length_ - start_idx); in Delete()
867 text_length_ -= length; in Delete()
913 if (text_length_ - gap_position_ > 0) { in GetText()
915 text_length_ - gap_position_); in GetText()
921 return text_length_; in GetLength()
925 if (idx >= text_length_) in GetChar()
954 return text_length_; in GetIndexForPoint()
989 if (pos >= text_length_) in GetIndexForPoint()
990 return text_length_; in GetIndexForPoint()
1008 static_cast<size_t>(start_it->nStart + start_it->nCount), text_length_); in GetIndexForPoint()
1081 if (text_length_ == 0 || !font_) in RebuildPieces()
1157 ASSERT(static_cast<size_t>(start_idx) <= text_length_); in GetCharacterInfo()
1209 if (idx > text_length_) in BoundsForWordAt()