juce_wchar CodeDocument::Position::getCharacter() const { if (auto* l = owner->lines [line]) return l->line [getIndexInLine()]; return 0; }
const juce_wchar CodeDocument::Position::getCharacter() const { const CodeDocumentLine* const l = owner->lines [line]; return l == nullptr ? 0 : l->line [getIndexInLine()]; }
const CodeDocument::Position CodeDocument::Position::movedByLines (const int deltaLines) const { CodeDocument::Position p (*this); p.setLineAndIndex (getLineNumber() + deltaLines, getIndexInLine()); return p; }
const tchar CodeDocument::Position::getCharacter() const throw() { const CodeDocumentLine* const l = owner->lines [line]; return l == 0 ? 0 : l->line [getIndexInLine()]; }