MD::ParagraphStream Class
class MD::ParagraphStreamText stream for paragraph processing. More...
| Header: | #include <md4qt/text_stream.h> |
| CMake: | find_package(md4qt REQUIRED COMPONENTS md4qt)target_link_libraries(mytarget PRIVATE md4qt::md4qt) |
Public Types
| struct | State |
| HashedLines |
Public Functions
| bool | atEnd() const |
| MD::ParagraphStream::State | currentState() const |
| MD::Line | readLine() |
| void | restoreState(const MD::ParagraphStream::State *state = nullptr) |
| void | restoreStateBefore(const MD::ParagraphStream::State &st) |
| void | saveState() |
Detailed Description
Text stream for paragraph processing.
Member Type Documentation
[alias] ParagraphStream::HashedLines
Type of hashed lines.
Member Function Documentation
bool ParagraphStream::atEnd() const
Returns whether the stream at end.
MD::ParagraphStream::State ParagraphStream::currentState() const
Returns current state.
MD::Line ParagraphStream::readLine()
Returns next line.
void ParagraphStream::restoreState(const MD::ParagraphStream::State *state = nullptr)
Restore state.
state State.
void ParagraphStream::restoreStateBefore(const MD::ParagraphStream::State &st)
Restore state before the given.
st State.
void ParagraphStream::saveState()
Save state (position) of stream to be able to restore it.