author | Rich Felker <dalias@aerifal.cx> | 2015年06月16日 04:44:17 +0000 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2015年06月16日 05:28:48 +0000 |
commit | 1507ebf837334e9e07cfab1ca1c2e88449069a80 (patch) | |
tree | 92bad1f861e442f7e2d2fa4e178f471f4371509a /src/multibyte/internal.h | |
parent | 38e2f727237230300fea6aff68802db04625fd23 (diff) | |
download | musl-1507ebf837334e9e07cfab1ca1c2e88449069a80.tar.gz |
-rw-r--r-- | src/multibyte/internal.h | 7 |
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" |