From dcfc4e8ed59e015d0d83944bdadf39e8b83298ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 21 Sep 2019 07:56:21 +0200 Subject: core: add "length:xxx" and "lengthscr:xxx" in evaluation of expressions --- doc/en/weechat_plugin_api.en.adoc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'doc/en/weechat_plugin_api.en.adoc') 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 -- cgit v1.2.3