Usermode - Moved UTF-8 handling into a library
[tpg/acess2.git] / Usermode / Libraries / libunicode.so_src / include_exp / unicode.h
1 /*
2  * Acess2 "libunicode" UTF Parser
3  * - By John Hodge (thePowersGang)
4  *
5  * unicode.h
6  * - Main header
7  */
8 #ifndef _LIBUNICODE__UNICODE_H_
9 #define _LIBUNICODE__UNICODE_H_
10
11 #include <stdint.h>
12
13 /**
14  * \breif Read a single codepoint from  a UTF-8 stream
15  * \return Number of bytes read
16  */
17 extern int      ReadUTF8(const char *Input, uint32_t *Val);
18 /**
19  * \brief Read backwards in the stream
20  */
21 extern int      ReadUTF8Rev(const char *Base, int Offset, uint32_t *Val);
22 /**
23  * \breif Write a single codepoint to a UTF-8 stream
24  */
25 extern int      WriteUTF8(char *buf, uint32_t Val);
26
27 #endif
28

UCC git Repository :: git.ucc.asn.au