種類
- インスタンスメソッド (251)
- ライブラリ (11)
- 特異メソッド (11)
- 関数 (11)
- 定数 (11)
ライブラリ
- ビルトイン (42)
- mkmf (44)
-
net
/ http (22) -
net
/ imap (44) -
rdoc
/ generator / json _ index (11) - resolv (11)
-
rubygems
/ gem _ path _ searcher (55) -
rubygems
/ source _ index (11) -
rubygems
/ source _ info _ cache (22) - strscan (11)
クラス
- Array (20)
-
Gem
:: GemPathSearcher (55) -
Gem
:: SourceIndex (11) -
Gem
:: SourceInfoCache (22) -
Net
:: HTTP (22) -
Net
:: IMAP (44) -
RDoc
:: Generator :: JsonIndex (11) - Range (11)
-
Resolv
:: DNS (11) - String (11)
- StringScanner (11)
モジュール
- Kernel (44)
キーワード
-
SEARCH
_ INDEX _ FILE (11) - bsearch (22)
-
bsearch
_ index (9) -
check
_ signedness (22) -
convertible
_ int (22) - find (11)
-
find
_ all (11) -
lib
_ dirs _ for (11) -
matching
_ file? (11) -
matching
_ files (11) - new (11)
- post (22)
-
rubygems
/ commands / search _ command (11) -
search
_ full (11) -
search
_ method (11) -
search
_ with _ source (11) - thread (11)
-
tr
_ s! (11) -
uid
_ search (11) -
uid
_ thread (11)
検索結果
先頭5件
- RDoc
:: Generator :: JsonIndex :: SEARCH _ INDEX _ FILE -> String - Net
:: IMAP # search(keys , charset = nil) -> [Integer] - Gem
:: SourceInfoCache # search(pattern , platform _ only = false , all = false) -> [Gem :: Specification] - Gem
:: SourceIndex # search(gem _ pattern , platform _ only = false) -> [Gem :: Specification] - Gem
:: GemPathSearcher # matching _ files(spec , path) -> [String]
-
RDoc
:: Generator :: JsonIndex :: SEARCH _ INDEX _ FILE -> String (21401.0) -
検索インデックスのパスを表す文字列です。
検索インデックスのパスを表す文字列です。 -
Net
:: IMAP # search(keys , charset = nil) -> [Integer] (21341.0) -
SEARCH コマンドを送り、条件に合うメッセージの message sequence number を配列で返します。
...SEARCH コマンドを送り、条件に合うメッセージの message sequence number
を配列で返します。
Net::IMAP#examine もしくは Net::IMAP#select で
指定したメールボックスを検索対象とします。
検索の条件は key に文字列の1次元配列もしくは......す。
詳しくは 2060 の 6.4.4 を見てください。
例:
p imap.search(["SUBJECT", "hello"])
#=> [1, 6, 7, 8]
p imap.search(["SUBJECT", "hello", "FROM", "foo@example.com"])
#=> [6, 7]
p imap.search('SUBJECT "hello"')
#=> [1, 6, 7, 8]
@param key 検索キー(文字列の配列......もしくは文字列)
@param charset 検索に用いるcharset
@see Net::IMAP#search... -
Gem
:: SourceInfoCache # search(pattern , platform _ only = false , all = false) -> [Gem :: Specification] (21307.0) -
与えられた条件を満たす Gem::Specification のリストを返します。
...ification のリストを返します。
@param pattern 検索したい Gem を表す Gem::Dependency のインスタンスを指定します。
@param platform_only 真を指定するとプラットフォームが一致するもののみを返します。デフォルトは偽です。
@param all......真を指定するとキャッシュを更新してから検索を実行します。
@see Gem::SourceIndex#search... -
Gem
:: SourceIndex # search(gem _ pattern , platform _ only = false) -> [Gem :: Specification] (21301.0) -
引数で指定された条件を満たす Gem のリストを返します。
...満たす Gem のリストを返します。
@param gem_pattern 検索したい Gem を表す Gem::Dependency のインスタンスを指定します。
@param platform_only 真を指定するとプラットフォームが一致するもののみを返します。デフォルトは偽です。... -
Gem
:: GemPathSearcher # matching _ files(spec , path) -> [String] (15300.0) -
与えられた spec に path が含まれている場合、その path のリストを返します。
...与えられた spec に path が含まれている場合、その path のリストを返します。
@param spec Gem::Specification のインスタンスを指定します。
@param path 探索対象のパスを指定します。... -
StringScanner
# search _ full(regexp , s , f) -> object (15243.0) -
regexp で指定された正規表現とマッチするまで文字列をスキャンします。
...ンポインタを進めます。
* s が false ならばスキャンポインタを進めません。
* f が true ならばスキャン開始位置からマッチした部分の末尾までの部分文字列を返します。
* f が false ならばスキャン開始位置からマッ......く nil を返します。
このメソッドは s と f の組み合わせにより、
他のメソッドと同等の動作になります。
* search_full(regexp, true, true) は StringScanner#scan_until と同等。
* search_full(regexp, true, false) は StringScanner#skip_until と同......等。
* search_full(regexp, false, true) は StringScanner#check_until と同等。
* search_full(regexp, false, false) は StringScanner#exist? と同等。
@param regexp マッチに用いる正規表現を指定します。
@param s true ならばスキャンポインタを進めます... -
Gem
:: GemPathSearcher # find _ all(path) -> [Gem :: Specification] (15200.0) -
与えられたパスにマッチする Gem::Specification を全て返します。
...与えられたパスにマッチする Gem::Specification を全て返します。
@see Array#find_all... -
Gem
:: GemPathSearcher # lib _ dirs _ for(spec) -> String (15200.0) -
ライブラリの格納されているディレクトリを glob に使える形式で返します。
...ライブラリの格納されているディレクトリを glob に使える形式で返します。
例:
'/usr/local/lib/ruby/gems/1.8/gems/foobar-1.0/{lib,ext}'... -
Gem
:: GemPathSearcher # matching _ file?(spec , path) -> bool (15200.0) -
与えられた spec に path が含まれている場合、真を返します。 そうでない場合は偽を返します。
...与えられた spec に path が含まれている場合、真を返します。
そうでない場合は偽を返します。
@param spec Gem::Specification のインスタンスを指定します。
@param path 探索対象のパスを指定します。... -
Array
# bsearch _ index { |x| . . . } -> Integer | nil (12400.0) -
ブロックの評価結果で範囲内の各要素の判定を行い、条件を満たす値の位置を 二分探索(計算量は O(log n))で検索します。要素が見つからない場合は nil を返します。self はあらかじめソートしておく必要があります。
...O(log n))で検索します。要素が見つからない場合は nil
を返します。self はあらかじめソートしておく必要があります。
本メソッドはArray#bsearchと同様に、ブロックを評価した結果により2
つのモードで動作します。Array#bsearch......bsearch を参照してください。
//emlist[例: find-minimum モード][ruby]{
ary = [0, 4, 7, 10, 12]
ary.bsearch_index { |x| x >= 4 } # => 1
ary.bsearch_index { |x| x >= 6 } # => 2
ary.bsearch_index { |x| x >= -1 } # => 0
ary.bsearch_index { |x| x >= 100 } # => nil
//}
//emlist[例: fi......nd-any モード][ruby]{
ary = [0, 4, 7, 10, 12]
# 4 <= v < 8 になる要素の位置を検索
ary.bsearch_index { |x| 1 - x / 4 } # => 2
# 8 <= v < 10 になる要素の位置を検索
ary.bsearch_index { |x| 4 - x / 2 } # => nil
//}
@see Array#bsearch...