るりまサーチ (Ruby 2.4.0)

最速Rubyリファレンスマニュアル検索!
16件ヒット [1-16件を表示] (0.180秒)
トップページ > バージョン:2.4.0[x] > クエリ:@[x] > クエリ:E[x] > クエリ:tr[x] > クエリ:scanf[x]

別のキーワード

  1. open3 popen2e
  2. socket af_e164
  3. matrix rank_e
  4. matrix det_e
  5. open3 capture2e

ライブラリ

キーワード

検索結果

String#scanf(format) -> Array (87739.0)

ブロックを指定しない場合、見つかった文字列を format に従って変 換し、そのオブジェクトの配列を返します。 format で指定した文字列が見つからない場合は空の配列を 生成して返します。

ブロックを指定しない場合、見つかった文字列を format に従って変
換し、そのオブジェクトの配列を返します。
format で指定した文字列が見つからない場合は空の配列を
生成して返します。

require 'scanf'
str = "123 abc 456 def 789 ghi"
p str.scanf("%d%s") #=> [123, "abc"]

ブロックを指定した場合は scanf を継続して実行し、順次
見つかった文字列を変換したオブジェクトの配列を引数に、ブロックを
実行します。このとき、ブロックの実行結果を要素とする配列を返します。

requir...

String#scanf(format) {|*ary| ...} -> Array (87739.0)

ブロックを指定しない場合、見つかった文字列を format に従って変 換し、そのオブジェクトの配列を返します。 format で指定した文字列が見つからない場合は空の配列を 生成して返します。

ブロックを指定しない場合、見つかった文字列を format に従って変
換し、そのオブジェクトの配列を返します。
format で指定した文字列が見つからない場合は空の配列を
生成して返します。

require 'scanf'
str = "123 abc 456 def 789 ghi"
p str.scanf("%d%s") #=> [123, "abc"]

ブロックを指定した場合は scanf を継続して実行し、順次
見つかった文字列を変換したオブジェクトの配列を引数に、ブロックを
実行します。このとき、ブロックの実行結果を要素とする配列を返します。

requir...

Scanf::FormatString#last_match_tried (78649.0)

@todo

@todo

Scanf::FormatString#last_spec_tried (78649.0)

@todo

@todo

Scanf::FormatString#string_left (78649.0)

@todo

@todo

絞り込み条件を変える

Scanf::FormatSpecifier#matched_string (69649.0)

@todo

@todo

Scanf::FormatSpecifier#re_string (69649.0)

@todo

@todo

Scanf::FormatString.new(str) (60649.0)

@todo

@todo

Scanf::FormatString#last_spec (60349.0)

@todo

@todo

Scanf::FormatString#matched_count (60349.0)

@todo

@todo

絞り込み条件を変える

Scanf::FormatString#prune(n=matched_count) (60349.0)

@todo

@todo

Scanf::FormatString#space (60349.0)

@todo

@todo

Scanf::FormatString#spec_count (60349.0)

@todo

@todo

Scanf::FormatString::REGEX (60349.0)

@todo

@todo

Scanf::FormatString::SPECIFIERS (60349.0)

@todo

@todo

絞り込み条件を変える

Scanf::FormatSpecifier#match(str) (42349.0)

@todo

@todo