108件ヒット
[1-100件を表示]
(0.016秒)
種類
- インスタンスメソッド (96)
- クラス (6)
- 定数 (6)
クラス
-
Scanf
:: FormatSpecifier (66) -
Scanf
:: FormatString (24) - String (12)
キーワード
- FormatSpecifier (6)
- SPECIFIERS (6)
- conversion (6)
-
count
_ space? (6) -
last
_ spec (6) -
last
_ spec _ tried (6) - letter (6)
- match (6)
- matched (6)
-
matched
_ string (6) -
mid
_ match? (6) -
re
_ string (6) - scanf (12)
-
spec
_ count (6) -
to
_ re (6) -
to
_ s (6) - width (6)
検索結果
先頭5件
-
Scanf
:: FormatSpecifier (12002.0) -
-
Scanf
:: FormatString # last _ spec (9103.0) -
@todo
@todo -
Scanf
:: FormatString # last _ spec _ tried (9103.0) -
@todo
@todo -
Scanf
:: FormatString # spec _ count (9103.0) -
@todo
@todo -
Scanf
:: FormatString :: SPECIFIERS (9102.0) -
@todo
@todo -
Scanf
:: FormatSpecifier # conversion (6002.0) -
@todo
@todo -
Scanf
:: FormatSpecifier # count _ space? (6002.0) -
@todo
@todo -
Scanf
:: FormatSpecifier # letter (6002.0) -
@todo
@todo -
Scanf
:: FormatSpecifier # match(str) (6002.0) -
@todo
@todo -
Scanf
:: FormatSpecifier # matched (6002.0) -
@todo
@todo -
Scanf
:: FormatSpecifier # matched _ string (6002.0) -
@todo
@todo -
Scanf
:: FormatSpecifier # mid _ match? (6002.0) -
@todo
@todo -
Scanf
:: FormatSpecifier # re _ string (6002.0) -
@todo
@todo -
Scanf
:: FormatSpecifier # to _ re (6002.0) -
@todo
@todo -
Scanf
:: FormatSpecifier # to _ s (6002.0) -
@todo
@todo -
Scanf
:: FormatSpecifier # width (6002.0) -
@todo
@todo -
String
# scanf(format) -> Array (166.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 6......%a
: %A
符号付き浮動小数点数
: %s
空白文字を含まない文字列
(幅が指定されているときは指定された文字数か空白文字の直前までの短い方)
: %c
1文字(幅が指定されているときは指定された文字数)
: [...]
d:spec/regexp#string...