summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2014-01-15 16:45:17 +0100
committerSebastien Helleu <flashcode@flashtux.org>2014-01-15 16:45:17 +0100
commit22cb023254090df94e4f6aa30388d49a438c6d40 (patch)
tree0f7fea12ce05913ad1e79cf544222a475034f83d
parent4b7e90c679428a418ea8c0656b0fef59e3c2e3a7 (diff)
downloadweechat-22cb023254090df94e4f6aa30388d49a438c6d40.zip
doc: fix errors in prototype and example of functions tolower/toupper (plugin API reference)
-rw-r--r--doc/en/weechat_plugin_api.en.txt8
-rw-r--r--doc/fr/weechat_plugin_api.fr.txt8
-rw-r--r--doc/it/weechat_plugin_api.it.txt8
-rw-r--r--doc/ja/weechat_plugin_api.ja.txt8
4 files changed, 16 insertions, 16 deletions
diff --git a/doc/en/weechat_plugin_api.en.txt b/doc/en/weechat_plugin_api.en.txt
index 523d68cf3..16bc7355f 100644
--- a/doc/en/weechat_plugin_api.en.txt
+++ b/doc/en/weechat_plugin_api.en.txt
@@ -496,7 +496,7 @@ Prototype:
[source,C]
----
-void weechat_string_tolower (const char *string);
+void weechat_string_tolower (char *string);
----
Arguments:
@@ -507,7 +507,7 @@ C example:
[source,C]
----
-char *str = "AbCdé";
+char str[] = "AbCdé";
weechat_string_tolower (str); /* str is now: "abcdé" */
----
@@ -522,7 +522,7 @@ Prototype:
[source,C]
----
-void weechat_string_toupper (const char *string);
+void weechat_string_toupper (char *string);
----
Arguments:
@@ -533,7 +533,7 @@ C example:
[source,C]
----
-char *str = "AbCdé";
+char str[] = "AbCdé";
weechat_string_toupper (str); /* str is now: "ABCDé" */
----
diff --git a/doc/fr/weechat_plugin_api.fr.txt b/doc/fr/weechat_plugin_api.fr.txt
index cbed6a89e..8f747e87b 100644
--- a/doc/fr/weechat_plugin_api.fr.txt
+++ b/doc/fr/weechat_plugin_api.fr.txt
@@ -503,7 +503,7 @@ Prototype :
[source,C]
----
-void weechat_string_tolower (const char *string);
+void weechat_string_tolower (char *string);
----
Paramètres :
@@ -514,7 +514,7 @@ Exemple en C :
[source,C]
----
-char *str = "AbCdé";
+char str[] = "AbCdé";
weechat_string_tolower (str); /* str vaut maintenant : "abcdé" */
----
@@ -529,7 +529,7 @@ Prototype :
[source,C]
----
-void weechat_string_toupper (const char *string);
+void weechat_string_toupper (char *string);
----
Paramètres :
@@ -540,7 +540,7 @@ Exemple en C :
[source,C]
----
-char *str = "AbCdé";
+char str[] = "AbCdé";
weechat_string_toupper (str); /* str vaut maintenant : "ABCDé" */
----
diff --git a/doc/it/weechat_plugin_api.it.txt b/doc/it/weechat_plugin_api.it.txt
index 347e3b8f0..a525319ef 100644
--- a/doc/it/weechat_plugin_api.it.txt
+++ b/doc/it/weechat_plugin_api.it.txt
@@ -512,7 +512,7 @@ Prototipo:
[source,C]
----
-void weechat_string_tolower (const char *string);
+void weechat_string_tolower (char *string);
----
Argomenti:
@@ -523,7 +523,7 @@ Esempio in C:
[source,C]
----
-char *str = "AbCdé";
+char str[] = "AbCdé";
weechat_string_tolower (str); /* str ora è: "abcdé" */
----
@@ -538,7 +538,7 @@ Prototipo:
[source,C]
----
-void weechat_string_toupper (const char *string);
+void weechat_string_toupper (char *string);
----
Argomenti:
@@ -549,7 +549,7 @@ Esempio in C:
[source,C]
----
-char *str = "AbCdé";
+char str[] = "AbCdé";
weechat_string_toupper (str); /* str ora è: "ABCDé" */
----
diff --git a/doc/ja/weechat_plugin_api.ja.txt b/doc/ja/weechat_plugin_api.ja.txt
index d2d0fa627..3b79da8a3 100644
--- a/doc/ja/weechat_plugin_api.ja.txt
+++ b/doc/ja/weechat_plugin_api.ja.txt
@@ -496,7 +496,7 @@ UTF-8 文字列を小文字に変換。
[source,C]
----
-void weechat_string_tolower (const char *string);
+void weechat_string_tolower (char *string);
----
引数:
@@ -507,7 +507,7 @@ C 言語での使用例:
[source,C]
----
-char *str = "AbCdé";
+char str[] = "AbCdé";
weechat_string_tolower (str); /* str is now: "abcdé" */
----
@@ -522,7 +522,7 @@ UTF-8 文字列を大文字に変換。
[source,C]
----
-void weechat_string_toupper (const char *string);
+void weechat_string_toupper (char *string);
----
引数:
@@ -533,7 +533,7 @@ C 言語での使用例:
[source,C]
----
-char *str = "AbCdé";
+char str[] = "AbCdé";
weechat_string_toupper (str); /* str is now: "ABCDé" */
----