7#include "../utility/utility.hpp"
8#include "../macros.hpp"
13hi_export_module(hikogui.i18n.iso_15924 : intf);
15namespace hi {
inline namespace v1 {
30 hi_check_bounds(
number, 0, 1000);
64 constexpr iso_15924(intrinsic_t, uint16_t v)
noexcept : _v(v)
66 hi_axiom_bounds(_v, 0, 1000);
124 return lhs.empty()
or lhs == rhs;
DOXYGEN BUG.
Definition algorithm.hpp:16
geometry/margins.hpp
Definition lookahead_iterator.hpp:5
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:377
ISO-15924 script code.
Definition iso_15924_intf.hpp:20
constexpr bool left_to_right() const noexcept
Is this script written left-to-right.
Definition iso_15924_impl.hpp:346
static constexpr iso_15924 common() noexcept
Common script is used for characters that are common in different scripts.
Definition iso_15924_intf.hpp:47
constexpr uint16_t number() const noexcept
Get the iso-15924 numeric value.
Definition iso_15924_intf.hpp:91
constexpr std::string code4_open_type() const noexcept
Get the 4-letter code used by open-type.
Definition iso_15924_impl.hpp:340
static constexpr iso_15924 wildcard() noexcept
When any script is allowed.
Definition iso_15924_intf.hpp:38
constexpr friend bool matches(iso_15924 const &lhs, iso_15924 const &rhs) noexcept
Check if rhs matches with lhs.
Definition iso_15924_intf.hpp:122
static constexpr iso_15924 uncoded() noexcept
Used when the script was not encoded with the text.
Definition iso_15924_intf.hpp:54
constexpr std::string code4() const noexcept
Get the iso-15924 4-letter code.
Definition iso_15924_impl.hpp:334