diff options
Diffstat (limited to 'src/string_utils.hh')
| -rw-r--r-- | src/string_utils.hh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/string_utils.hh b/src/string_utils.hh index 224dffc2..928070d3 100644 --- a/src/string_utils.hh +++ b/src/string_utils.hh @@ -2,6 +2,7 @@ #define string_utils_hh_INCLUDED #include "string.hh" +#include "enum.hh" #include "vector.hh" #include "optional.hh" @@ -143,6 +144,15 @@ enum class Quoting Shell }; +constexpr auto enum_desc(Meta::Type<Quoting>) +{ + return make_array<EnumDesc<Quoting>, 3>({ + { Quoting::Raw, "raw" }, + { Quoting::Kakoune, "kakoune" }, + { Quoting::Shell, "shell" } + }); +} + inline auto quoter(Quoting quoting) { switch (quoting) |
