Ada 3.0.1
Fast spec-compliant URL parser
|
#include <url_pattern_helpers.h>
Public Member Functions | |
Tokenizer (std::string_view new_input, token_policy new_policy) | |
void | get_next_code_point () |
void | seek_and_get_next_code_point (size_t index) |
void | add_token (token_type type, size_t next_position, size_t value_position, size_t value_length) |
void | add_token_with_default_length (token_type type, size_t next_position, size_t value_position) |
void | add_token_with_defaults (token_type type) |
std::optional< errors > | process_tokenizing_error (size_t next_position, size_t value_position) ada_warn_unused |
Friends | |
tl::expected< std::vector< token >, errors > | tokenize (std::string_view input, token_policy policy) |
Definition at line 104 of file url_pattern_helpers.h.
|
inlineexplicit |
Definition at line 106 of file url_pattern_helpers.h.
Referenced by tokenize.
|
inline |
Definition at line 388 of file url_pattern_helpers-inl.h.
References ADA_ASSERT_TRUE, and ada::url_pattern_helpers::to_string().
Referenced by add_token_with_default_length().
|
inline |
Definition at line 406 of file url_pattern_helpers-inl.h.
References add_token().
Referenced by add_token_with_defaults(), and process_tokenizing_error().
|
inline |
Definition at line 416 of file url_pattern_helpers-inl.h.
References add_token_with_default_length(), and ada::url_pattern_helpers::to_string().
|
inline |
Definition at line 332 of file url_pattern_helpers-inl.h.
References ADA_ASSERT_TRUE.
Referenced by seek_and_get_next_code_point().
|
inline |
Definition at line 425 of file url_pattern_helpers-inl.h.
References ADA_ASSERT_TRUE, add_token_with_default_length(), ada::url_pattern_helpers::INVALID_CHAR, ada::url_pattern_helpers::lenient, ada::url_pattern_helpers::strict, and ada::type_error.
|
inline |
Definition at line 379 of file url_pattern_helpers-inl.h.
References get_next_code_point().
|
friend |
Definition at line 438 of file url_pattern_helpers.cpp.
References ada::url_pattern_helpers::ASTERISK, ada::url_pattern_helpers::CHAR, ada::url_pattern_helpers::CLOSE, ada::url_pattern_helpers::END, ada::url_pattern_helpers::ESCAPED_CHAR, ada::url_pattern_helpers::NAME, ada::url_pattern_helpers::OPEN, ada::url_pattern_helpers::OTHER_MODIFIER, ada::url_pattern_helpers::REGEXP, Tokenizer(), and ada::idna::valid_name_code_point().