doc: update examples for functon string_eval_path_home() in plugin API reference

v2.8-utf8proc
Sébastien Helleu 2015-06-24 07:58:23 +02:00
parent 2bd2d74a07
commit 52437427af
4 changed files with 16 additions and 16 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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