Ada 2.9.2
Fast spec-compliant URL parser
|
Includes the definitions for validation functions. More...
Functions | |
constexpr bool | has_hex_prefix_unsafe (std::string_view input) |
constexpr bool | has_hex_prefix (std::string_view input) |
constexpr bool | is_digit (char x) noexcept |
constexpr char | to_lower (char x) noexcept |
constexpr bool | is_alpha (char x) noexcept |
constexpr bool | is_windows_drive_letter (std::string_view input) noexcept |
constexpr bool | is_normalized_windows_drive_letter (std::string_view input) noexcept |
Variables | |
static constexpr std::array< uint8_t, 256 > | path_signature_table |
Includes the definitions for validation functions.
These functions are not part of our public API and may change at any time.
|
constexpr |
Check whether a string starts with 0x or 0X.
Definition at line 29 of file checkers-inl.h.
References has_hex_prefix_unsafe().
|
constexpr |
Check whether a string starts with 0x or 0X. The function is only safe if input.size() >=2.
Definition at line 13 of file checkers-inl.h.
Referenced by has_hex_prefix().
|
constexprnoexcept |
Returns true if the character is an ASCII letter. Equivalent to std::isalpha but more likely to be inlined by the compiler.
Definition at line 37 of file checkers-inl.h.
References to_lower().
Referenced by is_normalized_windows_drive_letter(), is_windows_drive_letter(), ada::parser::parse_url_impl(), ada::url::set_protocol(), and ada::url_aggregator::set_protocol().
|
constexprnoexcept |
Check whether x is an ASCII digit. More likely to be inlined than std::isdigit.
Definition at line 33 of file checkers-inl.h.
|
inlineconstexprnoexcept |
A normalized Windows drive letter is a Windows drive letter of which the second code point is U+003A (:).
Definition at line 48 of file checkers-inl.h.
References is_alpha().
Referenced by ada::parser::parse_url_impl().
|
inlineconstexprnoexcept |
A string starts with a Windows drive letter if all of the following are true:
https://url.spec.whatwg.org/#start-with-a-windows-drive-letter
Definition at line 41 of file checkers-inl.h.
References is_alpha().
Referenced by ada::parser::parse_url_impl().
|
constexprnoexcept |
Assuming that x is an ASCII letter, this function returns the lower case equivalent.
More likely to be inlined by the compiler and constexpr.
Definition at line 35 of file checkers-inl.h.
Referenced by is_alpha().
|
staticconstexpr |
Definition at line 60 of file checkers.cpp.