Rizin
unix-like reverse engineering framework and cli tools
rz_utf16.h
Go to the documentation of this file.
1 #ifndef RZ_UTF16_H
2 #define RZ_UTF16_H
3 
4 /* For RzRune definition */
5 #include "rz_utf8.h"
6 
7 RZ_API int rz_utf16_decode(const ut8 *ptr, int ptrlen, RzRune *ch, bool bigendian);
8 RZ_API int rz_utf16le_decode(const ut8 *ptr, int ptrlen, RzRune *ch);
9 RZ_API int rz_utf16be_decode(const ut8 *ptr, int ptrlen, RzRune *ch);
10 RZ_API int rz_utf16le_encode(ut8 *ptr, RzRune ch);
11 
12 #endif // RZ_UTF16_H
#define RZ_API
uint8_t ut8
Definition: lh5801.h:11
RZ_API int rz_utf16_decode(const ut8 *ptr, int ptrlen, RzRune *ch, bool bigendian)
Definition: utf16.c:8
RZ_API int rz_utf16le_encode(ut8 *ptr, RzRune ch)
Definition: utf16.c:46
RZ_API int rz_utf16le_decode(const ut8 *ptr, int ptrlen, RzRune *ch)
Definition: utf16.c:36
RZ_API int rz_utf16be_decode(const ut8 *ptr, int ptrlen, RzRune *ch)
Definition: utf16.c:41
ut32 RzRune
Definition: rz_utf8.h:13