summaryrefslogtreecommitdiff
path: root/src/gui/gui-completion.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2022-12-24 17:33:22 +0100
committerSébastien Helleu <flashcode@flashtux.org>2022-12-24 17:33:22 +0100
commita67556907d739bbe6db5110e46d581165fd41c64 (patch)
tree2f90c27b4685f25235560f6e1c66543a63075bb0 /src/gui/gui-completion.c
parent083032972dc75ffde841ac77dce4d49093c9ead7 (diff)
downloadweechat-a67556907d739bbe6db5110e46d581165fd41c64.zip
api: rename char comparison functions "utf8_char*" to "string_char*"
Diffstat (limited to 'src/gui/gui-completion.c')
-rw-r--r--src/gui/gui-completion.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/gui-completion.c b/src/gui/gui-completion.c
index 5e07861f1..2348fdbee 100644
--- a/src/gui/gui-completion.c
+++ b/src/gui/gui-completion.c
@@ -1034,11 +1034,11 @@ gui_completion_common_prefix_size (struct t_arraylist *list,
ptr_completion_word =
(struct t_gui_completion_word *)(list->data[i]);
if (!utf_char
- || (utf8_charcasecmp (utf_char,
- ptr_completion_word->word) == 0))
+ || (string_charcasecmp (utf_char,
+ ptr_completion_word->word) == 0))
{
if ((ptr_completion_word->word[ptr_char - ptr_first_item] == '\0')
- || (utf8_charcasecmp (
+ || (string_charcasecmp (
ptr_char,
ptr_completion_word->word + (ptr_char - ptr_first_item)) != 0))
{
@@ -1112,7 +1112,7 @@ gui_completion_partial_build_list (struct t_gui_completion *completion,
{
ptr_completion_word =
(struct t_gui_completion_word *)list_temp->data[index];
- if (utf8_charcasecmp (utf_char, ptr_completion_word->word) == 0)
+ if (string_charcasecmp (utf_char, ptr_completion_word->word) == 0)
{
arraylist_remove (list_temp, index);
items_count++;