libgpac
Documentation of the core library of GPAC. For more information, check out http://gpac.wp.mines-telecom.fr
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules
unicode.h File Reference
#include <gpac/setup.h>
+ Include dependency graph for unicode.h:

Functions

u32 utf8_to_ucs4 (u32 *ucs4_buf, u32 utf8_len, unsigned char *utf8_buf)
 Unicode conversion from UTF-8 to UCS-4. More...
 

Function Documentation

u32 utf8_to_ucs4 ( u32 ucs4_buf,
u32  utf8_len,
unsigned char *  utf8_buf 
)
Parameters
ucs4_bufThe UCS-4 buffer to fill
utf8_lenThe length of the UTF-8 buffer
utf8_bufThe buffer containing the UTF-8 data
Returns
the length of the ucs4_buf. Note that the ucs4_buf should be allocated by parent and should be at least utf8_len * 4