2 * Acess2 "libunicode" UTF Parser
3 * - By John Hodge (thePowersGang)
8 #ifndef _LIBUNICODE__UNICODE_H_
9 #define _LIBUNICODE__UNICODE_H_
14 * \breif Read a single codepoint from a UTF-8 stream
15 * \return Number of bytes read
17 extern int ReadUTF8(const char *Input, uint32_t *Val);
19 * \brief Read backwards in the stream
21 extern int ReadUTF8Rev(const char *Base, int Offset, uint32_t *Val);
23 * \breif Write a single codepoint to a UTF-8 stream
25 extern int WriteUTF8(char *buf, uint32_t Val);
28 static inline int Unicode_IsPrinting(uint32_t Codepoint) { return 1; }