diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2022-12-03 11:40:30 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2022-12-10 16:05:14 +0100 |
commit | e5cbbd781d814e321845598775f594f0f808e18e (patch) | |
tree | 32dde8ec949ddaa0c9d239338e0a0b729d73c7d6 /doc/sr/weechat_plugin_api.sr.adoc | |
parent | 0e6677fbcbb81e972e5f210e5dd7a2186fb7ba66 (diff) | |
download | weechat-e5cbbd781d814e321845598775f594f0f808e18e.zip |
core: optimize and fix function utf8_strlen_screen with non printable chars
When there non printable chars, the return of the function was 1.
For example utf8_strlen_screen("abc\x01") now returns 4 instead of 1.
In addition the function has been optimized to not use the `mbstowcs` function
which is slow; result is up to 15% faster.
Diffstat (limited to 'doc/sr/weechat_plugin_api.sr.adoc')
0 files changed, 0 insertions, 0 deletions