diff options
Diffstat (limited to 'libutf.h')
| -rw-r--r-- | libutf.h | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/libutf.h b/libutf.h deleted file mode 100644 index 30255cc..0000000 --- a/libutf.h +++ /dev/null @@ -1,34 +0,0 @@ -#ifndef LIBUTF_H -#define LIBUTF_H - -/* libutf8 © 2012-2015 Connor Lane Smith <cls@lubutu.com> */ -#include <stddef.h> -#include <stdint.h> - -#if __STDC_VERSION__ >= 201112L -#include <uchar.h> -#ifdef __STDC_UTF_32__ -#define RUNE_C INT32_C -typedef char32_t Rune; -#endif -#endif - -#ifndef RUNE_C -#ifdef INT32_C -#define RUNE_C INT32_C -typedef uint_least32_t Rune; -#else -#define RUNE_C(x) x##L -typedef unsigned long Rune; -#endif -#endif - -#define UTFmax 4 /* maximum bytes per rune */ - -#define Runeself 0x80 /* rune and utf are equal (<) */ -#define Runemax RUNE_C(0x10FFFF) /* maximum rune value */ - -VIS_INTERNAL int runelen(Rune r); -VIS_INTERNAL int runetochar(char *s, const Rune *p); - -#endif |
