MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / operator ++

Method operator ++

unittests/catch.hpp:5371–5386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5369 }
5370
5371 auto operator ++() -> iterator& {
5372 m_pos += m_len;
5373 if( m_pos < line().size() && line()[m_pos] == '\n' )
5374 m_pos += 1;
5375 else
5376 while( m_pos < line().size() && isWhitespace( line()[m_pos] ) )
5377 ++m_pos;
5378
5379 if( m_pos == line().size() ) {
5380 m_pos = 0;
5381 ++m_stringIndex;
5382 }
5383 if( m_stringIndex < m_column.m_strings.size() )
5384 calcLength();
5385 return *this;
5386 }
5387 auto operator ++(int) -> iterator {
5388 iterator prev( *this );
5389 operator++();

Callers

nothing calls this directly

Calls 2

isWhitespaceFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected