doc: fix examples for function string_eval_path_home (plugin API reference)

v2.8-utf8proc
Sébastien Helleu 2016-09-27 07:31:13 +02:00
parent f2b74fabc2
commit 47019c3d15
4 changed files with 8 additions and 8 deletions

View File

@ -962,7 +962,7 @@ C example:
[source,C]
----
char *str = weechat_string_expand_home ("%h/test");
char *str = weechat_string_eval_path_home ("%h/test", NULL, NULL, NULL);
/* result: "/home/xxx/.weechat/test" */
/* ... */
free (str);
@ -976,7 +976,7 @@ Script (Python):
path = weechat.string_eval_path_home(path, pointers, extra_vars, options)
# example
path = weechat.string_eval_path_home("%h/test", "", "", "")
path = weechat.string_eval_path_home("%h/test", {}, {}, {})
# path == "/home/xxx/.weechat/test"
----

View File

@ -974,7 +974,7 @@ Exemple en C :
[source,C]
----
char *str = weechat_string_expand_home ("%h/test");
char *str = weechat_string_eval_path_home ("%h/test", NULL, NULL, NULL);
/* résultat : "/home/xxx/.weechat/test" */
/* ... */
free (str);
@ -988,7 +988,7 @@ Script (Python) :
path = weechat.string_eval_path_home(path, pointers, extra_vars, options)
# exemple
path = weechat.string_eval_path_home("%h/test", "", "", "")
path = weechat.string_eval_path_home("%h/test", {}, {}, {})
# path == "/home/xxx/.weechat/test"
----

View File

@ -1006,7 +1006,7 @@ Esempio in C:
[source,C]
----
char *str = weechat_string_expand_home ("%h/test");
char *str = weechat_string_eval_path_home ("%h/test", NULL, NULL, NULL);
/* result: "/home/xxx/.weechat/test" */
/* ... */
free (str);
@ -1020,7 +1020,7 @@ Script (Python):
path = weechat.string_eval_path_home(path, pointers, extra_vars, options)
# esempio
path = weechat.string_eval_path_home("%h/test", "", "", "")
path = weechat.string_eval_path_home("%h/test", {}, {}, {})
# path == "/home/xxx/.weechat/test"
----

View File

@ -968,7 +968,7 @@ C 言語での使用例:
[source,C]
----
char *str = weechat_string_expand_home ("%h/test");
char *str = weechat_string_eval_path_home ("%h/test", NULL, NULL, NULL);
/* result: "/home/xxx/.weechat/test" */
/* ... */
free (str);
@ -982,7 +982,7 @@ free (str);
path = weechat.string_eval_path_home(path, pointers, extra_vars, options)
# 例
path = weechat.string_eval_path_home("%h/test", "", "", "")
path = weechat.string_eval_path_home("%h/test", {}, {}, {})
# path == "/home/xxx/.weechat/test"
----