summaryrefslogtreecommitdiff
path: root/package/libs/libiconv/src/include/charmaps.h
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-10-10 17:56:22 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-10-10 17:56:22 +0000
commite5b1a6e57b70b493e8caa1591cf6d429caa81716 (patch)
treebea5a4113816e062387f7211c4a5d520335a2059 /package/libs/libiconv/src/include/charmaps.h
parent4f32cbce8720442d8be8b96f590cf27ab1074331 (diff)
libiconv: move to trunk and add myself as maintainer
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33710 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/libs/libiconv/src/include/charmaps.h')
-rw-r--r--package/libs/libiconv/src/include/charmaps.h80
1 files changed, 80 insertions, 0 deletions
diff --git a/package/libs/libiconv/src/include/charmaps.h b/package/libs/libiconv/src/include/charmaps.h
new file mode 100644
index 0000000000..083cd699f1
--- /dev/null
+++ b/package/libs/libiconv/src/include/charmaps.h
@@ -0,0 +1,80 @@
+#include "charmaps/iso-8859-2.h"
+#include "charmaps/iso-8859-10.h"
+#include "charmaps/windows-874.h"
+#include "charmaps/windows-1250.h"
+#include "charmaps/koi8-r.h"
+
+#ifdef ALL_CHARSETS
+#include "charmaps/iso-8859-3.h"
+#include "charmaps/iso-8859-4.h"
+#include "charmaps/iso-8859-5.h"
+#include "charmaps/iso-8859-6.h"
+#include "charmaps/iso-8859-7.h"
+#include "charmaps/iso-8859-8.h"
+#include "charmaps/iso-8859-9.h"
+#include "charmaps/iso-8859-13.h"
+#include "charmaps/iso-8859-14.h"
+#include "charmaps/iso-8859-16.h"
+#include "charmaps/windows-1251.h"
+#include "charmaps/windows-1252.h"
+#include "charmaps/windows-1253.h"
+#include "charmaps/windows-1254.h"
+#include "charmaps/windows-1255.h"
+#include "charmaps/windows-1256.h"
+#include "charmaps/windows-1257.h"
+#include "charmaps/windows-1258.h"
+#endif
+
+
+struct charmap {
+ const char name[13];
+ const unsigned char *map;
+};
+
+static struct charmap charmaps[] = {
+ { "ISO-8859-2", map_iso_8859_2 },
+ { "ISO-8859-10", map_iso_8859_10 },
+
+#ifdef ALL_CHARSETS
+ { "ISO-8859-3", map_iso_8859_3 },
+ { "ISO-8859-4", map_iso_8859_4 },
+ { "ISO-8859-5", map_iso_8859_5 },
+ { "ISO-8859-6", map_iso_8859_6 },
+ { "ISO-8859-7", map_iso_8859_7 },
+ { "ISO-8859-8", map_iso_8859_8 },
+ { "ISO-8859-9", map_iso_8859_9 },
+ { "ISO-8859-13", map_iso_8859_13 },
+ { "ISO-8859-14", map_iso_8859_14 },
+ { "ISO-8859-16", map_iso_8859_16 },
+#endif
+
+ { "WINDOWS-874", map_windows_874 },
+ { "WINDOWS-1250", map_windows_1250 },
+
+#ifdef ALL_CHARSETS
+ { "WINDOWS-1251", map_windows_1251 },
+ { "WINDOWS-1252", map_windows_1252 },
+ { "WINDOWS-1253", map_windows_1253 },
+ { "WINDOWS-1254", map_windows_1254 },
+ { "WINDOWS-1255", map_windows_1255 },
+ { "WINDOWS-1256", map_windows_1256 },
+ { "WINDOWS-1257", map_windows_1257 },
+ { "WINDOWS-1258", map_windows_1258 },
+#endif
+
+ { "KOI8-R", map_koi8_r },
+
+ /* Aliases */
+ { "LATIN2", map_iso_8859_2 },
+ { "LATIN6", map_iso_8859_10 },
+
+#ifdef ALL_CHARSETS
+ { "ARABIC", map_iso_8859_6 },
+ { "CYRILLIC", map_iso_8859_5 },
+ { "GREEK", map_iso_8859_7 },
+ { "HEBREW", map_iso_8859_8 },
+ { "LATIN3", map_iso_8859_3 },
+ { "LATIN4", map_iso_8859_4 },
+ { "LATIN5", map_iso_8859_9 },
+#endif
+};