summaryrefslogtreecommitdiff
path: root/doc/ja
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2019-09-24 21:03:56 +0200
committerSébastien Helleu <flashcode@flashtux.org>2019-09-24 21:03:56 +0200
commit3a356f109f0804a0731da3546edaf20cca86e694 (patch)
tree86463259aece006680f0a68e47330dee995da79e /doc/ja
parent7d795c4d5301f265c077cad02f6803212a3db81b (diff)
downloadweechat-3a356f109f0804a0731da3546edaf20cca86e694.zip
core: add power operator "**" in calc expressions (issue #997)
Diffstat (limited to 'doc/ja')
-rw-r--r--doc/ja/autogen/user/weechat_commands.adoc2
-rw-r--r--doc/ja/weechat_plugin_api.ja.adoc19
2 files changed, 12 insertions, 9 deletions
diff --git a/doc/ja/autogen/user/weechat_commands.adoc b/doc/ja/autogen/user/weechat_commands.adoc
index 4ff1a42b4..fc4eee00d 100644
--- a/doc/ja/autogen/user/weechat_commands.adoc
+++ b/doc/ja/autogen/user/weechat_commands.adoc
@@ -309,7 +309,7 @@ Some variables are replaced in expression, using the format ${variable}, variabl
10. current date/time (format: "date" or "date:format")
11. an environment variable (format: "env:XXX")
12. a ternary operator (format: "if:condition?value_if_true:value_if_false")
- 13. result of an expression with parentheses and operators + - * / // % (format: "calc:xxx")
+ 13. result of an expression with parentheses and operators + - * / // % ** (format: "calc:xxx")
14. an option (format: "file.section.option")
15. a local variable in buffer
16. a hdata name/variable (the value is automatically converted to string), by default "window" and "buffer" point to current window/buffer.
diff --git a/doc/ja/weechat_plugin_api.ja.adoc b/doc/ja/weechat_plugin_api.ja.adoc
index 1c37b0307..fbf3340f5 100644
--- a/doc/ja/weechat_plugin_api.ja.adoc
+++ b/doc/ja/weechat_plugin_api.ja.adoc
@@ -2569,18 +2569,21 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio
(_WeeChat バージョン 2.7 以上で利用可_) |
Result of expression, where parentheses and the following operators are
supported: +
- `+`: addition +
- `-`: subtraction +
- `*`: multiplication +
- `/`: division +
- `//`: result of division without fractional part +
- `%`: remainder of division. |
+ `+++`: addition +
+ `+-+`: subtraction +
+ `+*+`: multiplication +
+ `+/+`: division +
+ `+//+`: result of division without fractional part +
+ `+%+`: remainder of division +
+ `+**+`: power. |
`+${calc:5+2*3}+` +
`+${calc:(5+2)*3}+` +
- `+${calc:9.2%3}+` |
+ `+${calc:9.2%3}+` +
+ `+${calc:2**16}+` |
`+11+` +
`+21+` +
- `+0.2+`
+ `+0.2+` +
+ `+65536+`
| `+${sec.data.name}+` |
セキュアデータ `name` の値 |