X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=utf8lib.h;h=543fbfc0ed1c886e578d61a65218cdb17cb190dd;hb=eb155f171d675b2c36f09f0bdf348776d2ec2fab;hp=9124c4e7905ea72ed0123aca9c20daf7a02e9f7e;hpb=3ceec78e79383ada2e6abe25e5a6e5f067259427;p=xonotic%2Fdarkplaces.git diff --git a/utf8lib.h b/utf8lib.h index 9124c4e7..543fbfc0 100644 --- a/utf8lib.h +++ b/utf8lib.h @@ -38,13 +38,15 @@ size_t u8_prevbyte(const char*, size_t); Uchar u8_getchar_utf8_enabled(const char*, const char**); Uchar u8_getnchar_utf8_enabled(const char*, const char**, size_t); int u8_fromchar(Uchar, char*, size_t); +size_t u8_mbstowcs(Uchar *, const char *, size_t); size_t u8_wcstombs(char*, const Uchar*, size_t); size_t u8_COM_StringLengthNoColors(const char *s, size_t size_s, qboolean *valid); // returns a static buffer, use this for inlining -char *u8_encodech(Uchar ch, size_t*); +char *u8_encodech(Uchar ch, size_t*, char*buf16); size_t u8_strpad(char *out, size_t outsize, const char *in, qboolean leftalign, size_t minwidth, size_t maxwidth); +size_t u8_strpad_colorcodes(char *out, size_t outsize, const char *in, qboolean leftalign, size_t minwidth, size_t maxwidth); /* Careful: if we disable utf8 but not freetype, we wish to see freetype chars * for normal letters. So use E000+x for special chars, but leave the freetype stuff for the