Parses a string view into lines.
More...
#include <String.h>
|
| | GetLine (std::string_view str) noexcept |
| | Construct GetLine to parse str.
|
| std::optional< std::string_view > | get () noexcept |
| | Read one line.
|
Parses a string view into lines.
Use like:
while (auto line = g.get()) {}
GetLine(std::string_view str) noexcept
Construct GetLine to parse str.
Definition String.h:31
◆ 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-build/slhelpers-20260428.f233ce9/include/helpers/String.h