5#ifndef ADA_CHECKERS_INL_H
6#define ADA_CHECKERS_INL_H
21 std::memcpy(&
word0x,
"0x", 2);
37constexpr bool is_digit(
char x)
noexcept {
return (
x >=
'0') & (
x <=
'9'); }
39constexpr char to_lower(
char x)
noexcept {
return (
x | 0x20); }
46 return input.size() >= 2 &&
53 std::string_view
input)
noexcept {
Common definitions for cross-platform compiler support.
#define ada_really_inline
Includes the definitions for validation functions.
bool has_hex_prefix_unsafe(std::string_view input)
constexpr bool is_normalized_windows_drive_letter(std::string_view input) noexcept
constexpr bool is_windows_drive_letter(std::string_view input) noexcept
constexpr char to_lower(char x) noexcept
bool has_hex_prefix(std::string_view input)
constexpr bool is_alpha(char x) noexcept
constexpr bool is_digit(char x) noexcept
ada_really_inline bool begins_with(std::string_view view, std::string_view prefix)
ada_warn_unused ada::result< result_type > parse(std::string_view input, const result_type *base_url=nullptr)