summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2014-02-15 12:59:05 +0100
committerSebastien Helleu <flashcode@flashtux.org>2014-02-15 12:59:05 +0100
commit360f900d921bae23228b8124477e4d24dc95e190 (patch)
tree3931d07882c4b0173c73deb0de9081d88f2170e2 /doc
parent7aba5f713f5994634af8254ddaa6521f45b7b410 (diff)
downloadweechat-360f900d921bae23228b8124477e4d24dc95e190.zip
core: move function string_replace before string_replace_regex
Diffstat (limited to 'doc')
-rw-r--r--doc/en/weechat_plugin_api.en.txt70
-rw-r--r--doc/fr/weechat_plugin_api.fr.txt70
-rw-r--r--doc/it/weechat_plugin_api.it.txt70
-rw-r--r--doc/ja/weechat_plugin_api.ja.txt70
4 files changed, 140 insertions, 140 deletions
diff --git a/doc/en/weechat_plugin_api.en.txt b/doc/en/weechat_plugin_api.en.txt
index 6db28bd8c..add27a47d 100644
--- a/doc/en/weechat_plugin_api.en.txt
+++ b/doc/en/weechat_plugin_api.en.txt
@@ -854,41 +854,6 @@ match3 = weechat.string_match("abcdef", "*def", 0) # 1
match4 = weechat.string_match("abcdef", "*de*", 0) # 1
----
-==== weechat_string_replace
-
-Replace all occurrences of a string by another string.
-
-Prototype:
-
-[source,C]
-----
-char *weechat_string_replace (const char *string, const char *search,
- const char *replace);
-----
-
-Arguments:
-
-* 'string': string
-* 'search': string to replace
-* 'replace': replacement for string 'search'
-
-Return value:
-
-* string with 'search' replaced by 'replace' (must be freed by calling "free"
- after use)
-
-C example:
-
-[source,C]
-----
-char *str = weechat_string_replace ("test", "s", "x"); /* result: "text" */
-/* ... */
-free (str);
-----
-
-[NOTE]
-This function is not available in scripting API.
-
==== weechat_string_expand_home
_WeeChat ≥ 0.3.3._
@@ -1264,6 +1229,41 @@ highlight = weechat.string_has_highlight_regex(string, regex)
highlight = weechat.string_has_highlight_regex("my test string", "test|word2") # 1
----
+==== weechat_string_replace
+
+Replace all occurrences of a string by another string.
+
+Prototype:
+
+[source,C]
+----
+char *weechat_string_replace (const char *string, const char *search,
+ const char *replace);
+----
+
+Arguments:
+
+* 'string': string
+* 'search': string to replace
+* 'replace': replacement for string 'search'
+
+Return value:
+
+* string with 'search' replaced by 'replace' (must be freed by calling "free"
+ after use)
+
+C example:
+
+[source,C]
+----
+char *str = weechat_string_replace ("test", "s", "x"); /* result: "text" */
+/* ... */
+free (str);
+----
+
+[NOTE]
+This function is not available in scripting API.
+
==== weechat_string_replace_regex
_WeeChat ≥ 0.4.4._
diff --git a/doc/fr/weechat_plugin_api.fr.txt b/doc/fr/weechat_plugin_api.fr.txt
index 117d25031..1bc4360ba 100644
--- a/doc/fr/weechat_plugin_api.fr.txt
+++ b/doc/fr/weechat_plugin_api.fr.txt
@@ -863,41 +863,6 @@ match3 = weechat.string_match("abcdef", "*def", 0) # 1
match4 = weechat.string_match("abcdef", "*de*", 0) # 1
----
-==== weechat_string_replace
-
-Remplacer toutes les occurrences d'une chaîne par une autre chaîne.
-
-Prototype :
-
-[source,C]
-----
-char *weechat_string_replace (const char *string, const char *search,
- const char *replace);
-----
-
-Paramètres :
-
-* 'string' : chaîne
-* 'search' : chaîne à remplacer
-* 'replace' : remplacement pour la chaîne 'search'
-
-Valeur de retour :
-
-* chaîne avec 'search' remplacée par 'replace' (doit être supprimée par un appel
- à "free" après utilisation)
-
-Exemple en C :
-
-[source,C]
-----
-char *str = weechat_string_replace ("test, test", "s", "x"); /* résultat : "text" */
-/* ... */
-free (str);
-----
-
-[NOTE]
-Cette fonction n'est pas disponible dans l'API script.
-
==== weechat_string_expand_home
_WeeChat ≥ 0.3.3._
@@ -1282,6 +1247,41 @@ highlight = weechat.string_has_highlight_regex(string, regex)
highlight = weechat.string_has_highlight_regex("my test string", "test|word2") # 1
----
+==== weechat_string_replace
+
+Remplacer toutes les occurrences d'une chaîne par une autre chaîne.
+
+Prototype :
+
+[source,C]
+----
+char *weechat_string_replace (const char *string, const char *search,
+ const char *replace);
+----
+
+Paramètres :
+
+* 'string' : chaîne
+* 'search' : chaîne à remplacer
+* 'replace' : remplacement pour la chaîne 'search'
+
+Valeur de retour :
+
+* chaîne avec 'search' remplacée par 'replace' (doit être supprimée par un appel
+ à "free" après utilisation)
+
+Exemple en C :
+
+[source,C]
+----
+char *str = weechat_string_replace ("test, test", "s", "x"); /* résultat : "text" */
+/* ... */
+free (str);
+----
+
+[NOTE]
+Cette fonction n'est pas disponible dans l'API script.
+
==== weechat_string_replace_regex
_WeeChat ≥ 0.4.4._
diff --git a/doc/it/weechat_plugin_api.it.txt b/doc/it/weechat_plugin_api.it.txt
index 3bde8d1d2..1edb181f5 100644
--- a/doc/it/weechat_plugin_api.it.txt
+++ b/doc/it/weechat_plugin_api.it.txt
@@ -871,41 +871,6 @@ match3 = weechat.string_match("abcdef", "*def", 0) # 1
match4 = weechat.string_match("abcdef", "*de*", 0) # 1
----
-==== weechat_string_replace
-
-Sostituisce tutte le ricorrenze di una stringa con un'altra.
-
-Prototipo:
-
-[source,C]
-----
-char *weechat_string_replace (const char *string, const char *search,
- const char *replace);
-----
-
-Argomenti:
-
-* 'string': stringa
-* 'search': stringa da sostituire
-* 'replace': sostituzione per la stringa 'search'
-
-Valore restituito:
-
-* la stringa dopo 'search' sostituita da 'replace' (deve essere liberata
- chiamando "free" dopo l'uso)
-
-Esempio in C:
-
-[source,C]
-----
-char *str = weechat_string_replace ("test", "s", "x"); /* result: "text" */
-/* ... */
-free (str);
-----
-
-[NOTE]
-Questa funzione non è disponibile nelle API per lo scripting.
-
==== weechat_string_expand_home
_WeeChat ≥ 0.3.3._
@@ -1297,6 +1262,41 @@ highlight = weechat.string_has_highlight_regex(string, regex)
highlight = weechat.string_has_highlight_regex("my test string", "test|word2") # 1
----
+==== weechat_string_replace
+
+Sostituisce tutte le ricorrenze di una stringa con un'altra.
+
+Prototipo:
+
+[source,C]
+----
+char *weechat_string_replace (const char *string, const char *search,
+ const char *replace);
+----
+
+Argomenti:
+
+* 'string': stringa
+* 'search': stringa da sostituire
+* 'replace': sostituzione per la stringa 'search'
+
+Valore restituito:
+
+* la stringa dopo 'search' sostituita da 'replace' (deve essere liberata
+ chiamando "free" dopo l'uso)
+
+Esempio in C:
+
+[source,C]
+----
+char *str = weechat_string_replace ("test", "s", "x"); /* result: "text" */
+/* ... */
+free (str);
+----
+
+[NOTE]
+Questa funzione non è disponibile nelle API per lo scripting.
+
==== weechat_string_replace_regex
_WeeChat ≥ 0.4.4._
diff --git a/doc/ja/weechat_plugin_api.ja.txt b/doc/ja/weechat_plugin_api.ja.txt
index 060bdccb3..5af1d4919 100644
--- a/doc/ja/weechat_plugin_api.ja.txt
+++ b/doc/ja/weechat_plugin_api.ja.txt
@@ -853,41 +853,6 @@ match3 = weechat.string_match("abcdef", "*def", 0) # 1
match4 = weechat.string_match("abcdef", "*de*", 0) # 1
----
-==== weechat_string_replace
-
-マッチした全ての文字列を別の文字列で置換。
-
-プロトタイプ:
-
-[source,C]
-----
-char *weechat_string_replace (const char *string, const char *search,
- const char *replace);
-----
-
-引数:
-
-* 'string': 文字列
-* 'search': マッチさせる文字列
-* 'replace': 'search' を置き換える文字列
-
-戻り値:
-
-* 'search' を 'replace' で置き換えた文字列
- (使用後には必ず "free" を呼び出して領域を開放してください)
-
-C 言語での使用例:
-
-[source,C]
-----
-char *str = weechat_string_replace ("test", "s", "x"); /* result: "text" */
-/* ... */
-free (str);
-----
-
-[NOTE]
-スクリプト API ではこの関数を利用できません。
-
==== weechat_string_expand_home
_WeeChat バージョン 0.3.3 以上で利用可。_
@@ -1264,6 +1229,41 @@ highlight = weechat.string_has_highlight_regex(string, regex)
highlight = weechat.string_has_highlight_regex("my test string", "test|word2") # 1
----
+==== weechat_string_replace
+
+マッチした全ての文字列を別の文字列で置換。
+
+プロトタイプ:
+
+[source,C]
+----
+char *weechat_string_replace (const char *string, const char *search,
+ const char *replace);
+----
+
+引数:
+
+* 'string': 文字列
+* 'search': マッチさせる文字列
+* 'replace': 'search' を置き換える文字列
+
+戻り値:
+
+* 'search' を 'replace' で置き換えた文字列
+ (使用後には必ず "free" を呼び出して領域を開放してください)
+
+C 言語での使用例:
+
+[source,C]
+----
+char *str = weechat_string_replace ("test", "s", "x"); /* result: "text" */
+/* ... */
+free (str);
+----
+
+[NOTE]
+スクリプト API ではこの関数を利用できません。
+
==== weechat_string_replace_regex
_WeeChat バージョン 0.4.4 以上で利用可。_