summaryrefslogtreecommitdiffstats
path: root/src/table/iso8859_5.h
diff options
context:
space:
mode:
authorroot <root>2004-08-04 03:29:28 +0000
committerroot <root>2004-08-04 03:29:28 +0000
commit62d259a764629941d193707968a83e8ac06e5d15 (patch)
tree4c347b0a804e1aa70653371df50c06c1a5a1f223 /src/table/iso8859_5.h
parent96b489e3dadb08fd33a8b5d72d5f81c7fb658f66 (diff)
*** empty log message ***
Diffstat (limited to 'src/table/iso8859_5.h')
-rw-r--r--src/table/iso8859_5.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/table/iso8859_5.h b/src/table/iso8859_5.h
new file mode 100644
index 0000000..5cc27fb
--- /dev/null
+++ b/src/table/iso8859_5.h
@@ -0,0 +1,31 @@
+//
+// AUTOMATICALLLY GENERATED by gentables
+//
+#ifdef ENCODING_EU
+
+static const uint8_t iso8859_5_f_1024[] = {
+ 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0x00, 0xae, 0xaf, 0xb0,
+ 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7, 0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf, 0xc0,
+ 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, 0xd0,
+ 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7, 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf, 0xe0,
+ 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, 0x00,
+ 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0x00, 0xfe, 0xff
+};
+
+static uint32_t cs_iso8859_5_from_unicode (unicode_t unicode) {
+ if (unicode <= 0x009f) return unicode;
+ if (unicode == 0x00a0) return 0x00a0;
+ if (unicode == 0x00a7) return 0x00fd;
+ if (unicode == 0x00ad) return 0x00ad;
+ if (unicode == 0x2116) return 0x00f0;
+ if (0x0401 <= unicode && unicode <= 0x045f)
+ return iso8859_5_f_1024[unicode - 0x0401] == 0 ? NOCHAR : iso8859_5_f_1024[unicode - 0x0401];
+ return NOCHAR;
+}
+
+#else
+
+#define cs_iso8859_5_from_unicode cs_unknown_from_unicode
+#define cs_iso8859_5_to_unicode cs_unknown_to_unicode
+
+#endif