summaryrefslogtreecommitdiffhomepage
path: root/include/unicode/types.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2022-01-03 16:08:38 +0100
committerRoland Reichwein <mail@reichwein.it>2022-01-03 16:08:38 +0100
commitd234c1ca09af512e9a13579a6fff8d5834d7b36c (patch)
treed36c82ff54ddf04b83e3d5154bc32278f16fcf09 /include/unicode/types.h
parentec9c8e682d615cd2b51ea0fec05273ed4dcad50a (diff)
Separated out remaining functions from unicode.h, documentation
Diffstat (limited to 'include/unicode/types.h')
-rw-r--r--include/unicode/types.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/include/unicode/types.h b/include/unicode/types.h
index a4461d7..6eac5f7 100644
--- a/include/unicode/types.h
+++ b/include/unicode/types.h
@@ -1,9 +1,20 @@
+//
+// Reichwein.IT Unicode Library
+//
+// Basic types
+//
+
#pragma once
+// Definition of utf8_t as abstraction from char and char8_t, when available
+//
+// Be aware of char being signed on common architectures, while char8_t is
+// unsigned.
#ifdef __cpp_char8_t
-// char8_t available
+ // char8_t available in C++20
typedef char8_t utf8_t;
#else
+ // fallback to char
typedef char utf8_t;
#endif
typedef char iso_t;