int TextCheckingParagraph::checkingEnd() const { ASSERT(m_checkingRange); if (m_checkingEnd == -1) m_checkingEnd = checkingStart() + TextIterator::rangeLength(checkingRange().get()); return m_checkingEnd; }
int TextCheckingParagraph::checkingEnd() const { ASSERT(m_checkingRange.isNotNull()); if (m_checkingEnd == -1) m_checkingEnd = checkingStart() + TextIterator::rangeLength(checkingRange().startPosition(), checkingRange().endPosition()); return m_checkingEnd; }
bool TextCheckingParagraph::isEmpty() const { // Both predicates should have same result, but we check both just for sure. // We need to investigate to remove this redundancy. return checkingStart() >= checkingEnd() || text().isEmpty(); }