diff --git a/doc/usr_41.jax b/doc/usr_41.jax index 059534478..d7b6a42aa 100644 --- a/doc/usr_41.jax +++ b/doc/usr_41.jax @@ -1,4 +1,4 @@ -*usr_41.txt* For Vim バージョン 9.1. Last change: 2023 May 06 +*usr_41.txt* For Vim バージョン 9.1. Last change: 2024 Jan 13 VIM USER MANUAL - by Bram Moolenaar @@ -715,10 +715,13 @@ substitute() の呼び出しの前後にいろいろな処理を入れたりす toupper() 文字列を大文字にする charclass() 文字のクラス match() 文字列の中でパターンにマッチした位置 + matchbufline() バッファ内のパターンのすべてのマッチ matchend() 文字列の中でパターンにマッチした末尾の位置 matchfuzzy() リスト内の文字列についてファジーマッチした文字列 matchfuzzypos() リスト内の文字列についてファジーマッチした文字列 matchstr() 文字列の中でパターンにマッチした文字列 + matchstrlist() 文字列のリスト内のパターンにマッチするすべての + 文字列 matchstrpos() 文字列の中でパターンにマッチした文字列と位置 matchlist() matchstr()と同様だが、部分マッチも返す stridx() 文字列の中で部分文字列が見つかった最初の位置 @@ -769,6 +772,7 @@ substitute() の呼び出しの前後にいろいろな処理を入れたりす filter() リストから選択された要素を取り除く map() リストの各要素を変換する mapnew() 変換した要素で新しいリストを作成する + foreach() リスト項目に関数を適用する reduce() リストの畳み込みの値を算出する slice() リストのスライスを取る sort() リストをソートする @@ -802,6 +806,7 @@ substitute() の呼び出しの前後にいろいろな処理を入れたりす filter() 辞書から選択された要素を取り除く map() 辞書の各要素を変換する mapnew() 変換した要素で新しい辞書を作成する + foreach() 辞書項目に関数を適用する keys() 辞書の全キーのリストを取得する values() 辞書の全値のリストを取得する items() 辞書の全キー・値のペアを取得する diff --git a/en/usr_41.txt b/en/usr_41.txt index c4f2a8c4b..0990a0651 100644 --- a/en/usr_41.txt +++ b/en/usr_41.txt @@ -1,4 +1,4 @@ -*usr_41.txt* For Vim version 9.1. Last change: 2023 May 06 +*usr_41.txt* For Vim version 9.1. Last change: 2024 Jan 13 VIM USER MANUAL - by Bram Moolenaar @@ -743,10 +743,13 @@ String manipulation: *string-functions* toupper() turn a string to uppercase charclass() class of a character match() position where a pattern matches in a string + matchbufline() all the matches of a pattern in a buffer matchend() position where a pattern match ends in a string matchfuzzy() fuzzy matches a string in a list of strings matchfuzzypos() fuzzy matches a string in a list of strings matchstr() match of a pattern in a string + matchstrlist() all the matches of a pattern in a List of + strings matchstrpos() match and positions of a pattern in a string matchlist() like matchstr() and also return submatches stridx() first index of a short string in a long string @@ -795,6 +798,7 @@ List manipulation: *list-functions* filter() remove selected items from a List map() change each List item mapnew() make a new List with changed items + foreach() apply function to List items reduce() reduce a List to a value slice() take a slice of a List sort() sort a List @@ -826,6 +830,7 @@ Dictionary manipulation: *dict-functions* filter() remove selected entries from a Dictionary map() change each Dictionary entry mapnew() make a new Dictionary with changed items + foreach() apply function to Dictionary items keys() get List of Dictionary keys values() get List of Dictionary values items() get List of Dictionary key-value pairs