7#include "../utility/utility.hpp"
8#include "../macros.hpp"
9#include <unordered_map>
31constexpr auto text_decoration_metadata = enum_metadata{
32 text_decoration::None,
"none",
33 text_decoration::Underline,
"underline",
34 text_decoration::WavyUnderline,
"wavy-underline",
35 text_decoration::StrikeThrough,
"strike-through"
41 return text_decoration_metadata[rhs];
46 return lhs << text_decoration_metadata[rhs];
DOXYGEN BUG.
Definition algorithm.hpp:16
text_decoration
Describes how a grapheme should be underlined when rendering the text.
Definition text_decoration.hpp:23
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:377