|
| constexpr | explicit (false) Stream(const char *string) |
| |
| constexpr | explicit (false) Stream(std |
| |
| constexpr | Stream (std::string_view string, StreamContext context) |
| | This overload is just used for writing tests.
|
| |
| constexpr std::size_t | size () const |
| |
| constexpr bool | empty () const |
| |
| constexpr char | peek () const |
| | Peek at the first character of the stream.
|
| |
| constexpr std::string_view | peek (std::size_t n) const |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Peek at the first n characters of the stream.
|
| |
| constexpr std::string_view | peek_until (auto what) const |
| | substr_to
|
| |
| constexpr std::string_view | peek_while (std::invocable< char > auto pred) const |
| |
| constexpr std::string_view | peek_through (auto what) const |
| |
| constexpr std::string_view | peek_past (auto what) const |
| | substr_past
|
| |
| constexpr std::string_view | consume (std::size_t n) |
| | Same as peek, except it also mutates the stream.
|
| |
template<typename StrLike >
requires std::convertible_to<StrLike, std::string_view> || std::same_as<StrLike, char> |
| constexpr bool | consume (StrLike str) |
| | Attempt to consume str at the beginning of the stream, iff it actually exists at the beginning.
|
| |
| constexpr bool | consume (auto what, CaseInsensitiveTag) |
| |
| constexpr std::string_view | consume_until (auto what) |
| | Same as peek_until, except it also mutates the stream.
|
| |
| constexpr std::string_view | consume_through (auto what) |
| | Same as peek_through, except it also mutates the stream.
|
| |
| constexpr std::string_view | consume_while (std::invocable< char > auto pred) |
| | Same as peek_while, except it also mutates the stream.
|
| |
| constexpr bool | starts_with (auto what) const |
| | Whether the stream starts with what (accepts same as std::string_view::starts_with)
|
| |
| constexpr bool | starts_with (char chr, CaseInsensitiveTag) const |
| |
| constexpr bool | starts_with (std::string_view string, CaseInsensitiveTag) const |
| |
| constexpr std::string_view | str () const |
| |