summaryrefslogtreecommitdiff
path: root/src/u.hh
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2025-09-04 22:24:13 +0200
committerJoel Klinghed <the_jk@spawned.biz>2025-09-04 22:24:13 +0200
commit65860e6c873e6e056fe3d1dadd1d309b1bd66e7b (patch)
treecb59ed23c72b841fc2688606d68359b3f6b1e324 /src/u.hh
parentd75b25d50f4df655d1e69ff900cfeee823039296 (diff)
Add UTF-8, UTF-16 and Modified UTF-8 support
Diffstat (limited to 'src/u.hh')
-rw-r--r--src/u.hh19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/u.hh b/src/u.hh
new file mode 100644
index 0000000..583b67b
--- /dev/null
+++ b/src/u.hh
@@ -0,0 +1,19 @@
+#ifndef U_HH
+#define U_HH
+
+namespace u {
+
+enum class ReadError {
+ Invalid, // Invalid sequence
+ End, // At end (it == end)
+ Incomplete, // Too few bytes
+};
+
+enum class ReadErrorReplace {
+ End, // At end (it == end)
+ Incomplete, // Too few bytes
+};
+
+} // namespace u
+
+#endif // U_HH