7#include "text_style.hpp"
8#include "../concurrency/module.hpp"
14namespace hi::inline
v1 {
20 [[nodiscard]] text_style
const &
23 for (
hilet& style : *
this) {
24 if (
matches(style, phrasing, language, region, script)) {
35template<
typename CharT>
36struct std::formatter<
hi::text_theme, CharT> : std::formatter<std::string_view, CharT> {
37 auto format(hi::text_theme
const& t,
auto& fc)
39 return std::formatter<std::string_view, CharT>::format(std::format(
"#{}", t.size()), fc);
#define hi_axiom(expression,...)
Specify an axiom; an expression that is true.
Definition assert.hpp:253
#define hilet
Invariant should be the default for variables.
Definition utility.hpp:23
text_phrasing
Text phrasing.
Definition text_phrasing.hpp:22
DOXYGEN BUG.
Definition algorithm.hpp:13
constexpr bool matches(text_phrasing_mask const &lhs, text_phrasing const &rhs) noexcept
Check if the text-phrasing is included in the text-phrasing-mask.
Definition text_phrasing.hpp:216
geometry/margins.hpp
Definition cache.hpp:11
ISO-15924 script code.
Definition iso_15924.hpp:17
ISO-3166 country code.
Definition iso_3166.hpp:15
ISO-639 language code.
Definition iso_639.hpp:23
Definition text_theme.hpp:16