summaryrefslogtreecommitdiff
path: root/doc/it
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-03-10 21:04:34 +0100
committerSébastien Helleu <flashcode@flashtux.org>2023-03-10 21:04:34 +0100
commita5aa3304a48d321956dad4700b7363e8be2904a4 (patch)
tree6fe6ed5706be0d51c2d409ce0dba0645c446098a /doc/it
parent7cda6cfd4938b5677fefae50a1def99585d4ec78 (diff)
downloadweechat-a5aa3304a48d321956dad4700b7363e8be2904a4.zip
doc/api: add hashtable methods in function string_eval_expression
Diffstat (limited to 'doc/it')
-rw-r--r--doc/it/weechat_plugin_api.it.adoc17
1 files changed, 11 insertions, 6 deletions
diff --git a/doc/it/weechat_plugin_api.it.adoc b/doc/it/weechat_plugin_api.it.adoc
index a81eaadc2..24c4ba195 100644
--- a/doc/it/weechat_plugin_api.it.adoc
+++ b/doc/it/weechat_plugin_api.it.adoc
@@ -2725,7 +2725,7 @@ str3 = weechat.string_input_for_buffer("//test") # "/test"
==== string_eval_expression
_WeeChat ≥ 0.4.0, updated in 0.4.2, 0.4.3, 1.0, 1.1, 1.2, 1.3, 1.6, 1.8, 2.0,
-2.2, 2.3, 2.7, 2.9, 3.1, 3.2, 3.3, 3.4, 3.6, 3.8._
+2.2, 2.3, 2.7, 2.9, 3.1, 3.2, 3.3, 3.4, 3.6, 3.8, 3.9._
Evaluate an expression and return result as a string.
Special variables with format `+${variable}+` are expanded (see table below).
@@ -3110,7 +3110,6 @@ expanded to last):
>> `+${\ua9}+` +
== `+©+`
-// TRANSLATION MISSING
| `+${chars:range}+` | 3.8
| String with a range of chars, where `range` is one of: +
- `digit` (`0123456789`) +
@@ -3135,13 +3134,11 @@ expanded to last):
>> `+${chars:←-↓}+` +
== `+←↑→↓+`
-// TRANSLATION MISSING
| `+${lower:string}+` | 3.6
| String converted to lower case.
| >> `+${lower:TEST}+` +
== `+test+`
-// TRANSLATION MISSING
| `+${upper:string}+` | 3.6
| String converted to upper case.
| >> `+${upper:test}+` +
@@ -3450,7 +3447,9 @@ expanded to last):
`+${hdata[list].var1.var2...}+` |
| Hdata value (pointers `window` and `buffer` are set by default with current
window/buffer), `list` can be a list name (example: "gui_buffers"), a pointer
- (example: "0x1234abcd") or a pointer name (example: "my_pointer").
+ (example: "0x1234abcd") or a pointer name (example: "my_pointer"). +
+ When `var1` is a hashtable, methods `keys()`, `values()`, `keys_sorted()`,
+ `keys_values()` and `keys_values_sorted()` can be called.
| >> `+${buffer[gui_buffers].full_name}+` +
== `+core.weechat+` +
+
@@ -3458,7 +3457,13 @@ expanded to last):
== `+core.weechat+` +
+
>> `+${window.buffer.number}+` +
- == `+1+`
+ == `+1+` +
+ +
+ >> `+${buffer.local_variables.keys_values()}+` +
+ == `+plugin:core,name:weechat+` +
+ +
+ >> `+${buffer.local_variables.plugin}+` +
+ == `+core+`
|===
==== string_dyn_alloc