Iterator that walks through all segments while tracking line numbers.
size_t currentLine() const
Get the current line number in the original file.
bool getline(std::string &line)
Get the next line from the sections.
LineIterator(const std::vector< SectionSegment > &segments)
Holds all segments of a section and provides line-aware iteration This is used internally to track li...
std::string toString() const
Get all content as a single concatenated string (for backward compatibility).
void addSegment(std::string_view content, size_t startLine)
LineIterator begin() const