108件ヒット
[1-100件を表示]
(0.092秒)
種類
- インスタンスメソッド (84)
- 定数 (12)
- 特異メソッド (6)
- クラス (6)
クラス
-
Scanf
:: FormatSpecifier (12) -
Scanf
:: FormatString (78) - String (12)
キーワード
- FormatString (6)
- REGEX (6)
- SPECIFIERS (6)
-
last
_ match _ tried (6) -
last
_ spec (6) -
last
_ spec _ tried (6) - match (6)
-
matched
_ count (6) -
matched
_ string (6) - new (6)
- prune (6)
-
re
_ string (6) - scanf (12)
- space (6)
-
spec
_ count (6) -
string
_ left (6) -
to
_ s (6)
検索結果
先頭5件
-
String
# scanf(format) -> Array (24014.0) -
ブロックを指定しない場合、見つかった文字列を format に従って変 換し、そのオブジェクトの配列を返します。 format で指定した文字列が見つからない場合は空の配列を 生成して返します。
...かった文字列を format に従って変
換し、そのオブジェクトの配列を返します。
format で指定した文字列が見つからない場合は空の配列を
生成して返します。
require 'scanf'
str = "123 abc 456 def 789 ghi"
p str.scanf("%d%s") #=> [123, "abc......は scanf を継続して実行し、順次
見つかった文字列を変換したオブジェクトの配列を引数に、ブロックを
実行します。このとき、ブロックの実行結果を要素とする配列を返します。
require 'scanf'
str = "123 0x45 678 0x90"
p str.s......144]]
formatに完全にマッチしていなくても、部分的にマッチしていれば、
ブロックは実行されます。
require 'scanf'
str = "123 abc 456 def"
ret = str.scanf("%s%d") { |s, n| [s, n] }
p ret #=> [["123", nil], ["abc", 456], ["def", nil]]
@param format ス... -
String
# scanf(format) {|*ary| . . . } -> Array (24014.0) -
ブロックを指定しない場合、見つかった文字列を format に従って変 換し、そのオブジェクトの配列を返します。 format で指定した文字列が見つからない場合は空の配列を 生成して返します。
...かった文字列を format に従って変
換し、そのオブジェクトの配列を返します。
format で指定した文字列が見つからない場合は空の配列を
生成して返します。
require 'scanf'
str = "123 abc 456 def 789 ghi"
p str.scanf("%d%s") #=> [123, "abc......は scanf を継続して実行し、順次
見つかった文字列を変換したオブジェクトの配列を引数に、ブロックを
実行します。このとき、ブロックの実行結果を要素とする配列を返します。
require 'scanf'
str = "123 0x45 678 0x90"
p str.s......144]]
formatに完全にマッチしていなくても、部分的にマッチしていれば、
ブロックは実行されます。
require 'scanf'
str = "123 abc 456 def"
ret = str.scanf("%s%d") { |s, n| [s, n] }
p ret #=> [["123", nil], ["abc", 456], ["def", nil]]
@param format ス... -
Scanf
:: FormatString # string _ left (18203.0) -
@todo
@todo -
Scanf
:: FormatSpecifier # matched _ string (12203.0) -
@todo
@todo -
Scanf
:: FormatSpecifier # re _ string (12203.0) -
@todo
@todo -
Scanf
:: FormatString # last _ match _ tried (12102.0) -
@todo
@todo -
Scanf
:: FormatString # last _ spec _ tried (12102.0) -
@todo
@todo -
Scanf
:: FormatString (12002.0) -
-
Scanf
:: FormatString # match(str) (6102.0) -
@todo
@todo -
Scanf
:: FormatString . new(str) (6102.0) -
@todo
@todo -
Scanf
:: FormatString # last _ spec (6002.0) -
@todo
@todo -
Scanf
:: FormatString # matched _ count (6002.0) -
@todo
@todo -
Scanf
:: FormatString # prune(n=matched _ count) (6002.0) -
@todo
@todo -
Scanf
:: FormatString # space (6002.0) -
@todo
@todo -
Scanf
:: FormatString # spec _ count (6002.0) -
@todo
@todo -
Scanf
:: FormatString # to _ s (6002.0) -
@todo
@todo -
Scanf
:: FormatString :: REGEX (6002.0) -
@todo
@todo