6#include <unordered_map>
18enum class TextDecoration {
28 {
"none", TextDecoration::None},
29 {
"underline", TextDecoration::Underline},
30 {
"wavy-underline", TextDecoration::WavyUnderline},
31 {
"strike-through", TextDecoration::StrikeThrough},
34[[nodiscard]]
inline char const *to_const_string(TextDecoration
const &rhs)
noexcept
37 case TextDecoration::None:
return "none";
38 case TextDecoration::Underline:
return "underline";
39 case TextDecoration::WavyUnderline:
return "wavy-underline";
40 case TextDecoration::StrikeThrough:
return "strike-through";
41 default: tt_no_default;
47 return to_const_string(rhs);
52 return lhs << to_const_string(rhs);