blob: 1d811eef99aa528001fbca885587ad1cd266b592 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/***************************************************************************
charconv.h
Imgtool character set conversion routines.
***************************************************************************/
#ifndef __CHARCONV_H__
#define __CHARCONV_H__
/* Supported character sets */
enum imgtool_charset
{
IMGTOOL_CHARSET_UTF8,
IMGTOOL_CHARSET_ISO_8859_1,
};
/* Convert specified charset to UTF-8 */
char *utf8_from_native(imgtool_charset charset, const char *src);
/* Convert UTF-8 string to specified charset */
char *native_from_utf8(imgtool_charset charset, const char *src);
#endif /* __CHARCONV_H__ */
|