summaryrefslogtreecommitdiff
path: root/support/texlab/crates/bibutils_sys/src/charsets.h
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-12-03 03:01:24 +0000
committerNorbert Preining <norbert@preining.info>2019-12-03 03:01:24 +0000
commitb8d4bb76703bcb15578e2b23c5d256532180b894 (patch)
treebedd1df7a00521a2bd986b3c0289d6556a59e39b /support/texlab/crates/bibutils_sys/src/charsets.h
parent02e4625a78a5029e8b5dc2a4ec70193b232f497e (diff)
CTAN sync 201912030301
Diffstat (limited to 'support/texlab/crates/bibutils_sys/src/charsets.h')
-rw-r--r--support/texlab/crates/bibutils_sys/src/charsets.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/support/texlab/crates/bibutils_sys/src/charsets.h b/support/texlab/crates/bibutils_sys/src/charsets.h
new file mode 100644
index 0000000000..da31392850
--- /dev/null
+++ b/support/texlab/crates/bibutils_sys/src/charsets.h
@@ -0,0 +1,25 @@
+/*
+ * charsets.h
+ *
+ * Copyright (c) Chris Putnam 2003-2019
+ *
+ * Source code released under the GPL version 2
+ *
+ */
+#ifndef CHARSETS_H
+#define CHARSETS_H
+
+#define CHARSET_UNKNOWN (-1)
+#define CHARSET_UNICODE (-2)
+#define CHARSET_GB18030 (-3)
+#define CHARSET_DEFAULT CHARSET_UNICODE
+#define CHARSET_UTF8_DEFAULT (1)
+#define CHARSET_BOM_DEFAULT (1)
+
+extern char * charset_get_xmlname( int n );
+extern int charset_find( char *name );
+extern void charset_list_all( FILE *fp );
+extern unsigned int charset_lookupchar( int charsetin, char c );
+extern unsigned int charset_lookupuni( int charsetout, unsigned int unicode );
+
+#endif