diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2015-07-04 08:39:55 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2015-07-04 08:39:55 +0200 |
commit | 4ecd8a505f6f47df5c87b673b87eceb1e58c67a7 (patch) | |
tree | f2cbfd34a348a6d7af42a6c83a1dc5054197176a /doc/it | |
parent | bd850398e87d1208921217d0831014994d25d643 (diff) | |
download | weechat-4ecd8a505f6f47df5c87b673b87eceb1e58c67a7.zip |
api: fix type of value returned by functions utf8_prev_char, utf8_next_char and utf8_add_offset
Diffstat (limited to 'doc/it')
-rw-r--r-- | doc/it/weechat_plugin_api.it.asciidoc | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/doc/it/weechat_plugin_api.it.asciidoc b/doc/it/weechat_plugin_api.it.asciidoc index a12515ec0..f530a0350 100644 --- a/doc/it/weechat_plugin_api.it.asciidoc +++ b/doc/it/weechat_plugin_api.it.asciidoc @@ -2293,7 +2293,8 @@ Prototipo: [source,C] ---- -char *weechat_utf8_prev_char (const char *string_start, const char *string); +const char *weechat_utf8_prev_char (const char *string_start, + const char *string); ---- Argomenti: @@ -2311,7 +2312,7 @@ Esempio in C: [source,C] ---- -char *prev_char = weechat_utf8_prev_char (string, ptr_in_string); +const char *prev_char = weechat_utf8_prev_char (string, ptr_in_string); ---- [NOTE] @@ -2325,7 +2326,7 @@ Prototipo: [source,C] ---- -char *weechat_utf8_next_char (const char *string); +const char *weechat_utf8_next_char (const char *string); ---- Argomenti: @@ -2341,7 +2342,7 @@ Esempio in C: [source,C] ---- -char *next_char = weechat_utf8_next_char (string); +const char *next_char = weechat_utf8_next_char (string); ---- [NOTE] @@ -2605,7 +2606,7 @@ Prototipo: [source,C] ---- -char *weechat_utf8_add_offset (const char *string, int offset); +const char *weechat_utf8_add_offset (const char *string, int offset); ---- Argomenti: @@ -2621,8 +2622,8 @@ Esempio in C: [source,C] ---- -char *str = "chêne"; -char *str2 = weechat_utf8_add_offset (str, 3); /* points to "ne" */ +const char *str = "chêne"; +const char *str2 = weechat_utf8_add_offset (str, 3); /* points to "ne" */ ---- [NOTE] |