diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/en/weechat_plugin_api.en.txt | 89 | ||||
-rw-r--r-- | doc/fr/weechat_plugin_api.fr.txt | 89 | ||||
-rw-r--r-- | doc/it/weechat_plugin_api.it.txt | 91 |
3 files changed, 269 insertions, 0 deletions
diff --git a/doc/en/weechat_plugin_api.en.txt b/doc/en/weechat_plugin_api.en.txt index 7e04f3333..126f2c7db 100644 --- a/doc/en/weechat_plugin_api.en.txt +++ b/doc/en/weechat_plugin_api.en.txt @@ -596,6 +596,50 @@ int diff = weechat_strcasecmp ("aaa", "CCC"); /* == -2 */ [NOTE] This function is not available in scripting API. +weechat_strcasecmp_range +^^^^^^^^^^^^^^^^^^^^^^^^ + +_New in version 0.3.7._ + +Locale and case independent string comparison, using a range for case +comparison. + +Prototype: + +[source,C] +---------------------------------------- +int weechat_strcasecmp_range (const char *string1, const char *string2, int range); +---------------------------------------- + +Arguments: + +* 'string1': first string for comparison +* 'string2': second string for comparison +* 'range': number of chars in case comparison, for example: +** 26: "A-Z" are lowered to "a-z" +** 29: "A-Z [ \ ]" are lowered to "a-z { | }" +** 30: "A-Z [ \ ] ^" are lowered to "a-z { | } ~" + +[NOTE] +Values 29 and 30 are used by some protocols like IRC. + +Return value: + +* difference between two strings: +** negative if string1 < string2 +** zero if string1 == string2 +** positive if string1 > string2 + +C example: + +[source,C] +---------------------------------------- +int diff = weechat_strcasecmp_range ("nick{away}", "NICK[away]", 29); /* == 0 */ +---------------------------------------- + +[NOTE] +This function is not available in scripting API. + weechat_strncasecmp ^^^^^^^^^^^^^^^^^^^ @@ -631,6 +675,51 @@ int diff = weechat_strncasecmp ("aabb", "aacc", 2); /* == 0 */ [NOTE] This function is not available in scripting API. +weechat_strncasecmp_range +^^^^^^^^^^^^^^^^^^^^^^^^^ + +_New in version 0.3.7._ + +Locale and case independent string comparison, for 'max' chars, using a range +for case comparison. + +Prototype: + +[source,C] +---------------------------------------- +int weechat_strncasecmp_range (const char *string1, const char *string2, int max, int range); +---------------------------------------- + +Arguments: + +* 'string1': first string for comparison +* 'string2': second string for comparison +* 'max': max chars to compare +* 'range': number of chars in case comparison, for example: +** 26: "A-Z" are lowered to "a-z" +** 29: "A-Z [ \ ]" are lowered to "a-z { | }" +** 30: "A-Z [ \ ] ^" are lowered to "a-z { | } ~" + +[NOTE] +Values 29 and 30 are used by some protocols like IRC. + +Return value: + +* difference between two strings: +** negative if string1 < string2 +** zero if string1 == string2 +** positive if string1 > string2 + +C example: + +[source,C] +---------------------------------------- +int diff = weechat_strncasecmp_range ("nick{away}", "NICK[away]", 6, 29); /* == 0 */ +---------------------------------------- + +[NOTE] +This function is not available in scripting API. + weechat_strcmp_ignore_chars ^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/doc/fr/weechat_plugin_api.fr.txt b/doc/fr/weechat_plugin_api.fr.txt index 2117f80b2..6a4981ed6 100644 --- a/doc/fr/weechat_plugin_api.fr.txt +++ b/doc/fr/weechat_plugin_api.fr.txt @@ -603,6 +603,50 @@ int diff = weechat_strcasecmp ("aaa", "CCC"); /* == -2 */ [NOTE] Cette fonction n'est pas disponible dans l'API script. +weechat_strcasecmp_range +^^^^^^^^^^^^^^^^^^^^^^^^ + +_Nouveau dans la version 0.3.7._ + +Comparaison de chaînes indépendante de la locale et de la casse, avec un +intervalle pour comparer la casse. + +Prototype : + +[source,C] +---------------------------------------- +int weechat_strcasecmp_range (const char *string1, const char *string2, int range); +---------------------------------------- + +Paramètres : + +* 'string1' : première chaîne à comparer +* 'string2' : seconde chaîne à comparer +* 'range' : nombre de caractères pour la comparaison de casse, par exemple : +** 26 : "A-Z" deviennent en minuscules "a-z" +** 29 : "A-Z [ \ ]" deviennent minuscules "a-z { | }" +** 30 : "A-Z [ \ ] ^" deviennent minuscules "a-z { | } ~" + +[NOTE] +Les valeurs 29 et 30 sont utilisés par quelques protocoles comme IRC. + +Valeur de retour : + +* différence entre les deux chaînes : +** négative si string1 < string2 +** zéro si string1 == string2 +** positive si string1 > string2 + +Exemple en C : + +[source,C] +---------------------------------------- +int diff = weechat_strcasecmp_range ("nick{away}", "NICK[away]", 29); /* == 0 */ +---------------------------------------- + +[NOTE] +Cette fonction n'est pas disponible dans l'API script. + weechat_strncasecmp ^^^^^^^^^^^^^^^^^^^ @@ -639,6 +683,51 @@ int diff = weechat_strncasecmp ("aabb", "aacc", 2); /* == 0 */ [NOTE] Cette fonction n'est pas disponible dans l'API script. +weechat_strncasecmp_range +^^^^^^^^^^^^^^^^^^^^^^^^^ + +_Nouveau dans la version 0.3.7._ + +Comparaison de chaînes indépendante de la locale et de la casse, pour 'max' +caractères, avec un intervalle pour comparer la casse. + +Prototype : + +[source,C] +---------------------------------------- +int weechat_strncasecmp_range (const char *string1, const char *string2, int max, int range); +---------------------------------------- + +Paramètres : + +* 'string1' : première chaîne à comparer +* 'string2' : seconde chaîne à comparer +* 'max' : nombre maximum de caractères à comparer +* 'range' : nombre de caractères pour la comparaison de casse, par exemple : +** 26 : "A-Z" deviennent en minuscules "a-z" +** 29 : "A-Z [ \ ]" deviennent minuscules "a-z { | }" +** 30 : "A-Z [ \ ] ^" deviennent minuscules "a-z { | } ~" + +[NOTE] +Les valeurs 29 et 30 sont utilisés par quelques protocoles comme IRC. + +Valeur de retour : + +* différence entre les deux chaînes : +** négative si string1 < string2 +** zéro si string1 == string2 +** positive si string1 > string2 + +Exemple en C : + +[source,C] +---------------------------------------- +int diff = weechat_strncasecmp_range ("nick{away}", "NICK[away]", 6, 29); /* == 0 */ +---------------------------------------- + +[NOTE] +Cette fonction n'est pas disponible dans l'API script. + weechat_strcmp_ignore_chars ^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/doc/it/weechat_plugin_api.it.txt b/doc/it/weechat_plugin_api.it.txt index d193d6b9f..0465b7e7c 100644 --- a/doc/it/weechat_plugin_api.it.txt +++ b/doc/it/weechat_plugin_api.it.txt @@ -613,6 +613,51 @@ int diff = weechat_strcasecmp ("aaa", "CCC"); /* == -2 */ [NOTE] Questa funzione non è disponibile nelle API per lo scripting. +weechat_strcasecmp_range +^^^^^^^^^^^^^^^^^^^^^^^^ + +// TRANSLATION MISSING +Confronta stringa indipendente da caso (maiuscole +o minuscole) e da locale, using a range for case comparison. + +Prototipo: + +[source,C] +---------------------------------------- +int weechat_strcasecmp_range (const char *string1, const char *string2, int range); +---------------------------------------- + +Argomenti: + +* 'string1': prima stringa da comparare +* 'string2': seconda stringa da comparare +// TRANSLATION MISSING +* 'range': number of chars in case comparison, for example: +** 26: "A-Z" are lowered to "a-z" +** 29: "A-Z [ \ ]" are lowered to "a-z { | }" +** 30: "A-Z [ \ ] ^" are lowered to "a-z { | } ~" + +// TRANSLATION MISSING +[NOTE] +Values 29 and 30 are used by some protocols like IRC. + +Valore restituito: + +* differenze tra le due stringhe: +** negativa se stringa1 < stringa2 +** zero se stringa1 == stringa1 +** positiva se stringa1 > stringa2 + +Esempio in C: + +[source,C] +---------------------------------------- +int diff = weechat_strcasecmp ("nick{away}", "NICK[AWAY]"); /* == 0 */ +---------------------------------------- + +[NOTE] +Questa funzione non è disponibile nelle API per lo scripting. + weechat_strncasecmp ^^^^^^^^^^^^^^^^^^^ @@ -649,6 +694,52 @@ int diff = weechat_strncasecmp ("aabb", "aacc", 2); /* == 0 */ [NOTE] Questa funzione non è disponibile nelle API per lo scripting. +weechat_strncasecmp_range +^^^^^^^^^^^^^^^^^^^^^^^^^ + +// TRANSLATION MISSING +Confronta stringa indipendente da caso (maiuscole o minuscole) e da locale, per +un numero 'max' di caratteri, using a range for case comparison. + +Prototipo: + +[source,C] +---------------------------------------- +int weechat_strncasecmp_range (const char *string1, const char *string2, int max, int range); +---------------------------------------- + +Argomenti: + +* 'string1': prima stringa da comparare +* 'string2': seconda stringa da comparare +* 'max': numero massimo di caratteri da comparare +// TRANSLATION MISSING +* 'range': number of chars in case comparison, for example: +** 26: "A-Z" are lowered to "a-z" +** 29: "A-Z [ \ ]" are lowered to "a-z { | }" +** 30: "A-Z [ \ ] ^" are lowered to "a-z { | } ~" + +// TRANSLATION MISSING +[NOTE] +Values 29 and 30 are used by some protocols like IRC. + +Valore restituito: + +* differenze tra le due stringhe: +** negativa se stringa1 < stringa2 +** zero se stringa1 == stringa1 +** positiva se stringa1 > stringa2 + +Esempio in C: + +[source,C] +---------------------------------------- +int diff = weechat_strncasecmp_range ("nick{away}", "NICK[away]", 6, 29); /* == 0 */ +---------------------------------------- + +[NOTE] +Questa funzione non è disponibile nelle API per lo scripting. + weechat_strcmp_ignore_chars ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |