Loading...
Searching...
No Matches
checkers.h
Go to the documentation of this file.
#ifndef ADA_CHECKERS_H
#define ADA_CHECKERS_H
#include "ada/common_defs.h"
#include <cstring>
#include <string_view>
namespace ada::checkers {
constexpr char to_lower(char x) noexcept;
constexpr bool is_alpha(char x) noexcept;
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;
inline constexpr bool is_windows_drive_letter(std::string_view input) noexcept;
inline constexpr bool is_normalized_windows_drive_letter(
std::string_view input) noexcept;
ada_really_inline constexpr bool is_ipv4(std::string_view view) noexcept;
ada_really_inline constexpr uint8_t path_signature(
std::string_view input) noexcept;
ada_really_inline constexpr bool verify_dns_length(
std::string_view input) noexcept;
ada_really_inline constexpr uint64_t try_parse_ipv4_fast(
std::string_view input) noexcept;
constexpr uint64_t ipv4_fast_fail = uint64_t(1) << 32;
} // namespace ada::checkers
#endif // ADA_CHECKERS_H
common_defs.h
Cross-platform compiler macros and common definitions.
ada_really_inline
#define ada_really_inline
Definition common_defs.h:85
ada::checkers
Includes the definitions for validation functions.
Definition checkers-inl.h:12
ada::checkers::has_hex_prefix_unsafe
constexpr bool has_hex_prefix_unsafe(std::string_view input)
Definition checkers-inl.h:14
ada::checkers::has_hex_prefix
constexpr bool has_hex_prefix(std::string_view input)
Definition checkers-inl.h:29
ada::checkers::is_normalized_windows_drive_letter
constexpr bool is_normalized_windows_drive_letter(std::string_view input) noexcept
Definition checkers-inl.h:48
ada::checkers::is_windows_drive_letter
constexpr bool is_windows_drive_letter(std::string_view input) noexcept
Definition checkers-inl.h:41
ada::checkers::to_lower
constexpr char to_lower(char x) noexcept
Definition checkers-inl.h:35
ada::checkers::ipv4_fast_fail
constexpr uint64_t ipv4_fast_fail
Definition checkers.h:129
ada::checkers::is_alpha
constexpr bool is_alpha(char x) noexcept
Definition checkers-inl.h:37
ada::checkers::is_digit
constexpr bool is_digit(char x) noexcept
Definition checkers-inl.h:33
ada::checkers::try_parse_ipv4_fast
ada_really_inline constexpr uint64_t try_parse_ipv4_fast(std::string_view input) noexcept
Definition checkers-inl.h:53