MCPcopy Create free account
hub / github.com/Tracktion/choc / lastLineIsSectionBreak

Method lastLineIsSectionBreak

choc/text/choc_CodePrinter.h:192–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190inline bool CodePrinter::isLastLineEmpty() const { return lines.empty() || getLengthWithTrimmedEnd (lines.back().line) == 0; }
191inline bool CodePrinter::isLastLineActive() const { return ! lines.empty() && lines.back().line.back() != '\n'; }
192inline bool CodePrinter::lastLineIsSectionBreak() const { return ! lines.empty() && lines.back().line == sectionBreakString + newLineString; }
193
194inline size_t CodePrinter::getTotalIndent() const { return static_cast<size_t> (indent); }
195inline void CodePrinter::setTotalIndent (size_t newIndent) { indent = static_cast<int> (newIndent); }

Callers

nothing calls this directly

Calls 2

backMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected