132件ヒット
[1-100件を表示]
(0.091秒)
種類
- インスタンスメソッド (108)
- 定数 (12)
- 特異メソッド (6)
- モジュール (6)
ライブラリ
- scanf (132)
クラス
- IO (12)
-
Scanf
:: FormatSpecifier (12) -
Scanf
:: FormatString (78) - String (12)
モジュール
- Kernel (12)
キーワード
- REGEX (6)
- SPECIFIERS (6)
- Scanf (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) - space (6)
-
spec
_ count (6) -
string
_ left (6) -
to
_ s (6)
検索結果
先頭5件
-
String
# scanf(format) -> Array (35246.0) -
ブロックを指定しない場合、見つかった文字列を format に従って変 換し、そのオブジェクトの配列を返します。 format で指定した文字列が見つからない場合は空の配列を 生成して返します。
...列が見つからない場合は空の配列を
生成して返します。
require 'scanf'
str = "123 abc 456 def 789 ghi"
p str.scanf("%d%s") #=> [123, "abc"]
ブロックを指定した場合は scanf を継続して実行し、順次
見つかった文字列を変換したオブジェ......す。
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 スキャンするフォーマットを文字列で指定します。
詳細は、m:String#scanf#format を参照して......ください。
使用例:
require 'scanf'
str = "123 abc 456 def 789 ghi"
p str.scanf("%d%s") #=> [123, "abc"]
===[a:format] scanfフォーマット文字列
文字 '%' と(s,d のような)指示子の間に、整数を指定する事により読み込む文字列の幅を
指定する事... -
String
# scanf(format) {|*ary| . . . } -> Array (35246.0) -
ブロックを指定しない場合、見つかった文字列を format に従って変 換し、そのオブジェクトの配列を返します。 format で指定した文字列が見つからない場合は空の配列を 生成して返します。
...列が見つからない場合は空の配列を
生成して返します。
require 'scanf'
str = "123 abc 456 def 789 ghi"
p str.scanf("%d%s") #=> [123, "abc"]
ブロックを指定した場合は scanf を継続して実行し、順次
見つかった文字列を変換したオブジェ......す。
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 スキャンするフォーマットを文字列で指定します。
詳細は、m:String#scanf#format を参照して......ください。
使用例:
require 'scanf'
str = "123 abc 456 def 789 ghi"
p str.scanf("%d%s") #=> [123, "abc"]
===[a:format] scanfフォーマット文字列
文字 '%' と(s,d のような)指示子の間に、整数を指定する事により読み込む文字列の幅を
指定する事... -
Kernel
# scanf(format) -> Array (26186.0) -
STDIN.scanf と同じです。 IO#scanf、Stdin#scanfも参照してください。
...STDIN.scanf と同じです。
IO#scanf、Stdin#scanfも参照してください。
@param format スキャンするフォーマットを文字列で指定します。
詳細は、m:String#scanf#format を参照してください。
@see IO#scanf, Stdin#scanf... -
Kernel
# scanf(format) {|*ary| . . . } -> Array (26186.0) -
STDIN.scanf と同じです。 IO#scanf、Stdin#scanfも参照してください。
...STDIN.scanf と同じです。
IO#scanf、Stdin#scanfも参照してください。
@param format スキャンするフォーマットを文字列で指定します。
詳細は、m:String#scanf#format を参照してください。
@see IO#scanf, Stdin#scanf... -
IO
# scanf(format) -> Array (26152.0) -
String#scanfも参照してください。
...
String#scanfも参照してください。
@param format スキャンするフォーマットを文字列で指定します。
詳細は、m:String#scanf#format を参照してください。... -
IO
# scanf(format) {|*ary| . . . } -> Array (26152.0) -
String#scanfも参照してください。
...
String#scanfも参照してください。
@param format スキャンするフォーマットを文字列で指定します。
詳細は、m:String#scanf#format を参照してください。... -
Scanf
:: FormatString # string _ left (20117.0) -
@todo
...@todo... -
Scanf
:: FormatSpecifier # matched _ string (17117.0) -
@todo
...@todo... -
Scanf
:: FormatSpecifier # re _ string (17117.0) -
@todo
...@todo... -
Scanf (14052.0)
-
scanf ライブラリで使用する名前空間です。
...scanf ライブラリで使用する名前空間です。
@see Kernel.#scanf, String#scanf, IO#scanf, Stdin#scanf... -
Scanf
:: FormatString # last _ match _ tried (14016.0) -
@todo
...@todo... -
Scanf
:: FormatString # last _ spec (14016.0) -
@todo
...@todo... -
Scanf
:: FormatString # last _ spec _ tried (14016.0) -
@todo
...@todo... -
Scanf
:: FormatString # match(str) (14016.0) -
@todo
...@todo... -
Scanf
:: FormatString # matched _ count (14016.0) -
@todo
...@todo... -
Scanf
:: FormatString # prune(n=matched _ count) (14016.0) -
@todo
...@todo... -
Scanf
:: FormatString # space (14016.0) -
@todo
...@todo...