diff options
Diffstat (limited to 'src/mame/tools/imgtool/charconv.h')
-rw-r--r-- | src/mame/tools/imgtool/charconv.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/mame/tools/imgtool/charconv.h b/src/mame/tools/imgtool/charconv.h new file mode 100644 index 00000000000..1544e9df402 --- /dev/null +++ b/src/mame/tools/imgtool/charconv.h @@ -0,0 +1,31 @@ +// license:BSD-3-Clause +// copyright-holders:Nathan Woods +/*************************************************************************** + + 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__ */ |