summaryrefslogtreecommitdiff
path: root/core/src/xmake/string/convert.c
diff options
context:
space:
mode:
authorruki <[email protected]>2019-07-10 00:34:03 +0800
committerruki <[email protected]>2019-07-09 21:24:23 +0800
commit45c4a826ea4c6ce5967dd37b79ee668367cabcfd (patch)
tree8afff252903ae11ab9765e071683b65404d7012c /core/src/xmake/string/convert.c
parent568844957830f65aab43c2d309afff64772655c7 (diff)
remove some unused funcs in ansi
Diffstat (limited to 'core/src/xmake/string/convert.c')
-rw-r--r--core/src/xmake/string/convert.c23
1 files changed, 14 insertions, 9 deletions
diff --git a/core/src/xmake/string/convert.c b/core/src/xmake/string/convert.c
index 693a605ee..a6edd5692 100644
--- a/core/src/xmake/string/convert.c
+++ b/core/src/xmake/string/convert.c
@@ -48,15 +48,20 @@ typedef struct __xm_charset_entry_t
// the charsets, @note: type & name is sorted
static xm_charset_entry_t g_charsets[] =
{
- {TB_CHARSET_TYPE_ASCII, "ascii" }
-, {TB_CHARSET_TYPE_GB2312, "gb2312" }
-, {TB_CHARSET_TYPE_GBK, "gbk" }
-, {TB_CHARSET_TYPE_ISO8859, "iso8859" }
-, {TB_CHARSET_TYPE_UCS2, "ucs2" }
-, {TB_CHARSET_TYPE_UCS4, "ucs4" }
-, {TB_CHARSET_TYPE_UTF16, "utf16" }
-, {TB_CHARSET_TYPE_UTF32, "utf32" }
-, {TB_CHARSET_TYPE_UTF8, "utf8" }
+ {TB_CHARSET_TYPE_ANSI, "ansi" }
+, {TB_CHARSET_TYPE_ASCII, "ascii" }
+, {TB_CHARSET_TYPE_GB2312, "gb2312" }
+, {TB_CHARSET_TYPE_GBK, "gbk" }
+, {TB_CHARSET_TYPE_ISO8859, "iso8859" }
+, {TB_CHARSET_TYPE_UCS2, "ucs2" }
+, {TB_CHARSET_TYPE_UCS4, "ucs4" }
+, {TB_CHARSET_TYPE_UTF16, "utf16" }
+, {TB_CHARSET_TYPE_UTF16 | TB_CHARSET_TYPE_BE, "utf16be" }
+, {TB_CHARSET_TYPE_UTF16 | TB_CHARSET_TYPE_LE, "utf16le" }
+, {TB_CHARSET_TYPE_UTF32, "utf32" }
+, {TB_CHARSET_TYPE_UTF32 | TB_CHARSET_TYPE_BE, "utf32be" }
+, {TB_CHARSET_TYPE_UTF32 | TB_CHARSET_TYPE_LE, "utf32le" }
+, {TB_CHARSET_TYPE_UTF8, "utf8" }
};
/* //////////////////////////////////////////////////////////////////////////////////////