Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-12-24 | api: return arithmetic difference between chars in string comparison functions | Sébastien Helleu | |
Return code is changed for the following functions: - string_strcasecmp - string_strcasecmp_range - string_strncasecmp - string_strncasecmp_range - string_strcmp_ignore_chars - utf8_charcmp - utf8_charcasecmp - utf8_charcasecmp_range | |||
2022-12-23 | api: fix function strcmp_ignore_chars with case sensitive comparison and ↵ | Sébastien Helleu | |
wide chars starting with the same byte | |||
2022-12-21 | core: improve case convert and insensitive char comparisons (closes #258) | Sébastien Helleu | |
All lowercase letters are now properly converted to uppercase letters (and vice versa), via functions `towupper` and `towlower`. Functions `string_tolower`, `string_toupper` and `utf8_charcasecmp` have been optimized to be faster when there are ASCII chars (< 128); functions are about 25-40% faster with mixed chars (both ASCII and multi-bytes). Function `utf8_wide_char` has been removed, `utf8_char_int` can be used instead. | |||
2022-12-18 | api: return newly allocated string in functions string_tolower and ↵ | Sébastien Helleu | |
string_toupper | |||
2022-12-18 | core: return number of bytes for UTF-8 char in function utf8_int_string | Sébastien Helleu | |
2022-12-18 | tests: add tests on function gui_input_delete_next_word | Sébastien Helleu | |
2022-12-18 | tests: add tests on function gui_input_delete_range | Sébastien Helleu | |
2022-12-18 | tests: add tests on gui delete previous/next char functions | Sébastien Helleu | |
2022-12-18 | tests: add extra tests on function gui_input_set_pos | Sébastien Helleu | |
2022-12-18 | tests: add tests on gui input completion functions | Sébastien Helleu | |
2022-12-18 | core: remove unused argument "pos" from function gui_input_insert_string, ↵ | Sébastien Helleu | |
add tests on function | |||
2022-12-10 | core: add whole string information in /debug unicode | Sébastien Helleu | |
2022-12-10 | core: add color attributes "blink" and "dim" (half bright) (closes #1855) | Sébastien Helleu | |
2022-12-10 | core: fix function string_cut when there are non printable chars in suffix | Sébastien Helleu | |
2022-12-10 | core: do not display non printable chars, fix function utf8_char_size_screen | Sébastien Helleu | |
Now the function utf8_char_size_screen can return -1 when the char is not printable. It has a specific behavior for some chars: - U+0009: value of option weechat.look.tab_width - U+0001 to U+001F (except U+0009): 1 - U+00AD (soft hyphen): -1 - U+200B (zero width space): -1 | |||
2022-12-10 | api: add function utf8_strncpy | Sébastien Helleu | |
2022-12-10 | core: optimize and fix function utf8_strlen_screen with non printable chars | Sébastien Helleu | |
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. | |||
2022-12-10 | core: add result of `utf8_char_size_screen` in /debug unicode | Sébastien Helleu | |
2022-12-03 | core: display hex codepoint before integer codepoint in /debug unicode | Sébastien Helleu | |
2022-11-27 | tests: define constants with UTF-8 strings, add tests on functions returning ↵ | Sébastien Helleu | |
size on screen | |||
2022-11-21 | core: add option `unicode` in command `/debug` | Sébastien Helleu | |
2022-11-11 | core: add identifier in buffer lines (closes #901) | Sébastien Helleu | |
For buffers with formatted content, the "id" starts to 0 on each buffer and is incremented on each new line displayed (it is reset to 0 if reaching INT_MAX). For buffers with free content, the "id" is set to the same value as "y" (ie the line number, starting to 0). | |||
2022-11-08 | core: add signals "buffer_user_{input|closing}_xxx" for buffers created with ↵ | Sébastien Helleu | |
`/buffer add` (closes #1848) | |||
2022-11-06 | trigger: add regex command "y" to translate chars, set default regex command ↵ | Sébastien Helleu | |
to "s" (regex replace) (closes #1510) | |||
2022-11-05 | tests: add another test on function string_translate_chars | Sébastien Helleu | |
2022-11-05 | core: add range of chars in evaluation of expressions with `chars:xxx` | Sébastien Helleu | |
2022-11-05 | api: add function string_translate_chars | Sébastien Helleu | |
2022-10-15 | python: remove support of Python 2.x | Sébastien Helleu | |
2022-10-15 | tests: ignore pylint error unnecessary-pass | Sébastien Helleu | |
2022-10-15 | api: do not expect any return value in callbacks change/delete of ↵ | Sébastien Helleu | |
config_new_option (scripting API) | |||
2022-10-15 | tests: add tests on config functions (scripting API) | Sébastien Helleu | |
2022-10-08 | tests: Use LONGS_EQUAL for version number tests | Trygve Aaberge | |
util_version_number returns an int, but BYTES_EQUAL only compares the last byte of the int, so it wouldn't test the rest of the int. I see other tests for functions returning an int use LONGS_EQUAL, so that seems correct to use. | |||
2022-09-27 | api: add function file_compress | Sébastien Helleu | |
2022-09-27 | api: restrict number to integer in function string_parse_size | Sébastien Helleu | |
2022-09-27 | api: add function string_parse_size | Sébastien Helleu | |
2022-09-18 | core: add key alt+backspace, change behavior of key ctrl+w (closes #559) | Sébastien Helleu | |
The key ctrl+w now deletes one word until whitespace. The new key alt+backspace deletes one word (same behavior as ctrl+w in previous releases). | |||
2022-09-17 | tests: add tests on filter functions | Sébastien Helleu | |
2022-09-15 | irc: add option irc.look.display_pv_nick_change | Sébastien Helleu | |
2022-09-05 | irc: fix display of message 350 (whois, gateway) (closes #1815) | Sébastien Helleu | |
2022-09-05 | tests: add missing include of string.h | Sébastien Helleu | |
2022-09-03 | xfer: fix DCC file receive on Termux (closes #1811) | Sébastien Helleu | |
This fixes such error displayed on Termux when receiving a DCC file: xfer: invalid address "96747949": error 8 hostname nor servname provided, or not known | |||
2022-08-29 | irc: fix target buffer of generic errors when they contain a target nick ↵ | Sébastien Helleu | |
(closes #1814) | |||
2022-08-16 | api: add function crypto_hash_file | Sébastien Helleu | |
2022-08-15 | irc: fix extract of isupport value when it is last in list and without value ↵ | Sébastien Helleu | |
(closes #1807) | |||
2022-08-13 | irc: display ACCOUNT command in private buffers | Sébastien Helleu | |
2022-08-13 | irc: add options and display SETNAME command in channels and private buffers ↵ | Sébastien Helleu | |
(closes #1805) New options: - irc.color.message_setname - irc.look.smart_filter_setname | |||
2022-08-13 | irc: display CHGHOST command in private buffers | Sébastien Helleu | |
2022-08-13 | tests: add tests on dynamic string functions with NULL string | Sébastien Helleu | |
2022-08-08 | tests: add tests on function xfer_file_search_crc32 | Sébastien Helleu | |
2022-08-07 | irc: fix parsing of messages with trailing spaces and no trailing parameter ↵ | Sébastien Helleu | |
(closes #1803) |