diff options
author | Jaromir Wysoglad | 2019-07-31 00:43:57 +0200 |
---|---|---|
committer | Filippos Karapetis | 2019-08-24 18:12:45 +0300 |
commit | 61cf628bfbe3031ff1cfa5f549e90f442cd1c5de (patch) | |
tree | 1cefe45f0b80eab0d6c9cf4aae5f12cf9aea6426 /common/encoding.h | |
parent | 888f3e4d3052e3dc42290e020388fb1c24999fb3 (diff) | |
download | scummvm-rg350-61cf628bfbe3031ff1cfa5f549e90f442cd1c5de.tar.gz scummvm-rg350-61cf628bfbe3031ff1cfa5f549e90f442cd1c5de.tar.bz2 scummvm-rg350-61cf628bfbe3031ff1cfa5f549e90f442cd1c5de.zip |
COMMON: Add cyrilic transliteration to Encoding.
Diffstat (limited to 'common/encoding.h')
-rw-r--r-- | common/encoding.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/common/encoding.h b/common/encoding.h index 64d9c04bb6..bccfb36b0a 100644 --- a/common/encoding.h +++ b/common/encoding.h @@ -55,12 +55,20 @@ class Encoding { String _to; String _from; - static char *doConversion(iconv_t iconvHandle, const String &to, const String &from, const char *string, size_t length); + static char *conversion(iconv_t iconvHandle, const String &to, const String &from, const char *string, size_t length); + + static char *conversion2(iconv_t iconvHandle, const String &to, const String &from, const char *string, size_t length); iconv_t _iconvHandle; static char *convertIconv(iconv_t iconvHandle, const char *string, size_t length); static char *convertTransManMapping(const char *to, const char *from, const char *string, size_t length); + + static char *transliterateCyrilic(const char *string); + static uint32 *transliterateUTF32(const uint32 *string, size_t length); + + static iconv_t initIconv(const String &to, const String &from); + static void deinitIconv(iconv_t iconvHandle); }; } |