message split implemented
This commit is contained in:
parent
bdbbf1178d
commit
b97c2c46c9
5 changed files with 96 additions and 17 deletions
|
@ -198,3 +198,12 @@ twc_hash_tox_id(const uint8_t *tox_id)
|
|||
|
||||
return hash;
|
||||
}
|
||||
|
||||
/**
|
||||
* Fit correct unicode string into max chars. Return number of bytes
|
||||
*/
|
||||
int
|
||||
twc_fit_utf8(const char *str, int max)
|
||||
{
|
||||
return weechat_utf8_real_pos(str, weechat_utf8_strnlen(str, max));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue