aboutsummaryrefslogtreecommitdiff
path: root/sys/libunicode/internal.h
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2021-10-29 08:42:39 -0700
committerNicholas Noll <nbnoll@eml.cc>2021-10-29 08:42:39 -0700
commit079d5d6a214f169fa8b73f2d6f6f741810dbe9fe (patch)
tree5f8842cf9fabd88d173f97301445fce8c75cb2f4 /sys/libunicode/internal.h
parent6318ddb69ad8380694bbca35ca5a72230c2ee694 (diff)
Exposed some unicode values to library users.
I was hiding too many important constants. This commit moves them to the main exported header.
Diffstat (limited to 'sys/libunicode/internal.h')
-rw-r--r--sys/libunicode/internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/libunicode/internal.h b/sys/libunicode/internal.h
index 6b0657b..df69310 100644
--- a/sys/libunicode/internal.h
+++ b/sys/libunicode/internal.h
@@ -25,13 +25,13 @@
#define TByte3 0xF0u // 0b11110000
#define TByte4 0xF8u // 0b11111000
+#define RuneMask 0x1FFFFFu
+
#define Rune1Byte 0x000080u // 1 << 8 (1 byte)
#define Rune2Byte 0x001000u // 1 << 12 (2 bytes)
#define Rune3Byte 0x020000u // 1 << 17 (3 bytes)
#define Rune4Byte 0x400000u // 1 << 22 (4 bytes)
-#define RuneMax 0x10FFFFu
-#define RuneMask 0x1FFFFFu
/* UTF-16 nonsense */
#define RuneSurrogateMin 0x0D8000