summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2015-06-24 07:58:23 +0200
committerSébastien Helleu <flashcode@flashtux.org>2015-06-24 07:58:23 +0200
commit52437427af75dcf002631b16f7884d5f49a15b43 (patch)
treead12dc1c94b747a73c3088b9325febf7d0d85c63
parent2bd2d74a0720f02d9e5587331659c4d1bbd4e97f (diff)
downloadweechat-52437427af75dcf002631b16f7884d5f49a15b43.zip
doc: update examples for functon string_eval_path_home() in plugin API reference
-rw-r--r--doc/en/weechat_plugin_api.en.asciidoc8
-rw-r--r--doc/fr/weechat_plugin_api.fr.asciidoc8
-rw-r--r--doc/it/weechat_plugin_api.it.asciidoc8
-rw-r--r--doc/ja/weechat_plugin_api.ja.asciidoc8
4 files changed, 16 insertions, 16 deletions
diff --git a/doc/en/weechat_plugin_api.en.asciidoc b/doc/en/weechat_plugin_api.en.asciidoc
index d9bfa0ecb..ae81a8f3b 100644
--- a/doc/en/weechat_plugin_api.en.asciidoc
+++ b/doc/en/weechat_plugin_api.en.asciidoc
@@ -957,8 +957,8 @@ C example:
[source,C]
----
-char *str = weechat_string_expand_home ("%h/test/file.txt");
-/* result: "/home/xxx/.weechat/test/file.txt" */
+char *str = weechat_string_expand_home ("%h/test");
+/* result: "/home/xxx/.weechat/test" */
/* ... */
free (str);
----
@@ -971,8 +971,8 @@ Script (Python):
path = weechat.string_eval_path_home(path, pointers, extra_vars, options)
# example
-path = weechat.string_eval_path_home("%h/test/file.txt", "", "", "")
-# path == "/home/xxx/.weechat/test/file.txt"
+path = weechat.string_eval_path_home("%h/test", "", "", "")
+# path == "/home/xxx/.weechat/test"
----
==== string_remove_quotes
diff --git a/doc/fr/weechat_plugin_api.fr.asciidoc b/doc/fr/weechat_plugin_api.fr.asciidoc
index 041a7d2f4..4a3a1070a 100644
--- a/doc/fr/weechat_plugin_api.fr.asciidoc
+++ b/doc/fr/weechat_plugin_api.fr.asciidoc
@@ -967,8 +967,8 @@ Exemple en C :
[source,C]
----
-char *str = weechat_string_expand_home ("%h/test/file.txt");
-/* result: "/home/xxx/.weechat/test/file.txt" */
+char *str = weechat_string_expand_home ("%h/test");
+/* result: "/home/xxx/.weechat/test" */
/* ... */
free (str);
----
@@ -981,8 +981,8 @@ Script (Python):
path = weechat.string_eval_path_home(path, pointers, extra_vars, options)
# exemple
-path = weechat.string_eval_path_home("%h/test/file.txt", "", "", "")
-# path == "/home/xxx/.weechat/test/file.txt"
+path = weechat.string_eval_path_home("%h/test", "", "", "")
+# path == "/home/xxx/.weechat/test"
----
==== string_remove_quotes
diff --git a/doc/it/weechat_plugin_api.it.asciidoc b/doc/it/weechat_plugin_api.it.asciidoc
index 0acfa2424..25b34f5f7 100644
--- a/doc/it/weechat_plugin_api.it.asciidoc
+++ b/doc/it/weechat_plugin_api.it.asciidoc
@@ -998,8 +998,8 @@ Esempio in C:
[source,C]
----
-char *str = weechat_string_expand_home ("%h/test/file.txt");
-/* result: "/home/xxx/.weechat/test/file.txt" */
+char *str = weechat_string_expand_home ("%h/test");
+/* result: "/home/xxx/.weechat/test" */
/* ... */
free (str);
----
@@ -1012,8 +1012,8 @@ Script (Python):
path = weechat.string_eval_path_home(path, pointers, extra_vars, options)
# esempio
-path = weechat.string_eval_path_home("%h/test/file.txt", "", "", "")
-# path == "/home/xxx/.weechat/test/file.txt"
+path = weechat.string_eval_path_home("%h/test", "", "", "")
+# path == "/home/xxx/.weechat/test"
----
==== string_remove_quotes
diff --git a/doc/ja/weechat_plugin_api.ja.asciidoc b/doc/ja/weechat_plugin_api.ja.asciidoc
index 0cbb3c139..4a943113d 100644
--- a/doc/ja/weechat_plugin_api.ja.asciidoc
+++ b/doc/ja/weechat_plugin_api.ja.asciidoc
@@ -964,8 +964,8 @@ C 言語での使用例:
[source,C]
----
-char *str = weechat_string_expand_home ("%h/test/file.txt");
-/* result: "/home/xxx/.weechat/test/file.txt" */
+char *str = weechat_string_expand_home ("%h/test");
+/* result: "/home/xxx/.weechat/test" */
/* ... */
free (str);
----
@@ -978,8 +978,8 @@ free (str);
path = weechat.string_eval_path_home(path, pointers, extra_vars, options)
# 例
-path = weechat.string_eval_path_home("%h/test/file.txt", "", "", "")
-# path == "/home/xxx/.weechat/test/file.txt"
+path = weechat.string_eval_path_home("%h/test", "", "", "")
+# path == "/home/xxx/.weechat/test"
----
==== string_remove_quotes