diff options
author | Norbert Preining <norbert@preining.info> | 2019-12-03 03:01:24 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-12-03 03:01:24 +0000 |
commit | b8d4bb76703bcb15578e2b23c5d256532180b894 (patch) | |
tree | bedd1df7a00521a2bd986b3c0289d6556a59e39b /support/texlab/crates/bibutils_sys/src/utf8.h | |
parent | 02e4625a78a5029e8b5dc2a4ec70193b232f497e (diff) |
CTAN sync 201912030301
Diffstat (limited to 'support/texlab/crates/bibutils_sys/src/utf8.h')
-rw-r--r-- | support/texlab/crates/bibutils_sys/src/utf8.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/support/texlab/crates/bibutils_sys/src/utf8.h b/support/texlab/crates/bibutils_sys/src/utf8.h new file mode 100644 index 0000000000..2e3a1e63b7 --- /dev/null +++ b/support/texlab/crates/bibutils_sys/src/utf8.h @@ -0,0 +1,22 @@ +/* + * utf8.h + * + * Copyright (c) Chris Putnam 2004-2019 + * + * Source code released under the GPL version 2 + * + */ +#ifndef UTF8_H +#define UTF8_H + +#include <stdio.h> + +int utf8_encode( unsigned int value, unsigned char out[6] ); +void utf8_encode_str( unsigned int value, char outstr[7] ); +unsigned int utf8_decode( const char *s, unsigned int *pi ); +void utf8_writebom( FILE *outptr ); +int utf8_is_bom( const char *p ); +int utf8_is_emdash( const char *p ); +int utf8_is_endash( const char *p ); + +#endif |