diff options
author | Valentin Batz <senneth@irssi.org> | 2006-01-29 22:37:24 +0000 |
---|---|---|
committer | vb <vb@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2006-01-29 22:37:24 +0000 |
commit | 0d10e2cc06d952472cc3ce1487180c41762479ca (patch) | |
tree | ec094c0c0db15d85ffac97094f91125ec2ca2a5a /src/fe-common/core/utf8.h | |
parent | a975788d15f34ad56c82bcc8c08bb4f9de8bbdd8 (diff) | |
download | irssi-0d10e2cc06d952472cc3ce1487180c41762479ca.zip |
Fixed a bug where tab-complete didn't worked with utf8/big5 multibyte characters properly
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4229 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/core/utf8.h')
-rw-r--r-- | src/fe-common/core/utf8.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fe-common/core/utf8.h b/src/fe-common/core/utf8.h index 996f51f3..f9e3e59e 100644 --- a/src/fe-common/core/utf8.h +++ b/src/fe-common/core/utf8.h @@ -18,6 +18,10 @@ int utf16_char_to_utf8(unichar c, char *outbuf); Make sure out is at least 6 x length of str. */ void utf16_to_utf8(const unichar *str, char *out); +/* unichar -> UTF-8 string with position transformed. The NUL is copied as well. + Make sure out is at least 6 x length of str. */ +void utf16_to_utf8_with_pos(const unichar *str, int spos, char *out, int *opos); + /* 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 */ |