summaryrefslogtreecommitdiff
path: root/src/core/wee-utf8.h
AgeCommit message (Collapse)Author
2023-03-26core: Implement commands for operating on a single input lineTrygve Aaberge
This changes the commands delete_beginning_of_line, delete_end_of_line, delete_line, move_beginning_of_line and move_end_of_line to operate on the current line instead of the whole input. The commands delete_beginning_of_input, delete_end_of_input, delete_input, move_beginning_of_input and move_end_of_input are added with the previous implementations that the line commands had. Additionally, the commands move_previous_line and move_next_line are added which moves the cursor to the previous/next line and keeps the horizontal position in the line. The meta-r key is changed from delete_line to delete_input to keep the behavior, and because you probably want to delete the whole input more often than the line. The meta-R key is added for delete_line. The home, end, ctrl-u and ctrl-k keys are kept to the same commands, which means that they change behaviour. This is because having them operate on the line is consistent with other applications (vim, zsh), and I also think it's more practical. These new bindings are added: shift-home: /input move_beginning_of_input shift-end: /input move_end_of_input shift-up: /input move_previous_line shift-down: /input move_next_line meta-R: /input delete_line meta-ctrl-u: /input delete_beginning_of_input meta-ctrl-k: /input delete_end_of_input Relates to #1498
2023-01-01core: update copyright datesSébastien Helleu
2022-12-24api: rename char comparison functions "utf8_char*" to "string_char*"Sébastien Helleu
2022-12-21core: 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-18core: return number of bytes for UTF-8 char in function utf8_int_stringSébastien Helleu
2022-12-10api: add function utf8_strncpySébastien Helleu
2022-01-17core: update copyright datesSébastien Helleu
2021-01-02core: update copyright datesSébastien Helleu
2020-01-04core: update copyright datesSébastien Helleu
2019-01-01core: update copyright datesSébastien Helleu
2018-11-29core: use https for links to GNU GPL licenseSébastien Helleu
2018-01-05core: update copyright datesSébastien Helleu
2017-08-10core: remove value for first #define in headers, add "PLUGIN" in plugin headersSébastien Helleu
2017-01-01core: update copyright datesSébastien Helleu
2016-01-01core: update copyright datesSébastien Helleu
2015-08-18api: add argument "length" in function utf8_is_valid()Sébastien Helleu
2015-07-04api: fix type of value returned by functions utf8_prev_char, utf8_next_char ↵Sébastien Helleu
and utf8_add_offset
2015-01-01core: update copyright datesSébastien Helleu
2014-03-19core: fix use of reserved C identifiers in headers (closes #31)Sebastien Helleu
2014-01-24core: add support of escaped unicode chars in commands /print and "/input ↵Sebastien Helleu
insert"
2014-01-01core: update copyright datesSebastien Helleu
2013-01-01core: update copyright datesSebastien Helleu
2012-01-08core: update copyright datesSebastien Helleu
2011-11-12core: fix compilation under OpenBSD 5.0 (lib utf8 not needed any more) (bug ↵Simon Kuhnle
#34727)
2011-11-12api: add new functions strcasecmp_range and strncasecmp_rangeSebastien Helleu
2011-08-02core: remove "const" for first argument of function utf8_normalizeSebastien Helleu
2011-01-01Update copyright datesSebastien Helleu
2010-06-25Update comments after #endif in C headersSebastien Helleu
2010-06-22Update licenses and copyrights, add missing author names in sourcesSebastien Helleu
2010-01-03Update copyright datesSebastien Helleu
2009-06-28Add french translation of Plugin API ReferenceSebastien Helleu
2009-04-15Fix compilation problem on FreeBSD: replace call to wcscasecmp() by towlower()Sebastien Helleu
2009-04-11Add utf8_charcmp in plugin API, fix bug with utf8_charcasecmpSebastien Helleu
2009-03-22Add option aspell.check.real_time (off by default), fix bugs with aspell and ↵Sebastien Helleu
utf-8 chars, add function utf8_char_int to API
2009-01-03Update copyright datesSebastien Helleu
2008-11-15Add function utf8_strndup to C plugin APISebastien Helleu
2008-06-03Add "const" keyword for some "char *" function arguments (core and plugins API)Sebastien Helleu
2008-01-02Update of year in some copyrightsSebastien Helleu
2007-12-17New backlog option in logger plugin, added variable names in .h files, ↵Sebastien Helleu
replaced "void *" pointers by structures
2007-12-10Added UTF-8 functions to plugins APISebastien Helleu
2007-11-11Fixed some string functions to make them compatible with UTF-8 charsetSebastien Helleu
2007-10-31Renamed many functions, removed all IRC specific stuffSebastien Helleu
2007-10-31Moved files from src/common to core, gui and plugins directoriesSebastien Helleu