7#include "text_style.hpp"
8#include "../concurrency/module.hpp"
14namespace hi {
inline namespace v1 {
20 [[nodiscard]]
text_style const& find(text_phrasing phrasing, language_tag language)
const noexcept
22 for (
hilet& style : *
this) {
23 if (matches(style, phrasing, language)) {
42 for (
auto& style : *
this) {
43 if (style.phrasing_mask == phrasing_mask and style.language_mask == language_mask) {
54 auto non_filter_style =
back();
59 it->phrasing_mask = phrasing_mask;
60 it->language_mask = language_mask;
67template<
typename CharT>
68struct std::formatter<
hi::text_theme, CharT> : std::formatter<std::string_view, CharT> {
71 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
DOXYGEN BUG.
Definition algorithm.hpp:13
geometry/margins.hpp
Definition cache.hpp:11
Definition text_style.hpp:15
Definition text_theme.hpp:16
text_style & find_or_add(text_phrasing_mask phrasing_mask, language_tag language_mask) noexcept
Find or add an text_style to the text-theme.
Definition text_theme.hpp:40
text_style back(text_style ... args)
text_style cbegin(text_style ... args)
text_style empty(text_style ... args)
text_style insert(text_style ... args)