KTextEditor
katetextline.cpp
172 if (!m_attributesList.empty() && (m_attributesList.back().attributeValue == attribute.attributeValue)
183 const auto found = std::upper_bound(m_attributesList.cbegin(), m_attributesList.cend(), pos, [](const int &p, const Attribute &x) {
int attribute(int pos) const
Gets the attribute at the given position use KRenderer::attributes to get the KTextAttribute for this...
Definition katetextline.cpp:181
int virtualLength(int tabWidth) const
Returns the text length with each tab expanded into tabWidth characters.
Definition katetextline.cpp:152
int indentDepth(int tabWidth) const
Returns the indentation depth with each tab expanded into tabWidth characters.
Definition katetextline.cpp:59
QString string(int column, int length) const
Returns the substring with length beginning at the given column.
Definition katetextline.h:243
int previousNonSpaceChar(int pos) const
Find the position of the previous char that is not a space.
Definition katetextline.cpp:35
int lastChar() const
Returns the position of the last non-whitespace character.
Definition katetextline.cpp:17
int firstChar() const
Returns the position of the first non-whitespace character.
Definition katetextline.cpp:12
void addAttribute(const Attribute &attribute)
Add attribute to this line.
Definition katetextline.cpp:169
int toVirtualColumn(int column, int tabWidth) const
Returns the column with each tab expanded into tabWidth characters.
Definition katetextline.cpp:105
bool matchesAt(int column, const QString &match) const
Returns true, if match equals to the text at position column, otherwise returns false.
Definition katetextline.cpp:80
int nextNonSpaceChar(int pos) const
Find the position of the next char that is not a space.
Definition katetextline.cpp:22
int fromVirtualColumn(int column, int tabWidth) const
Returns the "real" column where each tab only counts one character.
Definition katetextline.cpp:126
qsizetype length() const const
const QChar * unicode() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:56:00 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:56:00 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.