diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2020-05-21 09:36:35 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2020-05-21 09:36:35 +0200 |
commit | 66d4590dabb51977df6a460d71dc80c740870b6c (patch) | |
tree | c49243b3fb8e5ac450efcea2e185202b50bebdd9 /doc/ja | |
parent | 1994d5641dda09d3825b4cc6baf3b57a20b2ffc2 (diff) | |
download | weechat-66d4590dabb51977df6a460d71dc80c740870b6c.zip |
core: add base 16/32/64 encoding/decoding in evaluation of expressions
Diffstat (limited to 'doc/ja')
-rw-r--r-- | doc/ja/includes/autogen_user_commands.ja.adoc | 17 | ||||
-rw-r--r-- | doc/ja/weechat_plugin_api.ja.adoc | 22 |
2 files changed, 32 insertions, 7 deletions
diff --git a/doc/ja/includes/autogen_user_commands.ja.adoc b/doc/ja/includes/autogen_user_commands.ja.adoc index 4cccd9cf1..90e0d0fdc 100644 --- a/doc/ja/includes/autogen_user_commands.ja.adoc +++ b/doc/ja/includes/autogen_user_commands.ja.adoc @@ -1330,13 +1330,14 @@ Some variables are replaced in expression, using the format ${variable}, variabl 8. a color (format: "color:xxx", see "Plugin API reference", function "color") 9. a modifier (format: "modifier:name,data,string") 10. an info (format: "info:name,arguments", arguments are optional) - 11. current date/time (format: "date" or "date:format") - 12. an environment variable (format: "env:XXX") - 13. a ternary operator (format: "if:condition?value_if_true:value_if_false") - 14. result of an expression with parentheses and operators + - * / // % ** (format: "calc:xxx") - 15. an option (format: "file.section.option") - 16. a local variable in buffer - 17. a hdata name/variable (the value is automatically converted to string), by default "window" and "buffer" point to current window/buffer. + 11. a base 16/32/64 encoded/decoded string (format: "base_encode:base,xxx" or "base_decode:base,xxx") + 12. current date/time (format: "date" or "date:format") + 13. an environment variable (format: "env:XXX") + 14. a ternary operator (format: "if:condition?value_if_true:value_if_false") + 15. result of an expression with parentheses and operators + - * / // % ** (format: "calc:xxx") + 16. an option (format: "file.section.option") + 17. a local variable in buffer + 18. a hdata name/variable (the value is automatically converted to string), by default "window" and "buffer" point to current window/buffer. Format for hdata can be one of following: hdata.var1.var2...: start with a hdata (pointer must be known), and ask variables one after one (other hdata can be followed) hdata[list].var1.var2...: start with a hdata using a list, for example: @@ -1365,6 +1366,8 @@ Examples (simple strings): /eval -n ${repeat:5,-} ==> ----- /eval -n ${length:test} ==> 4 /eval -n ${calc:(5+2)*3} ==> 21 + /eval -n ${base_encode:64,test} ==> dGVzdA== + /eval -n ${base_decode:64,dGVzdA==} ==> test Examples (conditions): /eval -n -c ${window.buffer.number} > 2 ==> 0 diff --git a/doc/ja/weechat_plugin_api.ja.adoc b/doc/ja/weechat_plugin_api.ja.adoc index 17279d34d..cba0bc1cc 100644 --- a/doc/ja/weechat_plugin_api.ja.adoc +++ b/doc/ja/weechat_plugin_api.ja.adoc @@ -2619,6 +2619,28 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio `+1.0+` + `+lightblue+` +// TRANSLATION MISSING +| `+${base_encode:base,xxx}+` + + _(WeeChat バージョン 2.9 以上で利用可)_ | + String encoded in base 16, 32 or 64. | + `+${base_encode:16,test string}+` + + `+${base_encode:32,test string}+` + + `+${base_encode:64,test string}+` | + `+7465737420737472696E67+` + + `+ORSXG5BAON2HE2LOM4======+` + + `+dGVzdCBzdHJpbmc=+` + +// TRANSLATION MISSING +| `+${base_decode:base,xxx}+` + + _(WeeChat バージョン 2.9 以上で利用可)_ | + String decoded from base 16, 32 or 64. | + `+${base_decode:16,7465737420737472696E67}+` + + `+${base_decode:32,ORSXG5BAON2HE2LOM4======}+` + + `+${base_decode:64,dGVzdCBzdHJpbmc=}+` | + `+test string+` + + `+test string+` + + `+test string+` + | `+${date}+` + `+${date:xxx}+` + _(WeeChat バージョン 1.3 以上で利用可)_ | |