diff options
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.75.0/src/unicode.h')
-rw-r--r-- | debian/uncrustify-trinity/uncrustify-trinity-0.75.0/src/unicode.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/src/unicode.h b/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/src/unicode.h new file mode 100644 index 00000000..e9cbd97c --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/src/unicode.h @@ -0,0 +1,34 @@ +/** + * @file unicode.h + * prototypes for unicode.c + * + * @author Ben Gardner + * @license GPL v2+ + */ + +#ifndef UNICODE_H_INCLUDED +#define UNICODE_H_INCLUDED + +#include "uncrustify_types.h" + + +void write_bom(void); + + +/** + * @param ch the 31-bit char value + */ +void write_char(int ch); + + +void write_string(const unc_text &text); + + +//! Figure out the encoding and convert to an int sequence +bool decode_unicode(const std::vector<UINT8> &in_data, std::deque<int> &out_data, char_encoding_e &enc, bool &has_bom); + + +void encode_utf8(int ch, std::vector<UINT8> &res); + + +#endif /* UNICODE_H_INCLUDED */ |