1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-18 09:04:47 +02:00

Compare commits

...

12 Commits

Author SHA1 Message Date
Sébastien Helleu cc0337bbe1 Version 1.6 2016-10-02 09:35:04 +02:00
Sébastien Helleu fe0e554d2a core: add missing files docinfo.html in packages built by autotools 2016-10-02 09:12:12 +02:00
Sébastien Helleu 54841f6294 api: fix return of function string_match() when there are multiple masks in the string (issue #812)
Some tests are added as well to test the multiple masks in the string.
2016-10-02 08:58:19 +02:00
Sébastien Helleu f98d50ebab doc: update Polish auto-generated files 2016-10-01 17:35:53 +02:00
Krzysztof Korościk f9f7525e23 doc: updated polish translations 2016-10-01 13:19:43 +02:00
Krzysztof Korościk 8a755ef0d7 updated polish tranlation 2016-10-01 13:14:38 +02:00
Sébastien Helleu a842f24b6d Merge pull request #810 from vascool/pt
core: update Portuguese translation
2016-09-30 07:23:13 +02:00
Vasco Almeida 9f4dddcf75 core: update Portuguese translation 2016-09-27 12:54:36 +00:00
Sébastien Helleu 47019c3d15 doc: fix examples for function string_eval_path_home (plugin API reference) 2016-09-27 07:31:13 +02:00
Sébastien Helleu f2b74fabc2 doc: update Japanese auto-generated files 2016-09-23 20:39:25 +02:00
Sébastien Helleu 7ce4fb1b5d Merge pull request #806 from l/master/translation/ja_JP
core: update Japanese translations
2016-09-23 20:37:47 +02:00
AYANOKOUZI, Ryuunosuke ec3c08e7ab core: update Japanese translations 2016-09-23 09:00:00 +09:00
28 changed files with 407 additions and 373 deletions
+2 -1
View File
@@ -16,7 +16,7 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
[[v1.6]]
== Version 1.6 (under dev)
== Version 1.6 (2016-10-02)
New features::
@@ -36,6 +36,7 @@ Improvements::
Bug fixes::
* core, irc, xfer: refresh domain name and name server addresses before connection to servers (fix connection to servers after suspend mode) (issue #771)
* api: fix return of function string_match() when there are multiple masks in the string (issue #812)
* api: fix crash in function network_connect_to() if address is NULL
* api: fix connection to servers with hook_connect() on Windows 10 with Windows subsystem for Linux (issue #770)
* api: fix crash in function string_split_command() when the separator is not a semicolon (issue #731)
+1 -1
View File
@@ -18,7 +18,7 @@ https://weechat.org/files/changelog/ChangeLog-devel.html[ChangeLog]
[[v1.6]]
== Version 1.6 (under dev)
== Version 1.6 (2016-10-02)
[[v1.6_irc_server_default_msg]]
=== IRC kick/part/quit default messages
+1
View File
@@ -21,6 +21,7 @@
SUBDIRS = . cs de en es fr it ja pl ru
EXTRA_DIST = docgen.py \
docinfo.html \
CMakeLists.txt
uninstall-hook:
+1
View File
@@ -20,6 +20,7 @@
docdir = $(datadir)/doc/$(PACKAGE)
EXTRA_DIST = CMakeLists.txt \
docinfo.html \
weechat.1.cs.adoc \
cmdline_options.cs.adoc \
weechat_quickstart.cs.adoc \
+1
View File
@@ -21,6 +21,7 @@
docdir = $(datadir)/doc/$(PACKAGE)
EXTRA_DIST = CMakeLists.txt \
docinfo.html \
weechat.1.de.adoc \
cmdline_options.de.adoc \
weechat_user.de.adoc \
+1
View File
@@ -21,6 +21,7 @@
docdir = $(datadir)/doc/$(PACKAGE)
EXTRA_DIST = CMakeLists.txt \
docinfo.html \
weechat.1.en.adoc \
cmdline_options.en.adoc \
weechat_user.en.adoc \
+2 -2
View File
@@ -962,7 +962,7 @@ C example:
[source,C]
----
char *str = weechat_string_expand_home ("%h/test");
char *str = weechat_string_eval_path_home ("%h/test", NULL, NULL, NULL);
/* result: "/home/xxx/.weechat/test" */
/* ... */
free (str);
@@ -976,7 +976,7 @@ Script (Python):
path = weechat.string_eval_path_home(path, pointers, extra_vars, options)
# example
path = weechat.string_eval_path_home("%h/test", "", "", "")
path = weechat.string_eval_path_home("%h/test", {}, {}, {})
# path == "/home/xxx/.weechat/test"
----
+1
View File
@@ -20,6 +20,7 @@
docdir = $(datadir)/doc/$(PACKAGE)
EXTRA_DIST = CMakeLists.txt \
docinfo.html \
weechat_quickstart.es.adoc
if MAN
+1
View File
@@ -21,6 +21,7 @@
docdir = $(datadir)/doc/$(PACKAGE)
EXTRA_DIST = CMakeLists.txt \
docinfo.html \
weechat.1.fr.adoc \
cmdline_options.fr.adoc \
weechat_user.fr.adoc \
+2 -2
View File
@@ -974,7 +974,7 @@ Exemple en C :
[source,C]
----
char *str = weechat_string_expand_home ("%h/test");
char *str = weechat_string_eval_path_home ("%h/test", NULL, NULL, NULL);
/* résultat : "/home/xxx/.weechat/test" */
/* ... */
free (str);
@@ -988,7 +988,7 @@ Script (Python) :
path = weechat.string_eval_path_home(path, pointers, extra_vars, options)
# exemple
path = weechat.string_eval_path_home("%h/test", "", "", "")
path = weechat.string_eval_path_home("%h/test", {}, {}, {})
# path == "/home/xxx/.weechat/test"
----
+1
View File
@@ -20,6 +20,7 @@
docdir = $(datadir)/doc/$(PACKAGE)
EXTRA_DIST = CMakeLists.txt \
docinfo.html \
weechat.1.it.adoc \
cmdline_options.it.adoc \
weechat_user.it.adoc \
+2 -2
View File
@@ -1006,7 +1006,7 @@ Esempio in C:
[source,C]
----
char *str = weechat_string_expand_home ("%h/test");
char *str = weechat_string_eval_path_home ("%h/test", NULL, NULL, NULL);
/* result: "/home/xxx/.weechat/test" */
/* ... */
free (str);
@@ -1020,7 +1020,7 @@ Script (Python):
path = weechat.string_eval_path_home(path, pointers, extra_vars, options)
# esempio
path = weechat.string_eval_path_home("%h/test", "", "", "")
path = weechat.string_eval_path_home("%h/test", {}, {}, {})
# path == "/home/xxx/.weechat/test"
----
+1
View File
@@ -20,6 +20,7 @@
docdir = $(datadir)/doc/$(PACKAGE)
EXTRA_DIST = CMakeLists.txt \
docinfo.html \
weechat.1.ja.adoc \
cmdline_options.ja.adoc \
weechat_user.ja.adoc \
+53 -53
View File
@@ -418,60 +418,60 @@ value: 表示する履歴エントリの数
----
/input <action> [<arguments>]
list of actions:
return: simulate key "enter"
complete_next: complete word with next completion
complete_previous: complete word with previous completion
search_text_here: search text in buffer at current position
search_text: search text in buffer
search_switch_case: switch exact case for search
search_switch_regex: switch search type: string/regular expression
search_switch_where: switch search in messages/prefixes
search_previous: search previous line
search_next: search next line
search_stop_here: stop search at current position
search_stop: stop search
delete_previous_char: delete previous char
delete_next_char: delete next char
delete_previous_word: delete previous word
delete_next_word: delete next word
delete_beginning_of_line: delete from beginning of line until cursor
delete_end_of_line: delete from cursor until end of line
delete_line: delete entire line
clipboard_paste: paste from the internal clipboard
transpose_chars: transpose two chars
undo: undo last command line action
redo: redo last command line action
move_beginning_of_line: move cursor to beginning of line
move_end_of_line: move cursor to end of line
move_previous_char: move cursor to previous char
move_next_char: move cursor to next char
move_previous_word: move cursor to previous word
move_next_word: move cursor to next word
history_previous: recall previous command in current buffer history
history_next: recall next command in current buffer history
history_global_previous: recall previous command in global history
history_global_next: recall next command in global history
jump_smart: jump to next buffer with activity
jump_last_buffer_displayed: jump to last buffer displayed (before last jump to a buffer)
jump_previously_visited_buffer: jump to previously visited buffer
jump_next_visited_buffer: jump to next visited buffer
hotlist_clear: clear hotlist (optional argument: "lowest" to clear only lowest level in hotlist, "highest" to clear only highest level in hotlist, or level mask: integer which is a combination of 1=join/part, 2=message, 4=private, 8=highlight)
grab_key: grab a key (optional argument: delay for end of grab, default is 500 milliseconds)
grab_key_command: grab a key with its associated command (optional argument: delay for end of grab, default is 500 milliseconds)
grab_mouse: grab mouse event code
grab_mouse_area: grab mouse event code with area
set_unread: set unread marker for all buffers
set_unread_current_buffer: set unread marker for current buffer
switch_active_buffer: switch to next merged buffer
switch_active_buffer_previous: switch to previous merged buffer
zoom_merged_buffer: zoom on merged buffer
insert: insert text in command line (escaped chars are allowed, see /help print)
send: send text to the buffer
paste_start: start paste (bracketed paste mode)
paste_stop: stop paste (bracketed paste mode)
アクションリスト:
return: "enter" キーをシミュレート
complete_next: 次の補完候補で単語を補完
complete_previous: 一つ前の補完候補で単語を補完
search_text_here: 現在の位置でテキストを検索
search_text: バッファ内のテキストを検索
search_switch_case: 完全一致検索に変更
search_switch_regex: 検索タイプの切り替え: 文字列/正規表現
search_switch_where: 検索範囲の切り替え: メッセージ/プレフィックス
search_previous: 一つ前の行を検索
search_next: 次の行を検索
search_stop_here: 現在の位置で検索を終了
search_stop: 検索を終了
delete_previous_char: 一つ前の文字を削除
delete_next_char: 次の文字を削除
delete_previous_word: 一つ前の単語を削除
delete_next_word: 次の単語を削除
delete_beginning_of_line: 行の最初からカーソル位置までを削除
delete_end_of_line: カーソルから行の最後までを削除
delete_line: 行を削除
clipboard_paste: WeeChat 専用の内部クリップボードの内容をペースト
transpose_chars: 2 つの文字を入れ替え
undo: 最新のコマンドラインアクションまで元に戻す
redo: 最新のコマンドラインアクションまでやり直す
move_beginning_of_line: カーソルを行頭に移動
move_end_of_line: カーソルを行末まで移動
move_previous_char: カーソルを一つ前の文字に移動
move_next_char: カーソルを次の文字に移動
move_previous_word: カーソルを一つ前の単語に移動
move_next_word: カーソルを次の単語に移動
history_previous: 現在のバッファ履歴のひとつ前のコマンドを再呼び出し
history_next: 現在のバッファ履歴の次のコマンドを再呼び出し
history_global_previous: グローバル履歴の一つ前のコマンドを再呼び出し
history_global_next: グローバル履歴の次のコマンドを再呼び出し
jump_smart: 次のアクティブバッファに飛ぶ
jump_last_buffer_displayed: 表示されている最後のバッファに移動 (最新のバッファ移動の一つ前に表示されていたバッファ)
jump_previously_visited_buffer: 一つ前に訪れたバッファに移動
jump_next_visited_buffer: 次に訪れたバッファに移動
hotlist_clear: ホットリストを消去 (オプション引数: "lowest" はホットリスト内の最も低いレベルだけを消去。"highest" はホットリスト内の最も高いレベルだけを消去。レベルマスクは 1 (参加/退出)、2 (メッセージ)、4 (プライベートメッセージ)、8 (ハイライト) を合計した整数値で指定したレベルを消去)
grab_key: キーを横取り (任意引数: 最後の横取りからの遅延時間、デフォルトは 500 ミリ秒)
grab_key_command: あるコマンドに関連してキーを横取り (任意引数: 最後の横取りからの遅延時間、デフォルトは 500 ミリ秒)
grab_mouse: grab マウスイベントコードを横取り
grab_mouse_area: 範囲指定のマウスイベントコードを横取り
set_unread: 全てのバッファに対して未読マーカーを設定
set_unread_current_buffer: 現在のバッファに対して未読マーカーを設定
switch_active_buffer: 次のマージされたバッファに移動
switch_active_buffer_previous: 一つ前のマージされたバッファに移動
zoom_merged_buffer: マージされたバッファにズーム
insert: コマンドラインにテキストを挿入 (エスケープ文字も可、/help print を参照)
send: バッファにテキストを送信
paste_start: ペーストの開始 (括弧付きペーストモード)
paste_stop: ペーストの終了 (括弧付きペーストモード)
This command is used by key bindings or plugins.
これらのコマンドはキーバインドかプラグインで利用できます。
----
[[command_weechat_key]]
+6 -9
View File
@@ -195,13 +195,11 @@ _buffers.pl_ スクリプトを使ってください:
/set weechat.bar.buffers.position bottom
----
// TRANSLATION MISSING
To scroll the bar: if mouse is enabled (key: kbd:[Alt+m]), you can scroll the
bar with your mouse wheel.
バーをスクロールするには: マウスが有効化されているならば
(キー: kbd:[Alt+m])、マウスホイールでバーをスクロールできます。
// TRANSLATION MISSING
Or you can define keys, similar to the existing keys to scroll nicklist.
For example to use kbd:[F1], kbd:[F2], kbd:[Alt+F1] and kbd:[Alt+F2]:
スクロール機能を果たすキーが割り当てられているならば、それらを使ってスクロールすることも可能です。以下ではニックネームリストをスクロールする既存のキーに合わせて
kbd:[F1]、kbd:[F2]、kbd:[Alt+F1]、kbd:[Alt+F2] を定義しています:
----
/key bind meta-OP /bar scroll buffers * -100%
@@ -212,7 +210,7 @@ For example to use kbd:[F1], kbd:[F2], kbd:[Alt+F1] and kbd:[Alt+F2]:
[NOTE]
"meta-OP" と "meta-OQ" キーは端末によって異なります。キーコードを見つけるには
kbd:[Alt+k] の後にキー を押してください。
kbd:[Alt+k] の後にキーを押してください。
[[customize_prefix]]
=== どうすればチャットエリア内のニックネームの最大長さを短く、又はニックネーム整列機能を無効化できますか。
@@ -802,8 +800,7 @@ OpenBSD では、プラグインファイル名の末尾が ".so.0.0" です (Li
* "nicklist" バーを非表示にする: `/bar hide nicklist`
* ステータスバー時間に秒の表示を止める:
`/set weechat.look.item_time_format "%H:%M"` (これはデフォルト値です)
// TRANSLATION MISSING
* disable real time check of misspelled words in command line (if you enabled it):
* コマンドライン内の単語スペルミスのリアルタイムチェックを無効にする (有効にしていた場合):
`/set aspell.check.real_time off`
* _TZ_ 変数を設定する (例: `export TZ="Europe/Paris"`)、こうすることで
_/etc/localtime_ ファイルへ頻繁にアクセスしないようになります。
+2 -2
View File
@@ -968,7 +968,7 @@ C 言語での使用例:
[source,C]
----
char *str = weechat_string_expand_home ("%h/test");
char *str = weechat_string_eval_path_home ("%h/test", NULL, NULL, NULL);
/* result: "/home/xxx/.weechat/test" */
/* ... */
free (str);
@@ -982,7 +982,7 @@ free (str);
path = weechat.string_eval_path_home(path, pointers, extra_vars, options)
# 例
path = weechat.string_eval_path_home("%h/test", "", "", "")
path = weechat.string_eval_path_home("%h/test", {}, {}, {})
# path == "/home/xxx/.weechat/test"
----
+5 -10
View File
@@ -1064,16 +1064,12 @@ irc サーバ "freenode" に含まれる全てのバッファに対して設定
kbd:[Ctrl+d] | コマンドラインで次の文字を削除 | `/input delete_next_char`
| kbd:[Backsp.] +
kbd:[Ctrl+h] | コマンドラインで前の文字を削除 | `/input delete_previous_char`
// TRANSLATION MISSING
| kbd:[Ctrl+k] | コマンドラインでカーソルより後の文字列を削除 (deleted string is copied to the internal clipboard) | `/input delete_end_of_line`
| kbd:[Ctrl+k] | コマンドラインでカーソルより後の文字列を削除 (削除された文字列は WeeChat 専用の内部クリップボードに保存) | `/input delete_end_of_line`
| kbd:[Ctrl+r] | バッファ中の履歴からテキスト検索 (<<key_bindings_search_context,検索モード用のキー>>を参照) | `/input search_text_here`
| kbd:[Ctrl+t] | 文字の入れ替え | `/input transpose_chars`
// TRANSLATION MISSING
| kbd:[Ctrl+u] | コマンドラインでカーソルより前の文字列を削除 (deleted string is copied to the internal clipboard) | `/input delete_beginning_of_line`
// TRANSLATION MISSING
| kbd:[Ctrl+w] | コマンドラインで前の単語を削除 (deleted string is copied to the internal clipboard) | `/input delete_previous_word`
// TRANSLATION MISSING
| kbd:[Ctrl+y] | Paste the internal clipboard content | `/input clipboard_paste`
| kbd:[Ctrl+u] | コマンドラインでカーソルより前の文字列を削除 (削除された文字列は WeeChat 専用の内部クリップボードに保存) | `/input delete_beginning_of_line`
| kbd:[Ctrl+w] | コマンドラインで前の単語を削除 (削除された文字列は WeeChat 専用の内部クリップボードに保存) | `/input delete_previous_word`
| kbd:[Ctrl+y] | WeeChat 専用の内部クリップボードの内容をペースト | `/input clipboard_paste`
| kbd:[Ctrl+_] | コマンドラインの最後の動作をやり直す | `/input undo`
| kbd:[Alt+_] | コマンドラインの最後の動作を取り消す | `/input redo`
| kbd:[Tab] | コマンドやニックネームを補完 (再度 kbd:[Tab] することで次の補完候補を表示) | `/input complete_next`
@@ -1085,8 +1081,7 @@ irc サーバ "freenode" に含まれる全てのバッファに対して設定
| kbd:[↓] | 次のコマンド/メッセージを呼び出す (検索モードの場合: 下方向に検索) | `/input history_next`
| kbd:[Ctrl+↑] | グローバル履歴から前のコマンド/メッセージを呼び出す (すべてのバッファに対して共通の履歴) | `/input history_global_previous`
| kbd:[Ctrl+↓] | グローバル履歴から次のコマンド/メッセージを呼び出す (すべてのバッファに対して共通の履歴) | `/input history_global_next`
// TRANSLATION MISSING
| kbd:[Alt+d] | コマンドラインで次の単語を削除 (deleted string is copied to the internal clipboard) | `/input delete_next_word`
| kbd:[Alt+d] | コマンドラインで次の単語を削除 (削除された文字列は WeeChat 専用の内部クリップボードに保存) | `/input delete_next_word`
| kbd:[Alt+k] | キー入力を奪って、コマンドラインにコード (キーが割り当てられていればコマンド) を入力 | `/input grab_key_command`
| kbd:[Alt+r] | コマンドラインへの入力をすべて削除 | `/input delete_line`
| kbd:[Alt+s] | aspell の有効無効を切り替え | `/mute aspell toggle`
+1
View File
@@ -21,6 +21,7 @@
docdir = $(datadir)/doc/$(PACKAGE)
EXTRA_DIST = CMakeLists.txt \
docinfo.html \
weechat.1.pl.adoc \
cmdline_options.pl.adoc \
weechat_user.pl.adoc \
+1 -1
View File
@@ -13,7 +13,7 @@
** wartości: nazwa koloru WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), numer koloru terminala albo alias; atrybuty dozwolone przed kolorem (tylko dla kolorów testu, nie tła): "*" pogrubienie, "!" odwrócenie, "/" pochylenie, "_" podkreślenie (domyślna wartość: `+yellow+`)
* [[option_trigger.color.flag_post_action]] *trigger.color.flag_post_action*
** opis: pass:none[text color for post action flag (in /trigger list)]
** opis: pass:none[kolor tekstu dla flagi końca akcji (w /trigger list)]
** typ: kolor
** wartości: nazwa koloru WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), numer koloru terminala albo alias; atrybuty dozwolone przed kolorem (tylko dla kolorów testu, nie tła): "*" pogrubienie, "!" odwrócenie, "/" pochylenie, "_" podkreślenie (domyślna wartość: `+lightblue+`)
+1 -2
View File
@@ -806,8 +806,7 @@ Możesz skorzystać z tych samych porad jak dla <<memory_usage,memory>>, oraz t
* schowaj pasek "nicklist": `/bar hide nicklist`
* usuń wyświetlanie sekund w czasie na pasku statusu:
`/set weechat.look.item_time_format "%H:%M"` (domyślna wartość)
// TRANSLATION MISSING
* disable real time check of misspelled words in command line (if you enabled it):
* wyłącz automatyczne sprawdzanie poprawności wpisywanych słów w linii poleceń (o ile je włączyłeś):
`/set aspell.check.real_time off`
* ustaw zmienną _TZ_ (na przykład: `export TZ="Europe/Warsaw"`), w celu zmniejszenia
częstotliwości czytania pliku _/etc/localtime_
+1
View File
@@ -20,6 +20,7 @@
docdir = $(datadir)/doc/$(PACKAGE)
EXTRA_DIST = CMakeLists.txt \
docinfo.html \
weechat.1.ru.adoc \
cmdline_options.ru.adoc \
weechat_quickstart.ru.adoc
+2 -3
View File
@@ -21,7 +21,7 @@ msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2016-09-08 21:20+0200\n"
"PO-Revision-Date: 2016-09-05 09:00+0900\n"
"PO-Revision-Date: 2016-09-23 09:00+0900\n"
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
"translation/ja_JP>\n"
@@ -1817,7 +1817,6 @@ msgstr "コマンドライン関数"
msgid "<action> [<arguments>]"
msgstr "<action> [<arguments>]"
#, fuzzy
msgid ""
"list of actions:\n"
" return: simulate key \"enter\"\n"
@@ -1901,7 +1900,7 @@ msgstr ""
" delete_beginning_of_line: 行の最初からカーソル位置までを削除\n"
" delete_end_of_line: カーソルから行の最後までを削除\n"
" delete_line: 行を削除\n"
" clipboard_paste: クリップボードからペースト\n"
" clipboard_paste: WeeChat 専用の内部クリップボードの内容をペースト\n"
" transpose_chars: 2 つの文字を入れ替え\n"
" undo: 最新のコマンドラインアクションまで元に戻す\n"
" redo: 最新のコマンドラインアクションまでやり直す\n"
+1 -2
View File
@@ -11987,9 +11987,8 @@ msgstr "kolor tekstu dla flag wyrażeń regularnych (w /trigger list)"
msgid "text color for return code flag (in /trigger list)"
msgstr "kolor tekstu dla flagi zwracanego kodu (w /trigger list)"
#, fuzzy
msgid "text color for post action flag (in /trigger list)"
msgstr "kolor tekstu dla flag akcji kończących (w /trigger list)"
msgstr "kolor tekstu dla flagi końca akcji (w /trigger list)"
msgid "text color for regular expressions"
msgstr "kolor tekstu dla wyrażeń regularnych"
+280 -278
View File
File diff suppressed because it is too large Load Diff
+14 -2
View File
@@ -378,7 +378,7 @@ string_strcasestr (const char *string, const char *search)
int
string_match (const char *string, const char *mask, int case_sensitive)
{
const char *ptr_string, *ptr_mask, *pos_word, *pos_end;
const char *ptr_string, *ptr_mask, *pos_word, *pos_word2, *pos_end;
char *word;
int wildcard, length_word;
@@ -429,7 +429,10 @@ string_match (const char *string, const char *mask, int case_sensitive)
/* check if the word is matching */
if (wildcard)
{
/* search the word anywhere in the string (from current position) */
/*
* search the word anywhere in the string (from current position),
* multiple times if needed
*/
pos_word = (case_sensitive) ?
strstr (ptr_string, word) : string_strcasestr (ptr_string, word);
if (!pos_word)
@@ -437,6 +440,15 @@ string_match (const char *string, const char *mask, int case_sensitive)
free (word);
return 0;
}
while (1)
{
pos_word2 = (case_sensitive) ?
strstr (pos_word + length_word, word) :
string_strcasestr (pos_word + length_word, word);
if (!pos_word2)
break;
pos_word = pos_word2;
}
ptr_string = pos_word + length_word;
}
else
+18
View File
@@ -322,6 +322,24 @@ TEST(String, Match)
LONGS_EQUAL(1, string_match ("test", "*es*", 1));
LONGS_EQUAL(1, string_match ("test", "*ES*", 0));
LONGS_EQUAL(0, string_match ("test", "*ES*", 1));
LONGS_EQUAL(1, string_match ("TEST", "*es*", 0));
LONGS_EQUAL(0, string_match ("TEST", "*es*", 1));
LONGS_EQUAL(0, string_match ("aaba", "*aa", 0));
LONGS_EQUAL(0, string_match ("aaba", "*aa", 1));
LONGS_EQUAL(1, string_match ("abaa", "*aa", 0));
LONGS_EQUAL(1, string_match ("abaa", "*aa", 1));
LONGS_EQUAL(1, string_match ("aabaa", "*aa", 0));
LONGS_EQUAL(1, string_match ("aabaa", "*aa", 1));
LONGS_EQUAL(1, string_match ("aabaabaabaa", "*aa", 0));
LONGS_EQUAL(1, string_match ("aabaabaabaa", "*aa", 1));
LONGS_EQUAL(0, string_match ("abaa", "aa*", 0));
LONGS_EQUAL(0, string_match ("abaa", "aa*", 1));
LONGS_EQUAL(1, string_match ("aaba", "aa*", 0));
LONGS_EQUAL(1, string_match ("aaba", "aa*", 1));
LONGS_EQUAL(1, string_match ("aabaa", "aa*", 0));
LONGS_EQUAL(1, string_match ("aabaa", "aa*", 1));
LONGS_EQUAL(1, string_match ("aabaabaabaa", "aa*", 0));
LONGS_EQUAL(1, string_match ("aabaabaabaa", "aa*", 1));
}
/*
+2 -2
View File
@@ -32,9 +32,9 @@
# devel-patch the patch version of devel (e.g. 2 for version 1.4.2)
#
WEECHAT_STABLE=1.5
WEECHAT_STABLE=1.6
WEECHAT_DEVEL=1.6
WEECHAT_DEVEL_FULL=1.6-rc2
WEECHAT_DEVEL_FULL=1.6
if [ $# -lt 1 ]; then
echo >&2 "Syntax: $0 stable|devel|devel-full|devel-major|devel-minor|devel-patch"
+3 -1
View File
@@ -23,7 +23,7 @@
#
%define name weechat
%define version 1.5
%define version 1.6
%define release 1
Name: %{name}
@@ -77,6 +77,8 @@ rm -rf $RPM_BUILD_ROOT
%{_prefix}/share/icons/hicolor/32x32/apps/weechat.png
%changelog
* Sun Oct 02 2016 Sébastien Helleu <flashcode@flashtux.org> 1.6-1
- Released version 1.6
* Sun May 01 2016 Sébastien Helleu <flashcode@flashtux.org> 1.5-1
- Released version 1.5
* Sun Jan 10 2016 Sébastien Helleu <flashcode@flashtux.org> 1.4-1