diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-09-02 11:53:56 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-10-17 18:14:53 +0200 |
commit | e34071131ec31b53c9dc4491f9eb2aa546a23ac7 (patch) | |
tree | 5d67e684f5d419026eb2c9b9697c1a706f45f893 /doc/sr/weechat_plugin_api.sr.adoc | |
parent | 9bc9df47d72af83313483c7324d3dcae9157f939 (diff) | |
download | weechat-e34071131ec31b53c9dc4491f9eb2aa546a23ac7.zip |
api: add function string_concat (issue #2005)
Diffstat (limited to 'doc/sr/weechat_plugin_api.sr.adoc')
-rw-r--r-- | doc/sr/weechat_plugin_api.sr.adoc | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/doc/sr/weechat_plugin_api.sr.adoc b/doc/sr/weechat_plugin_api.sr.adoc index dc9e538b8..393ffe570 100644 --- a/doc/sr/weechat_plugin_api.sr.adoc +++ b/doc/sr/weechat_plugin_api.sr.adoc @@ -3357,6 +3357,51 @@ weechat_string_dyn_free (string, 1); [NOTE] Ова функција није доступна у API скриптовања. +==== string_concat + +_WeeChat ≥ 4.2.0._ + +// TRANSLATION MISSING +Concatenate multiple strings using a separator. + +Прототип: + +[source,c] +---- +const char *weechat_string_concat (const char *separator, ...); +---- + +Аргументи: + +// TRANSLATION MISSING +* _separator_: the separator string which is inserted between concatenated + strings (can be NULL or empty string) + +// TRANSLATION MISSING +[NOTE] +Last argument *MUST* always be NULL. + +A macro called `WEECHAT_STR_CONCAT` can be used, where the final NULL value is +not needed (usage of this macro is recommended). + +Повратна вредност: + +// TRANSLATION MISSING +* concatenated string + +C пример: + +// TRANSLATION MISSING +[source,c] +---- +const char *result = weechat_string_concat (" / ", "abc", "def", "ghi", NULL); /* result == "abc / def / ghi" */ + +/* with macro */ +const char *result = WEECHAT_STR_CONCAT(" / ", "abc", "def", "ghi"); /* result == "abc / def / ghi" */ +---- + +[NOTE] +Ова функција није доступна у API скриптовања. + [[utf-8]] === UTF-8 |