7#include "../enum_metadata.hpp"
8#include <unordered_map>
12namespace hi::inline
v1 {
28constexpr auto text_decoration_metadata = enum_metadata{
29 text_decoration::None,
"none",
30 text_decoration::Underline,
"underline",
31 text_decoration::WavyUnderline,
"wavy-underline",
32 text_decoration::StrikeThrough,
"strike-through"
36[[nodiscard]]
inline std::string_view
to_string(text_decoration
const &rhs)
noexcept
38 return text_decoration_metadata[rhs];
43 return lhs << text_decoration_metadata[rhs];
DOXYGEN BUG.
Definition algorithm.hpp:15
text_decoration
Describes how a grapheme should be underlined when rendering the text.
Definition text_decoration.hpp:20