]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - gmqcc.h
Importing utf8lib
[xonotic/gmqcc.git] / gmqcc.h
diff --git a/gmqcc.h b/gmqcc.h
index 616d7d2e4a6fa8cf767b1a7ba2330760e9433267..4b423a4a35e0e3ce42381f5bbccb6cae846e2a7f 100644 (file)
--- a/gmqcc.h
+++ b/gmqcc.h
@@ -929,6 +929,17 @@ typedef uint32_t longbit;
 #define LONGBIT(bit) (bit)
 #endif
 
+/*===================================================================*/
+/*=========================== utf8lib.c =============================*/
+/*===================================================================*/
+typedef uint32_t Uchar;
+
+size_t u8_strlen  (const char*);
+size_t u8_strnlen (const char*, size_t);
+Uchar  u8_getchar (const char*, const char**);
+Uchar  u8_getnchar(const char*, const char**, size_t);
+int    u8_fromchar(Uchar w,     char *to,     size_t maxlen);
+
 /*===================================================================*/
 /*============================= opts.c ==============================*/
 /*===================================================================*/