Parses a string view into lines.
More...
#include <String.h>
Parses a string view into lines.
Use like:
while (auto line = g.get()) {}
◆ GetLine()
| SlHelpers::GetLine::GetLine |
( |
std::string_view |
str | ) |
|
|
inlinenoexcept |
Construct GetLine to parse str.
- Parameters
-
◆ get()
| std::optional<std::string_view> SlHelpers::GetLine::get |
( |
| ) |
|
|
inlinenoexcept |
Read one line.
- Returns
- Line if one was read, otherwise nullopt.
The documentation for this class was generated from the following file:
- /home/abuild/rpmbuild/BUILD/slhelpers-20260428.f233ce9/include/helpers/String.h