summaryrefslogtreecommitdiff
path: root/doc/it
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2014-01-09 16:09:39 +0100
committerSebastien Helleu <flashcode@flashtux.org>2014-01-09 16:09:39 +0100
commit7e540dc5fb7dfb31f1b9c39002c63e62fdf429af (patch)
treeb2b0bdba35b436e3f455c5bbef05550d86fc97c7 /doc/it
parent4a6bdc1c9cd2fd2d5cedc934ab96efc56b329b2c (diff)
downloadweechat-7e540dc5fb7dfb31f1b9c39002c63e62fdf429af.zip
doc: add missing function "string_has_highlight_regex" in italian plugin API reference
Diffstat (limited to 'doc/it')
-rw-r--r--doc/it/weechat_plugin_api.it.txt43
1 files changed, 43 insertions, 0 deletions
diff --git a/doc/it/weechat_plugin_api.it.txt b/doc/it/weechat_plugin_api.it.txt
index 2d36a07ce..32dbd3b63 100644
--- a/doc/it/weechat_plugin_api.it.txt
+++ b/doc/it/weechat_plugin_api.it.txt
@@ -1194,6 +1194,49 @@ highlight = weechat.string_has_highlight(string, highlight_words)
highlight = weechat.string_has_highlight("my test string", "test,word2") # 1
----
+==== weechat_string_has_highlight_regex
+
+_WeeChat ≥ 0.3.4._
+
+// TRANSLATION MISSING
+Check if a string has one or more highlights, using a regular expression.
+For at least one match of regular expression on string, it must be surrounded
+by word chars (alphanumeric character, "-", "_" or "|").
+
+Prototipo:
+
+[source,C]
+----
+int weechat_string_has_highlight_regex (const char *string, const char *regex);
+----
+
+Argomenti:
+
+* 'string': stringa
+* 'regex': espressione regolare
+
+Valore restituito:
+
+* 1 se la stringa ha uno o più eventi, altrimenti 0
+
+Esempio in C:
+
+[source,C]
+----
+int hl = weechat_string_has_highlight_regex ("my test string", "test|word2"); /* == 1 */
+----
+
+Script (Python):
+
+[source,python]
+----
+# prototipo
+highlight = weechat.string_has_highlight_regex(string, regex)
+
+# esempio
+highlight = weechat.string_has_highlight_regex("my test string", "test|word2") # 1
+----
+
==== weechat_string_split
Divide una stringa in base a uno o più delimitatori.