るりまサーチ

最速Rubyリファレンスマニュアル検索!
60件ヒット [1-60件を表示] (0.151秒)

別のキーワード

  1. etc sc_xopen_enh_i18n
  2. rsa n
  3. rsa n=
  4. openssl n
  5. openssl n=

検索結果

Scanf::FormatSpecifier#matched_string (18303.0)

@todo

...@todo...

Scanf::FormatString#matched_count (18303.0)

@todo

...@todo...

Scanf::FormatSpecifier#matched (15203.0)

@todo

...@todo...

Scanf::FormatSpecifier#mid_match? (15203.0)

@todo

...@todo...

Scanf::FormatString#last_match_tried (15203.0)

@todo

...@todo...

絞り込み条件を変える

Scanf::FormatString#last_spec_tried (15203.0)

@todo

...@todo...

String#scanf(format) -> Array (12383.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.scan...
...%d%x"){|n, s| [n, s]}
#=> [[123, 69], [678, 144]]

formatに完全にマッチしていなくても、部分的にマッチしていれば、
ブロックは実行されます。

require 'scanf'
str = "123 abc 456 def"
ret = str.scanf("%s%d") { |s, n| [s, n] }
p ret #=> [["123", nil], ["a...

String#scanf(format) {|*ary| ...} -> Array (12383.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.scan...
...%d%x"){|n, s| [n, s]}
#=> [[123, 69], [678, 144]]

formatに完全にマッチしていなくても、部分的にマッチしていれば、
ブロックは実行されます。

require 'scanf'
str = "123 abc 456 def"
ret = str.scanf("%s%d") { |s, n| [s, n] }
p ret #=> [["123", nil], ["a...

Scanf::FormatSpecifier#width (12103.0)

@todo

...@todo...

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

@todo

...@todo...

絞り込み条件を変える