MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / indent

Method indent

unittests/catch.hpp:5344–5347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5342 }
5343
5344 auto indent() const -> size_t {
5345 auto initial = m_pos == 0 && m_stringIndex == 0 ? m_column.m_initialIndent : std::string::npos;
5346 return initial == std::string::npos ? m_column.m_indent : initial;
5347 }
5348
5349 auto addIndentAndSuffix(std::string const &plain) const -> std::string {
5350 return std::string( indent(), ' ' ) + (m_suffix ? plain + "-" : plain);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected