summaryrefslogtreecommitdiff
path: root/doc/en/weechat_plugin_api.en.adoc
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2019-09-21 07:56:21 +0200
committerSébastien Helleu <flashcode@flashtux.org>2019-09-21 07:56:21 +0200
commitdcfc4e8ed59e015d0d83944bdadf39e8b83298ea (patch)
tree124e81991dc639ef7a208c22653f89e29adb4eb6 /doc/en/weechat_plugin_api.en.adoc
parent1919f23c2d67dcf38765a06943e66f89d5873a62 (diff)
downloadweechat-dcfc4e8ed59e015d0d83944bdadf39e8b83298ea.zip
core: add "length:xxx" and "lengthscr:xxx" in evaluation of expressions
Diffstat (limited to 'doc/en/weechat_plugin_api.en.adoc')
-rw-r--r--doc/en/weechat_plugin_api.en.adoc16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/en/weechat_plugin_api.en.adoc b/doc/en/weechat_plugin_api.en.adoc
index 3a16f07c8..91a7e14f3 100644
--- a/doc/en/weechat_plugin_api.en.adoc
+++ b/doc/en/weechat_plugin_api.en.adoc
@@ -2474,6 +2474,22 @@ expanded to last):
`+${repeat:5,-}+` |
`+-----+`
+| `+${length:xxx}+` +
+ (_WeeChat ≥ 2.7_) |
+ Length of string (number of UTF-8 chars). |
+ `+${length:test}+` +
+ `+${length:こんにちは世界}+` |
+ `+4+` +
+ `+7+`
+
+| `+${lengthscr:xxx}+` +
+ (_WeeChat ≥ 2.7_) |
+ Length of string displayed on screen. |
+ `+${lengthscr:test}+` +
+ `+${lengthscr:こんにちは世界}+` |
+ `+4+` +
+ `+14+`
+
| `+${re:N}+` +
(_WeeChat ≥ 1.1_) |
Regex captured group: `0` = whole string matching, `1` to `99` = group