1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-09 03:03:12 +02:00

api: add arguments "index_start" and "index_end" in function string_rebuild_split_string

This commit is contained in:
Sébastien Helleu
2022-07-20 13:16:35 +02:00
parent 62e68f965f
commit b7441bd7a3
31 changed files with 241 additions and 64 deletions
+4 -2
View File
@@ -4703,7 +4703,8 @@ gui_buffer_dump_hexa (struct t_gui_buffer *buffer)
if (message_without_colors)
free (message_without_colors);
tags = string_rebuild_split_string ((const char **)ptr_line->data->tags_array,
",");
",",
0, -1);
log_printf (" tags: '%s', displayed: %d, highlight: %d",
(tags) ? tags : "(none)",
ptr_line->data->displayed,
@@ -4921,7 +4922,8 @@ gui_buffer_print_log ()
{
num--;
tags = string_rebuild_split_string ((const char **)ptr_line->data->tags_array,
",");
",",
0, -1);
log_printf (" line N-%05d: y:%d, str_time:'%s', tags:'%s', "
"displayed:%d, highlight:%d, refresh_needed:%d, "
"prefix:'%s'",
+2 -1
View File
@@ -593,7 +593,8 @@ gui_filter_add_to_infolist (struct t_infolist *infolist,
{
snprintf (option_name, sizeof (option_name), "tag_%05d", i + 1);
tags = string_rebuild_split_string ((const char **)filter->tags_array[i],
"+");
"+",
0, -1);
if (tags)
{
if (!infolist_new_var_string (ptr_item, option_name, tags))
+2 -1
View File
@@ -201,7 +201,8 @@ gui_focus_to_hashtable (struct t_gui_focus_info *focus_info, const char *key)
{
str_time = gui_color_decode (((focus_info->chat_line)->data)->str_time, NULL);
str_prefix = gui_color_decode (((focus_info->chat_line)->data)->prefix, NULL);
str_tags = string_rebuild_split_string ((const char **)((focus_info->chat_line)->data)->tags_array, ",");
str_tags = string_rebuild_split_string (
(const char **)((focus_info->chat_line)->data)->tags_array, ",", 0, -1);
str_message = gui_color_decode (((focus_info->chat_line)->data)->message, NULL);
nick = gui_line_get_nick_tag (focus_info->chat_line);
HASHTABLE_SET_POINTER("_chat_line", focus_info->chat_line);