summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/tools/imgtool/charconv.h
blob: 11b5796639628099c6a3f635af461d5b6299e619 (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
30
31
// license:???
// copyright-holders:???
/***************************************************************************

    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__ */