Splits a line into whitespace-separated tokens, one at a time.
More...
#include <text_parse.hpp>
|
| | token_cursor (std::string_view line) noexcept |
| bool | next (std::string_view &tok) noexcept |
| | The next token, or false at the end of the line.
|
| bool | done () const noexcept |
| | True if no token is left.
|
Splits a line into whitespace-separated tokens, one at a time.
◆ token_cursor()
| mtl::io::detail::token_cursor::token_cursor |
( |
std::string_view | line | ) |
|
|
inlineexplicitnoexcept |
◆ done()
| bool mtl::io::detail::token_cursor::done |
( |
| ) |
const |
|
inlinenoexcept |
True if no token is left.
◆ next()
| bool mtl::io::detail::token_cursor::next |
( |
std::string_view & | tok | ) |
|
|
inlinenoexcept |
The next token, or false at the end of the line.
The documentation for this class was generated from the following file: