X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FLibraries%2Flibunicode.so_src%2Finclude_exp%2Funicode.h;fp=Usermode%2FLibraries%2Flibunicode.so_src%2Finclude_exp%2Funicode.h;h=495c8cfa26b6a4248fca1d7815f5cdc0ff04b1a1;hb=6a99a6d70179161964d47de9a825fd61e8445b86;hp=0000000000000000000000000000000000000000;hpb=265bcb9e6fd6611eda6bba3aed13da83e584e058;p=tpg%2Facess2.git diff --git a/Usermode/Libraries/libunicode.so_src/include_exp/unicode.h b/Usermode/Libraries/libunicode.so_src/include_exp/unicode.h new file mode 100644 index 00000000..495c8cfa --- /dev/null +++ b/Usermode/Libraries/libunicode.so_src/include_exp/unicode.h @@ -0,0 +1,28 @@ +/* + * Acess2 "libunicode" UTF Parser + * - By John Hodge (thePowersGang) + * + * unicode.h + * - Main header + */ +#ifndef _LIBUNICODE__UNICODE_H_ +#define _LIBUNICODE__UNICODE_H_ + +#include + +/** + * \breif Read a single codepoint from a UTF-8 stream + * \return Number of bytes read + */ +extern int ReadUTF8(const char *Input, uint32_t *Val); +/** + * \brief Read backwards in the stream + */ +extern int ReadUTF8Rev(const char *Base, int Offset, uint32_t *Val); +/** + * \breif Write a single codepoint to a UTF-8 stream + */ +extern int WriteUTF8(char *buf, uint32_t Val); + +#endif +