7#include "../utility/module.hpp"
12namespace hi::inline
v1 {
19 constexpr iso_15924() noexcept : _v(0) {}
20 constexpr iso_15924(iso_15924
const&)
noexcept =
default;
21 constexpr iso_15924(iso_15924&&)
noexcept =
default;
22 constexpr iso_15924& operator=(iso_15924
const&)
noexcept =
default;
23 constexpr iso_15924& operator=(iso_15924&&)
noexcept =
default;
25 constexpr iso_15924(std::integral
auto number) : _v(0)
31 iso_15924(std::string_view
code4);
33 constexpr iso_15924(intrinsic_t, uint16_t v) noexcept : _v(v)
38 [[nodiscard]]
constexpr uint16_t
const& intrinsic()
const noexcept
43 [[nodiscard]]
constexpr uint16_t& intrinsic()
noexcept
48 [[nodiscard]]
constexpr bool empty()
const noexcept
53 explicit operator bool()
const noexcept
60 [[nodiscard]]
constexpr uint16_t
number() const noexcept
67 [[nodiscard]] std::string_view
code4() const noexcept;
77 [[nodiscard]] constexpr friend
bool operator==(iso_15924 const& lhs, iso_15924 const& rhs) noexcept = default;
78 [[nodiscard]] constexpr friend auto operator<=>(iso_15924 const& lhs, iso_15924 const& rhs) noexcept = default;
86 [[nodiscard]] constexpr friend
bool matches(iso_15924 const& lhs, iso_15924 const& rhs) noexcept
88 return lhs.empty() or lhs == rhs;
99 [[nodiscard]]
size_t operator()(hi::iso_15924
const& rhs)
const noexcept
#define hi_axiom_bounds(x,...)
Specify an axiom that the value is within bounds.
Definition assert.hpp:264
#define hi_check_bounds(x,...)
Assert if a value is within bounds, or throw a parse_error.
Definition assert.hpp:132
DOXYGEN BUG.
Definition algorithm.hpp:13
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:367
geometry/margins.hpp
Definition cache.hpp:11
std::string_view code4_open_type() const noexcept
Get the 4-letter code used by open-type.
bool left_to_right() const noexcept
Is this script written left-to-right.
std::string_view code4() const noexcept
Get the iso-15924 4-letter code.
constexpr friend bool matches(iso_15924 const &lhs, iso_15924 const &rhs) noexcept
Check if rhs matches with lhs.
Definition iso_15924.hpp:86
constexpr uint16_t number() const noexcept
Get the iso-15924 numeric value.
Definition iso_15924.hpp:60