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

Method operator *

unittests/catch.hpp:5362–5369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5360 }
5361
5362 auto operator *() const -> std::string {
5363 assert( m_stringIndex < m_column.m_strings.size() );
5364 assert( m_pos <= m_end );
5365 if( m_pos + m_column.m_width < m_end )
5366 return addIndentAndSuffix(line().substr(m_pos, m_len));
5367 else
5368 return addIndentAndSuffix(line().substr(m_pos, m_end - m_pos));
5369 }
5370
5371 auto operator ++() -> iterator& {
5372 m_pos += m_len;

Callers

nothing calls this directly

Calls 2

substrMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected