#include <hikogui/parser/lexer.hpp>
|
constexpr command_type & | get_command (state_type from, char c) noexcept |
|
constexpr command_type const & | get_command (state_type from, char c) const noexcept |
|
template<typename It , std::sentinel_for< It > ItEnd> |
constexpr iterator< It, ItEnd > | parse (It first, ItEnd last) const noexcept |
| Parse a range of UTF-8 characters.
|
|
constexpr auto | parse (std::string_view str) const noexcept |
| Parse a string of UTF-8 characters.
|
|
template<
lexer_config Config>
class hi::v1::detail::lexer< Config >
A configurable lexical analyzer with unicode Annex #31 support.
◆ parse() [1/2]
template<typename It , std::sentinel_for< It > ItEnd>
Parse a range of UTF-8 characters.
- Parameters
-
first | An iterator pointing to the first UTF-8 code-unit. |
last | An iterator pointing beyond the last UTF-8 code-unit to parse, or a sentinel. |
- Returns
- A forward iterator returning tokens, can be compared to the
std::default_iterator
◆ parse() [2/2]
Parse a string of UTF-8 characters.
- Parameters
-
str | A view of a UTF-8 character string. |
- Returns
- A forward iterator returning tokens, can be compared to the
std::default_iterator
The documentation for this class was generated from the following file: