別のキーワード
ライブラリ
- ビルトイン (92)
- mkmf (24)
-
net
/ http (24) -
net
/ imap (72) -
rdoc
/ generator / json _ index (12) -
rubygems
/ commands / dependency _ command (12) -
rubygems
/ gem _ path _ searcher (72) -
rubygems
/ source _ index (12) -
rubygems
/ source _ info _ cache (24) - strscan (12)
- uri (12)
クラス
- Array (44)
-
Encoding
:: Converter (12) -
Gem
:: Commands :: DependencyCommand (12) -
Gem
:: GemPathSearcher (72) -
Gem
:: SourceIndex (12) -
Gem
:: SourceInfoCache (24) -
Net
:: HTTP (24) -
Net
:: IMAP (72) -
RDoc
:: Generator :: JsonIndex (12) - Range (24)
- String (12)
- StringScanner (12)
-
URI
:: HTTP (12)
モジュール
- Kernel (24)
キーワード
- bsearch (48)
-
bsearch
_ index (20) -
check
_ signedness (24) - convpath (12)
- find (12)
-
find
_ all (12) -
find
_ gems (12) - generate (12)
-
init
_ gemspecs (12) -
lib
_ dirs _ for (12) -
matching
_ file? (12) -
matching
_ files (12) - post (24)
-
request
_ uri (12) -
search
_ full (12) -
search
_ with _ source (12) - sort (12)
- thread (12)
-
tr
_ s! (12) -
uid
_ search (12) -
uid
_ sort (12) -
uid
_ thread (12)
検索結果
先頭5件
-
Kernel
# check _ signedness(type , headers = nil , opts = nil) { . . . } -> "signed" | "unsigned" | nil (117.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... -
RDoc
:: Generator :: JsonIndex # generate -> () (117.0) -
解析した情報を RDoc::Generator::JsonIndex::SEARCH_INDEX_FILE に出 力します。
...解析した情報を RDoc::Generator::JsonIndex::SEARCH_INDEX_FILE に出
力します。... -
URI
:: HTTP # request _ uri -> String (113.0) -
自身の「path + '?' + query」を文字列で返します。 query が nil である場合は、自身の path を返します。
...す。
query が nil である場合は、自身の path を返します。
path が空である場合には、path は「'/'」であるとします。
例:
require 'uri'
u = URI.parse("http://example.com/search?q=xxx")
p u.request_uri #=> "/search?q=xxx"... -
Encoding
:: Converter # convpath -> Array (107.0) -
変換器が行う変換の経路を配列にして返します。
...う変換の経路の配列
//emlist[][ruby]{
ec = Encoding::Converter.new("ISo-8859-1", "EUC-JP", crlf_newline: true)
p ec.convpath
#=> [[#<Encoding:ISO-8859-1>, #<Encoding:UTF-8>],
# [#<Encoding:UTF-8>, #<Encoding:EUC-JP>],
# "crlf_newline"]
//}
@see Encoding::Converter.search_convpath... -
Gem
:: Commands :: DependencyCommand # find _ gems(name , source _ index) -> Hash (107.0) -
与えられた Gem の名前をインデックスから検索します。
...与えられた Gem の名前をインデックスから検索します。
@param name Gem の名前を指定します。
@param source_index Gem::SourceIndex のインスタンスを指定します。
@see Gem::SourceIndex#search... -
String
# tr _ s!(pattern , replace) -> self | nil (107.0) -
文字列の中に pattern 文字列に含まれる文字が存在したら、 replace 文字列の対応する文字に置き換えます。さらに、 置換した部分内に同一の文字の並びがあったらそれを 1 文字に圧縮します。
...の対象になります。
replace でも「-」を使って範囲を指定できます。
//emlist[][ruby]{
p "gooooogle".tr_s("a-z", "A-Z") # => "GOGLE"
//}
「-」は文字列の両端にない場合にだけ範囲指定の意味になります。
同様に、「^」もその効果は文字......だけです。
また、「-」、「^」、「\」はバックスラッシュ (「\」) でエスケープできます。
replace の範囲が search の範囲よりも小さい場合、
replace の最後の文字が無限に続くものとして扱われます。
tr_s は置換後の文字列......以下のコードを参照してください。
//emlist[例][ruby]{
str = "foo"
str.tr_s!("o", "f")
p str # => "ff"
str = "foo"
str.tr!("o", "f")
str.squeeze!("f")
p str # => "f"
//}
@param pattern 置き換える文字のパターン
@param replace pattern で指定した文字を...