るりまサーチ

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

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. matrix t
  4. t61string new
  5. fiddle type_size_t

クラス

モジュール

キーワード

検索結果

<< 1 2 > >>

String#scanf(format) -> Array (9203.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...
...]]

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 (9203.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...
...]]

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::FormatSpecifier#count_space? (9103.0)

@todo

...@todo...

Scanf::FormatSpecifier#letter (9103.0)

@todo

...@todo...

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

@todo

...@todo...

絞り込み条件を変える

Scanf::FormatSpecifier#matched (9103.0)

@todo

...@todo...

Scanf::FormatSpecifier#matched_string (9103.0)

@todo

...@todo...

Scanf::FormatSpecifier#mid_match? (9103.0)

@todo

...@todo...

Scanf::FormatSpecifier#re_string (9103.0)

@todo

...@todo...

Scanf::FormatSpecifier#to_re (9103.0)

@todo

...@todo...

絞り込み条件を変える

Scanf::FormatSpecifier#to_s (9103.0)

@todo

...@todo...

Scanf::FormatSpecifier#width (9103.0)

@todo

...@todo...

Scanf::FormatString#last_match_tried (9103.0)

@todo

...@todo...

Scanf::FormatString#last_spec (9103.0)

@todo

...@todo...

Scanf::FormatString#last_spec_tried (9103.0)

@todo

...@todo...

絞り込み条件を変える

Scanf::FormatString#match(str) (9103.0)

@todo

...@todo...

Scanf::FormatString#matched_count (9103.0)

@todo

...@todo...
<< 1 2 > >>