#include <clara.hpp>
Definition at line 79 of file clara.hpp.
◆ difference_type
◆ iterator_category
◆ pointer
◆ reference
◆ value_type
◆ iterator()
clara::TextFlow::Column::iterator::iterator |
( |
Column const & | column | ) |
|
|
inlineexplicit |
Definition at line 154 of file clara.hpp.
154 : m_column( column ) {
155 assert( m_column.m_width > m_column.m_indent );
156 assert( m_column.m_initialIndent == std::string::npos || m_column.m_width > m_column.m_initialIndent );
157 calcLength();
158 if( m_len == 0 )
159 m_stringIndex++;
160 }
◆ operator!=()
auto clara::TextFlow::Column::iterator::operator!= |
( |
iterator const & | other | ) |
const -> bool |
|
inline |
Definition at line 196 of file clara.hpp.
196 {
198 }
auto operator==(iterator const &other) const -> bool
◆ operator*()
auto clara::TextFlow::Column::iterator::operator* |
( |
| ) |
const -> std::string |
|
inline |
Definition at line 162 of file clara.hpp.
162 {
163 assert( m_stringIndex < m_column.m_strings.size() );
164 assert( m_pos <= m_end );
165 return addIndentAndSuffix(line().substr(m_pos, m_len));
166 }
◆ operator++() [1/2]
auto clara::TextFlow::Column::iterator::operator++ |
( |
| ) |
-> iterator& |
|
inline |
Definition at line 168 of file clara.hpp.
168 {
169 m_pos += m_len;
170 if( m_pos < line().size() && line()[m_pos] == '\n' )
171 m_pos += 1;
172 else
173 while( m_pos < line().size() &&
isWhitespace( line()[m_pos] ) )
174 ++m_pos;
175
176 if( m_pos == line().size() ) {
177 m_pos = 0;
178 ++m_stringIndex;
179 }
180 if( m_stringIndex < m_column.m_strings.size() )
181 calcLength();
182 return *this;
183 }
auto isWhitespace(char c) -> bool
◆ operator++() [2/2]
auto clara::TextFlow::Column::iterator::operator++ |
( |
int | | ) |
-> iterator |
|
inline |
Definition at line 184 of file clara.hpp.
184 {
185 iterator prev( *this );
187 return prev;
188 }
auto operator++() -> iterator &
◆ operator==()
auto clara::TextFlow::Column::iterator::operator== |
( |
iterator const & | other | ) |
const -> bool |
|
inline |
Definition at line 190 of file clara.hpp.
190 {
191 return
192 m_pos ==
other.m_pos &&
193 m_stringIndex ==
other.m_stringIndex &&
194 &m_column == &
other.m_column;
195 }
The documentation for this class was generated from the following file:
- libraries/sys-vm/external/Catch2/third_party/clara.hpp