ライブラリ
- ビルトイン (84)
- mkmf (44)
-
net
/ http (22) -
net
/ imap (66) -
rdoc
/ generator / json _ index (11) -
rubygems
/ commands / dependency _ command (11) -
rubygems
/ gem _ path _ searcher (66) -
rubygems
/ source _ index (11) -
rubygems
/ source _ info _ cache (22) - strscan (11)
クラス
- Array (40)
-
Encoding
:: Converter (11) -
Gem
:: Commands :: DependencyCommand (11) -
Gem
:: GemPathSearcher (66) -
Gem
:: SourceIndex (11) -
Gem
:: SourceInfoCache (22) -
Net
:: HTTP (22) -
Net
:: IMAP (66) -
RDoc
:: Generator :: JsonIndex (11) - Range (22)
- String (11)
- StringScanner (11)
モジュール
- Kernel (44)
キーワード
- bsearch (44)
-
bsearch
_ index (18) -
check
_ signedness (22) -
convertible
_ int (22) - convpath (11)
- find (11)
-
find
_ all (11) -
find
_ gems (11) - generate (11)
-
init
_ gemspecs (11) -
lib
_ dirs _ for (11) -
matching
_ file? (11) -
matching
_ files (11) - post (22)
-
search
_ full (11) -
search
_ with _ source (11) - sort (11)
- thread (11)
-
tr
_ s! (11) -
uid
_ search (11) -
uid
_ sort (11) -
uid
_ thread (11)
検索結果
先頭5件
- 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] - Array
# bsearch _ index -> Enumerator - Array
# bsearch _ index { |x| . . . } -> Integer | nil
-
Net
:: IMAP # search(keys , charset = nil) -> [Integer] (27442.0) -
SEARCH コマンドを送り、条件に合うメッセージの message sequence number を配列で返します。
...SEARCH コマンドを送り、条件に合うメッセージの message sequence number
を配列で返します。
Net::IMAP#examine もしくは Net::IMAP#select で
指定したメールボックスを検索対象とします。
検索の条件は key に文字列の1次元配列もしくは......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] (27308.0) -
与えられた条件を満たす Gem::Specification のリストを返します。
...fication のリストを返します。
@param pattern 検索したい Gem を表す Gem::Dependency のインスタンスを指定します。
@param platform_only 真を指定するとプラットフォームが一致するもののみを返します。デフォルトは偽です。
@param all......真を指定するとキャッシュを更新してから検索を実行します。
@see Gem::SourceIndex#search... -
Gem
:: SourceIndex # search(gem _ pattern , platform _ only = false) -> [Gem :: Specification] (27302.0) -
引数で指定された条件を満たす Gem のリストを返します。
...引数で指定された条件を満たす Gem のリストを返します。
@param gem_pattern 検索したい Gem を表す Gem::Dependency のインスタンスを指定します。
@param platform_only 真を指定するとプラットフォームが一致するもののみを返します。... -
Array
# bsearch _ index -> Enumerator (21317.0) -
ブロックの評価結果で範囲内の各要素の判定を行い、条件を満たす値の位置を 二分探索(計算量は O(log n))で検索します。要素が見つからない場合は nil を返します。self はあらかじめソートしておく必要があります。
...(log n))で検索します。要素が見つからない場合は nil
を返します。self はあらかじめソートしておく必要があります。
本メソッドはArray#bsearchと同様に、ブロックを評価した結果により2
つのモードで動作します。Array#bsearch......いては
Array#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[例: find-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... -
Array
# bsearch _ index { |x| . . . } -> Integer | nil (21317.0) -
ブロックの評価結果で範囲内の各要素の判定を行い、条件を満たす値の位置を 二分探索(計算量は O(log n))で検索します。要素が見つからない場合は nil を返します。self はあらかじめソートしておく必要があります。
...(log n))で検索します。要素が見つからない場合は nil
を返します。self はあらかじめソートしておく必要があります。
本メソッドはArray#bsearchと同様に、ブロックを評価した結果により2
つのモードで動作します。Array#bsearch......いては
Array#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[例: find-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... -
Gem
:: Commands :: DependencyCommand # find _ gems(name , source _ index) -> Hash (21307.0) -
与えられた Gem の名前をインデックスから検索します。
...与えられた Gem の名前をインデックスから検索します。
@param name Gem の名前を指定します。
@param source_index Gem::SourceIndex のインスタンスを指定します。
@see Gem::SourceIndex#search... -
Gem
:: GemPathSearcher # matching _ files(spec , path) -> [String] (18401.0) -
与えられた spec に path が含まれている場合、その path のリストを返します。
...与えられた spec に path が含まれている場合、その path のリストを返します。
@param spec Gem::Specification のインスタンスを指定します。
@param path 探索対象のパスを指定します。... -
Gem
:: GemPathSearcher # matching _ file?(spec , path) -> bool (18301.0) -
与えられた spec に path が含まれている場合、真を返します。 そうでない場合は偽を返します。
...与えられた spec に path が含まれている場合、真を返します。
そうでない場合は偽を返します。
@param spec Gem::Specification のインスタンスを指定します。
@param path 探索対象のパスを指定します。... -
RDoc
:: Generator :: JsonIndex # generate -> () (18217.0) -
解析した情報を RDoc::Generator::JsonIndex::SEARCH_INDEX_FILE に出 力します。
...解析した情報を RDoc::Generator::JsonIndex::SEARCH_INDEX_FILE に出
力します。... -
Kernel
# check _ signedness(type , headers = nil , opts = nil) -> "signed" | "unsigned" | nil (15565.0) -
Returns the signedness of the given +type+. You may optionally specify additional +headers+ to search in for the +type+. If the +type+ is found and is a numeric type, a macro is passed as a preprocessor constant to the compiler using the +type+ name, in uppercase, prepended with 'SIGNEDNESS_OF_', followed by the +type+ name, followed by '=X' where 'X' is positive integer if the +type+ is unsigned, or negative integer if the +type+ is signed. For example, if size_t is defined as unsigned, then check_signedness('size_t') would returned +1 and the SIGNEDNESS_OF_SIZE_T=+1 preprocessor macro would be passed to the compiler, and SIGNEDNESS_OF_INT=-1 if check_signedness('int') is done.
...Returns the signedness of the given +type+. You may optionally
specify additional +headers+ to search in for the +type+.
If the +type+ is found and is a numeric type, a macro is passed as a
preprocessor constant to the compiler using the +type+ name, in
uppercase, prepended with 'SIGNEDNESS_O......ype+
name, followed by '=X' where 'X' is positive integer if the +type+ is
unsigned, or negative integer if the +type+ is signed.
For example, if size_t is defined as unsigned, then
check_signedness('size_t') would returned +1 and the
SIGNEDNESS_OF_SIZE_T=+1 preprocessor macro would be passed......to the
compiler, and SIGNEDNESS_OF_INT=-1 if check_signedness('int') is
done....