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 | |
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')
-rw-r--r-- | doc/en/weechat_plugin_api.en.asciidoc | 15 | ||||
-rw-r--r-- | doc/fr/weechat_plugin_api.fr.asciidoc | 15 | ||||
-rw-r--r-- | doc/it/weechat_plugin_api.it.asciidoc | 15 | ||||
-rw-r--r-- | doc/ja/weechat_plugin_api.ja.asciidoc | 15 |
4 files changed, 32 insertions, 28 deletions
diff --git a/doc/en/weechat_plugin_api.en.asciidoc b/doc/en/weechat_plugin_api.en.asciidoc index 4c70662a9..073066db3 100644 --- a/doc/en/weechat_plugin_api.en.asciidoc +++ b/doc/en/weechat_plugin_api.en.asciidoc @@ -2219,7 +2219,8 @@ Prototype: [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); ---- Arguments: @@ -2236,7 +2237,7 @@ C example: [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] @@ -2250,7 +2251,7 @@ Prototype: [source,C] ---- -char *weechat_utf8_next_char (const char *string); +const char *weechat_utf8_next_char (const char *string); ---- Arguments: @@ -2265,7 +2266,7 @@ C example: [source,C] ---- -char *next_char = weechat_utf8_next_char (string); +const char *next_char = weechat_utf8_next_char (string); ---- [NOTE] @@ -2522,7 +2523,7 @@ Prototype: [source,C] ---- -char *weechat_utf8_add_offset (const char *string, int offset); +const char *weechat_utf8_add_offset (const char *string, int offset); ---- Arguments: @@ -2538,8 +2539,8 @@ C example: [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] diff --git a/doc/fr/weechat_plugin_api.fr.asciidoc b/doc/fr/weechat_plugin_api.fr.asciidoc index 3b0aeb5ba..da9491f5f 100644 --- a/doc/fr/weechat_plugin_api.fr.asciidoc +++ b/doc/fr/weechat_plugin_api.fr.asciidoc @@ -2261,7 +2261,8 @@ Prototype : [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); ---- Paramètres : @@ -2279,7 +2280,7 @@ Exemple en 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] @@ -2293,7 +2294,7 @@ Prototype : [source,C] ---- -char *weechat_utf8_next_char (const char *string); +const char *weechat_utf8_next_char (const char *string); ---- Paramètres : @@ -2309,7 +2310,7 @@ Exemple en C : [source,C] ---- -char *next_char = weechat_utf8_next_char (string); +const char *next_char = weechat_utf8_next_char (string); ---- [NOTE] @@ -2569,7 +2570,7 @@ Prototype : [source,C] ---- -char *weechat_utf8_add_offset (const char *string, int offset); +const char *weechat_utf8_add_offset (const char *string, int offset); ---- Paramètres : @@ -2586,8 +2587,8 @@ Exemple en C : [source,C] ---- -char *str = "chêne"; -char *str2 = weechat_utf8_add_offset (str, 3); /* pointe vers "ne" */ +const char *str = "chêne"; +const char *str2 = weechat_utf8_add_offset (str, 3); /* pointe vers "ne" */ ---- [NOTE] 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] diff --git a/doc/ja/weechat_plugin_api.ja.asciidoc b/doc/ja/weechat_plugin_api.ja.asciidoc index cbd7e72fb..0031ea0f1 100644 --- a/doc/ja/weechat_plugin_api.ja.asciidoc +++ b/doc/ja/weechat_plugin_api.ja.asciidoc @@ -2226,7 +2226,8 @@ weechat_utf8_normalize (string, '?'); [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); ---- 引数: @@ -2243,7 +2244,7 @@ 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] @@ -2257,7 +2258,7 @@ char *prev_char = weechat_utf8_prev_char (string, ptr_in_string); [source,C] ---- -char *weechat_utf8_next_char (const char *string); +const char *weechat_utf8_next_char (const char *string); ---- 引数: @@ -2272,7 +2273,7 @@ C 言語での使用例: [source,C] ---- -char *next_char = weechat_utf8_next_char (string); +const char *next_char = weechat_utf8_next_char (string); ---- [NOTE] @@ -2529,7 +2530,7 @@ UTF-8 文字列で N 文字前に進む。 [source,C] ---- -char *weechat_utf8_add_offset (const char *string, int offset); +const char *weechat_utf8_add_offset (const char *string, int offset); ---- 引数: @@ -2545,8 +2546,8 @@ 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] |