summaryrefslogtreecommitdiff
path: root/src/buffer.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.hh')
-rw-r--r--src/buffer.hh28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/buffer.hh b/src/buffer.hh
index b91a7ed1..60820487 100644
--- a/src/buffer.hh
+++ b/src/buffer.hh
@@ -12,6 +12,34 @@
namespace Kakoune
{
+enum class EolFormat
+{
+ Lf,
+ Crlf
+};
+
+constexpr Array<EnumDesc<EolFormat>, 2> enum_desc(EolFormat)
+{
+ return { {
+ { EolFormat::Lf, "lf" },
+ { EolFormat::Crlf, "crlf" },
+ } };
+}
+
+enum class ByteOrderMark
+{
+ None,
+ Utf8
+};
+
+constexpr Array<EnumDesc<ByteOrderMark>, 2> enum_desc(ByteOrderMark)
+{
+ return { {
+ { ByteOrderMark::None, "none" },
+ { ByteOrderMark::Utf8, "utf8" },
+ } };
+}
+
class Buffer;
constexpr timespec InvalidTime = { -1, -1 };