7#include "../utility/utility.hpp"
8#include "../macros.hpp"
16hi_export_module(hikogui.i18n.iso_15924 : intf);
18hi_export
namespace hi {
inline namespace v1 {
33 hi_check_bounds(
number, 0, 1000);
67 constexpr iso_15924(std::in_place_t, uint16_t v)
noexcept : _v(v)
69 hi_axiom_bounds(_v, 0, 1000);
127 return lhs.empty()
or lhs == rhs;
DOXYGEN BUG.
Definition algorithm_misc.hpp:20
The HikoGUI namespace.
Definition recursive_iterator.hpp:15
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:378
ISO-15924 script code.
Definition iso_15924_intf.hpp:23
constexpr bool left_to_right() const noexcept
Is this script written left-to-right.
Definition iso_15924_impl.hpp:349
static constexpr iso_15924 common() noexcept
Common script is used for characters that are common in different scripts.
Definition iso_15924_intf.hpp:50
constexpr uint16_t number() const noexcept
Get the iso-15924 numeric value.
Definition iso_15924_intf.hpp:94
constexpr std::string code4_open_type() const noexcept
Get the 4-letter code used by open-type.
Definition iso_15924_impl.hpp:343
static constexpr iso_15924 wildcard() noexcept
When any script is allowed.
Definition iso_15924_intf.hpp:41
constexpr friend bool matches(iso_15924 const &lhs, iso_15924 const &rhs) noexcept
Check if rhs matches with lhs.
Definition iso_15924_intf.hpp:125
static constexpr iso_15924 uncoded() noexcept
Used when the script was not encoded with the text.
Definition iso_15924_intf.hpp:57
constexpr std::string code4() const noexcept
Get the iso-15924 4-letter code.
Definition iso_15924_impl.hpp:337