summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-04-22 16:55:13 +0300
committerTor Lillqvist <tml@collabora.com>2014-04-22 16:59:24 +0300
commit247cec2c119464dca7775c1a556cc2bfd59e0f8c (patch)
tree2e2665c18791e3edbddb43298e347193203ff5f3 /sal
parentfc0f5f654848f5a44f5f95a862916d57594fd045 (diff)
Bypass EUC and ISO-2022 encoding tables for iOS
It is questionable whether they are needed for any document format. Saves 0.4 MB of app executable size. If it turns out that some document format that support is needed for actually does need these tables, will have to revert this then. An alternative, but more complex, way to save executable size would be to put this, and other, conversion data into a data file instead. Change-Id: I017e8f15626023af1344964be54c09fe2d937acc
Diffstat (limited to 'sal')
-rw-r--r--sal/textenc/tables.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/sal/textenc/tables.cxx b/sal/textenc/tables.cxx
index 90b40ce60f85..0d5eaf0a75f0 100644
--- a/sal/textenc/tables.cxx
+++ b/sal/textenc/tables.cxx
@@ -171,11 +171,19 @@ extern "C" SAL_DLLPUBLIC_EXPORT ImplTextEncodingData const *
&aImplGBT12345TextEncodingData, /* GBT_12345 */
&aImplGBKTextEncodingData, /* GBK */
&aImplBIG5TextEncodingData, /* BIG5 */
+#ifndef IOS
&aImplEUCJPTextEncodingData, /* EUC_JP */
&aImplEUCCNTextEncodingData, /* EUC_CN */
&aImplEucTwTextEncodingData, /* EUC_TW */
&aImplIso2022JpTextEncodingData, /* ISO_2022_JP */
&aImplIso2022CnTextEncodingData, /* ISO_2022_CN */
+#else
+ NULL, /* EUC_JP */
+ NULL, /* EUC_CN */
+ NULL, /* EUC_TW */
+ NULL, /* ISO_2022_JP */
+ NULL, /* ISO_2022_CN */
+#endif
&aImplKOI8RTextEncodingData, /* KOI8_R */
&aImplUTF7TextEncodingData, /* UTF7 */
NULL, /* UTF8, see above */