diff options
Diffstat (limited to 'src/mess/tools/imgtool/charconv.h')
-rw-r--r-- | src/mess/tools/imgtool/charconv.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/mess/tools/imgtool/charconv.h b/src/mess/tools/imgtool/charconv.h new file mode 100644 index 00000000000..fcc6fd9af1f --- /dev/null +++ b/src/mess/tools/imgtool/charconv.h @@ -0,0 +1,29 @@ +/*************************************************************************** + + charconv.h + + Imgtool character set conversion routines. + +***************************************************************************/ + + +#ifndef __CHARCONV_H__ +#define __CHARCONV_H__ + + +/* Supported character sets */ +typedef enum +{ + IMGTOOL_CHARSET_UTF8, + IMGTOOL_CHARSET_ISO_8859_1, +} imgtool_charset; + + +/* 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__ */ |