summaryrefslogtreecommitdiff
path: root/doc/it
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2010-10-11 13:56:57 +0200
committerSebastien Helleu <flashcode@flashtux.org>2010-10-11 13:56:57 +0200
commitf32e18c717520e3482b1a4155ff4e804da7aecbb (patch)
tree8be6e042cebaadab4236ead19374637d1704176f /doc/it
parentb9d6c5c5a04b2fa06306e0b626b2318bcb797d21 (diff)
downloadweechat-f32e18c717520e3482b1a4155ff4e804da7aecbb.zip
Add function "hashtable_has_key" in WeeChat and plugin API
Diffstat (limited to 'doc/it')
-rw-r--r--doc/it/weechat_plugin_api.it.txt40
1 files changed, 40 insertions, 0 deletions
diff --git a/doc/it/weechat_plugin_api.it.txt b/doc/it/weechat_plugin_api.it.txt
index 1893255c9..3d47211f6 100644
--- a/doc/it/weechat_plugin_api.it.txt
+++ b/doc/it/weechat_plugin_api.it.txt
@@ -3013,6 +3013,46 @@ void *value = weechat_hashtable_get (hashtable, "my_key");
[NOTE]
Questa funzione non è disponibile nelle API per lo scripting.
+weechat_hashtable_has_key
+^^^^^^^^^^^^^^^^^^^^^^^^^
+
+_Novità nella versione 0.3.4._
+
+// TRANSLATION MISSING
+Return 1 if hashtable has key, otherwise 0.
+
+Prototipo:
+
+[source,C]
+----------------------------------------
+int weechat_hashtable_has_key (struct t_hashtable *hashtable, void *key);
+----------------------------------------
+
+Argomenti:
+
+* 'hashtable': puntatore alla tabella hash
+* 'key': puntatore alla chiave
+
+Valore restituito:
+
+// TRANSLATION MISSING
+* 1 if key is in hashtable, 0 if key is not in hashtable
+
+Esempio in C:
+
+// TRANSLATION MISSING
+[source,C]
+----------------------------------------
+if (weechat_hashtable_has_key (hashtable, "my_key"))
+{
+ /* key is in hashtable */
+ /* ... */
+}
+----------------------------------------
+
+[NOTE]
+This function is not available in scripting API.
+
weechat_hashtable_map
^^^^^^^^^^^^^^^^^^^^^