7#include <unordered_map>
19enum class text_decoration {
29 {
"none", text_decoration::None},
30 {
"underline", text_decoration::Underline},
31 {
"wavy-underline", text_decoration::WavyUnderline},
32 {
"strike-through", text_decoration::StrikeThrough},
35[[nodiscard]]
inline char const *to_const_string(text_decoration
const &rhs)
noexcept
38 case text_decoration::None:
return "none";
39 case text_decoration::Underline:
return "underline";
40 case text_decoration::WavyUnderline:
return "wavy-underline";
41 case text_decoration::StrikeThrough:
return "strike-through";
42 default: tt_no_default();
48 return to_const_string(rhs);
53 return lhs << to_const_string(rhs);