summaryrefslogtreecommitdiff
path: root/Build/source/texk/ptexenc/kanjicnv.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/ptexenc/kanjicnv.h')
-rw-r--r--Build/source/texk/ptexenc/kanjicnv.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/Build/source/texk/ptexenc/kanjicnv.h b/Build/source/texk/ptexenc/kanjicnv.h
new file mode 100644
index 00000000000..4893389a527
--- /dev/null
+++ b/Build/source/texk/ptexenc/kanjicnv.h
@@ -0,0 +1,35 @@
+/*
+ * KANJI Code conversion routines.
+ */
+
+#ifndef PTEXENC_KANJICNV_H
+#define PTEXENC_KANJICNV_H
+
+#include <kpathsea/types.h>
+
+#define HI(x) ((((int)(x)) >> 8) & 0xff)
+#define LO(x) ( ((int)(x)) & 0xff)
+#define HILO(x,y) ((LO(x) << 8) | LO(y))
+
+extern KPSEDLL boolean isEUCkanji1(int c);
+extern KPSEDLL boolean isEUCkanji2(int c);
+
+extern KPSEDLL boolean isSJISkanji1(int c);
+extern KPSEDLL boolean isSJISkanji2(int c);
+
+/* EUC <=> JIS X 0208 code conversion */
+extern KPSEDLL int EUCtoJIS(int);
+extern KPSEDLL int JIStoEUC(int);
+
+/* Shift JIS <=> JIS Kanji code conversion */
+extern KPSEDLL int SJIStoJIS(int);
+extern KPSEDLL int JIStoSJIS(int);
+
+/* Shift JIS <=> EUC Kanji code conversion */
+extern KPSEDLL int SJIStoEUC(int);
+extern KPSEDLL int EUCtoSJIS(int);
+
+/* KUTEN => JIS kanji code conversion */
+extern KPSEDLL int KUTENtoJIS(int);
+
+#endif /* PTEXENC_KANJICNV_H */