diff options
author | Valentin Batz <senneth@irssi.org> | 2005-11-23 18:17:11 +0000 |
---|---|---|
committer | vb <vb@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2005-11-23 18:17:11 +0000 |
commit | 870253e12c684e1998a330692665b7f9e747cc45 (patch) | |
tree | 14f176a0c4669f41534233407cec94c1003f761e /src/fe-common/core/utf8.h | |
parent | c9e1246200f328a6c43b45c27206ddc217912613 (diff) | |
download | irssi-870253e12c684e1998a330692665b7f9e747cc45.zip |
removed utf8.c utf8.h, going to move them from src/fe-text to here
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4090 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/core/utf8.h')
-rw-r--r-- | src/fe-common/core/utf8.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/fe-common/core/utf8.h b/src/fe-common/core/utf8.h deleted file mode 100644 index 456c6bf8..00000000 --- a/src/fe-common/core/utf8.h +++ /dev/null @@ -1,31 +0,0 @@ -#ifndef __UTF8_H -#define __UTF8_H - -/* Returns -2 = invalid, -1 = need more data, otherwise unichar. */ -unichar get_utf8_char(const unsigned char **ptr, int len); - -/* Returns length of UTF8 string */ -int strlen_utf8(const char *str); - -/* UTF-8 -> unichar string. The NUL is copied as well. */ -void utf8_to_utf16(const char *str, unichar *out); - -/* unichar -> UTF-8 string. outbuf must be at least 6 chars long. - Returns outbuf string length. */ -int utf16_char_to_utf8(unichar c, char *outbuf); - -/* unichar -> UTF-8 string. The NUL is copied as well. - Make sure out is at least 6 x length of str. */ -void utf16_to_utf8(const unichar *str, char *out); - -/* XXX I didn't check the encoding range of big5+. This is standard big5. */ -#define is_big5_los(lo) (0x40 <= (lo) && (lo) <= 0x7E) /* standard */ -#define is_big5_lox(lo) (0x80 <= (lo) && (lo) <= 0xFE) /* extended */ -#define is_big5_lo(lo) ((is_big5_los(lo) || is_big5_lox(lo))) -#define is_big5_hi(hi) (0x81 <= (hi) && (hi) <= 0xFE) -#define is_big5(hi,lo) (is_big5_hi(hi) && is_big5_lo(lo)) - -/* Returns width for character (0-2). */ -int utf8_width(unichar c); - -#endif |