mirror of
https://github.com/irssi/irssi.git
synced 2026-08-15 22:52:15 +02:00
/SET term_type 8bit|utf8|big5 - Removed --with-big5 configure option, it's
now included the same way as utf8, though i'm not sure if it really works but at least it should partially :) Input line is now internally using 32bit chars but it's converted to 8bit chars for external use. Text buffer supports only 8bit + utf8 for now. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2448 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
612c061605
commit
afeb6fcb7d
14 changed files with 502 additions and 168 deletions
|
|
@ -1,6 +1,21 @@
|
|||
#ifndef __UTF8_H
|
||||
#define __UTF8_H
|
||||
|
||||
void get_utf8_char(const unsigned char **ptr);
|
||||
/* 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, unsigned 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);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue