From f4606ef0a9e3a55f4937b4443b7c0629803be029 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Fri, 14 Feb 2014 09:19:03 +0100 Subject: [PATCH] doc: add function hashtable_dup in plugin API reference --- doc/en/weechat_plugin_api.en.txt | 31 ++++++++++++++++++++++++ doc/fr/weechat_plugin_api.fr.txt | 41 ++++++++++++++++++++++++++++---- doc/it/weechat_plugin_api.it.txt | 33 +++++++++++++++++++++++++ doc/ja/weechat_plugin_api.ja.txt | 33 +++++++++++++++++++++++++ 4 files changed, 133 insertions(+), 5 deletions(-) diff --git a/doc/en/weechat_plugin_api.en.txt b/doc/en/weechat_plugin_api.en.txt index 4a24853ec..de66d72a3 100644 --- a/doc/en/weechat_plugin_api.en.txt +++ b/doc/en/weechat_plugin_api.en.txt @@ -3480,6 +3480,37 @@ weechat_hashtable_map_string (hashtable, &map_cb, NULL); [NOTE] This function is not available in scripting API. +==== weechat_hashtable_dup + +_WeeChat ≥ 0.4.4._ + +Duplicate a hashtable. + +Prototype: + +[source,C] +---- +struct t_hashtable *hashtable_dup (struct t_hashtable *hashtable); +---- + +Arguments: + +* 'hashtable': hashtable pointer + +Return value: + +* duplicated hashtable + +C example: + +[source,C] +---- +struct t_hashtable *new_hashtable = weechat_hashtable_dup (hashtable); +---- + +[NOTE] +This function is not available in scripting API. + ==== weechat_hashtable_get_integer _WeeChat ≥ 0.3.3._ diff --git a/doc/fr/weechat_plugin_api.fr.txt b/doc/fr/weechat_plugin_api.fr.txt index a64729715..d65ee1369 100644 --- a/doc/fr/weechat_plugin_api.fr.txt +++ b/doc/fr/weechat_plugin_api.fr.txt @@ -3381,7 +3381,7 @@ Paramètres : * 'hashtable' : pointeur vers la table de hachage * 'key' : pointeur vers la clé -Valeur en retour : +Valeur de retour : * valeur pour la clé, NULL si la clé n'est pas trouvée @@ -3413,7 +3413,7 @@ Paramètres : * 'hashtable' : pointeur vers la table de hachage * 'key' : pointeur vers la clé -Valeur en retour : +Valeur de retour : * 1 si la clé est dans la table de hachage, 0 si la clé n'est pas dans la table de hachage @@ -3524,6 +3524,37 @@ weechat_hashtable_map_string (hashtable, &map_cb, NULL); [NOTE] Cette fonction n'est pas disponible dans l'API script. +==== weechat_hashtable_dup + +_WeeChat ≥ 0.4.4._ + +Dupliquer une table de hachage. + +Prototype : + +[source,C] +---- +struct t_hashtable *hashtable_dup (struct t_hashtable *hashtable); +---- + +Paramètres : + +* 'hashtable' : pointeur vers la table de hachage + +Valeur de retour : + +* table de hachage dupliquée + +Exemple en C : + +[source,C] +---- +struct t_hashtable *new_hashtable = weechat_hashtable_dup (hashtable); +---- + +[NOTE] +Cette fonction n'est pas disponible dans l'API script. + ==== weechat_hashtable_get_integer _WeeChat ≥ 0.3.3._ @@ -3545,7 +3576,7 @@ Paramètres : ** 'size' : taille du tableau interne "htable" dans la table de hachage ** 'items_count' : nombre d'éléments dans la table de hachage -Valeur en retour : +Valeur de retour : * valeur de la propriété sous forme d'entier @@ -3600,7 +3631,7 @@ Paramètres : ** 'keys_values_sorted' : chaîne avec la liste des clés et valeurs (triée sur les clés) (format : "clé1:valeur1,clé2:valeur2,clé3:valeur3") -Valeur en retour : +Valeur de retour : * valeur de la propriété sous forme de chaîne @@ -3678,7 +3709,7 @@ Paramètres : * 'infolist_item' : pointeur vers l'objet de l'infolist * 'prefix' : chaîne utilisée comme préfixe pour les noms dans l'infolist -Valeur en retour : +Valeur de retour : * 1 si ok, 0 en cas d'erreur diff --git a/doc/it/weechat_plugin_api.it.txt b/doc/it/weechat_plugin_api.it.txt index 0cbe26703..40e6e31cd 100644 --- a/doc/it/weechat_plugin_api.it.txt +++ b/doc/it/weechat_plugin_api.it.txt @@ -3535,6 +3535,39 @@ weechat_hashtable_map_string (hashtable, &map_cb, NULL); [NOTE] Questa funzione non è disponibile nelle API per lo scripting. +==== weechat_hashtable_dup + +_WeeChat ≥ 0.4.4._ + +// TRANSLATION MISSING +Duplicate a hashtable. + +Prototipo: + +[source,C] +---- +struct t_hashtable *hashtable_dup (struct t_hashtable *hashtable); +---- + +Argomenti: + +* 'hashtable': puntatore alla tabella hash + +Valore restituito: + +// TRANSLATION MISSING +* duplicated hashtable + +Esempio in C: + +[source,C] +---- +struct t_hashtable *new_hashtable = weechat_hashtable_dup (hashtable); +---- + +[NOTE] +Questa funzione non è disponibile nelle API per lo scripting. + ==== weechat_hashtable_get_integer _WeeChat ≥ 0.3.3._ diff --git a/doc/ja/weechat_plugin_api.ja.txt b/doc/ja/weechat_plugin_api.ja.txt index f54fc30de..d019d55a3 100644 --- a/doc/ja/weechat_plugin_api.ja.txt +++ b/doc/ja/weechat_plugin_api.ja.txt @@ -3477,6 +3477,39 @@ weechat_hashtable_map_string (hashtable, &map_cb, NULL); [NOTE] スクリプト API ではこの関数を利用できません。 +==== weechat_hashtable_dup + +_WeeChat バージョン 0.4.4 以上で利用可。_ + +// TRANSLATION MISSING +Duplicate a hashtable. + +プロトタイプ: + +[source,C] +---- +struct t_hashtable *hashtable_dup (struct t_hashtable *hashtable); +---- + +引数: + +* 'hashtable': ハッシュテーブルへのポインタ + +戻り値: + +// TRANSLATION MISSING +* duplicated hashtable + +C 言語での使用例: + +[source,C] +---- +struct t_hashtable *new_hashtable = weechat_hashtable_dup (hashtable); +---- + +[NOTE] +スクリプト API ではこの関数を利用できません。 + ==== weechat_hashtable_get_integer _WeeChat バージョン 0.3.3 以上で利用可。_