musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/multibyte/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/multibyte/internal.h')
-rw-r--r--src/multibyte/internal.h 7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/multibyte/internal.h b/src/multibyte/internal.h
index cc017fa2..53d62eda 100644
--- a/src/multibyte/internal.h
+++ b/src/multibyte/internal.h
@@ -23,3 +23,10 @@ extern const uint32_t bittab[];
#define SA 0xc2u
#define SB 0xf4u
+
+/* Arbitrary encoding for representing code units instead of characters. */
+#define CODEUNIT(c) (0xdfff & (signed char)(c))
+#define IS_CODEUNIT(c) ((unsigned)(c)-0xdf80 < 0x80)
+
+/* Get inline definition of MB_CUR_MAX. */
+#include "locale_impl.h"
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月25日 06:35:14 +0000

AltStyle によって変換されたページ (->オリジナル) /