23件ヒット
[1-23件を表示]
(0.021秒)
種類
- インスタンスメソッド (18)
- 定数 (2)
- クラス (1)
- 特異メソッド (1)
- モジュール (1)
クラス
- IO (2)
-
Scanf
:: FormatSpecifier (2) -
Scanf
:: FormatString (13) - String (2)
モジュール
- Kernel (2)
キーワード
- FormatString (1)
- REGEX (1)
- SPECIFIERS (1)
- Scanf (1)
-
last
_ match _ tried (1) -
last
_ spec (1) -
last
_ spec _ tried (1) - match (1)
-
matched
_ count (1) -
matched
_ string (1) - new (1)
- prune (1)
-
re
_ string (1) - scanf (6)
- space (1)
-
spec
_ count (1) -
string
_ left (1) -
to
_ s (1)
検索結果
先頭5件
-
String
# scanf(format) -> Array (63043.0) -
ブロックを指定しない場合、見つかった文字列を format に従って変 換し、そのオブジェクトの配列を返します。 format で指定した文字列が見つからない場合は空の配列を 生成して返します。
...列が見つからない場合は空の配列を
生成して返します。
require 'scanf'
str = "123 abc 456 def 789 ghi"
p str.scanf("%d%s") #=> [123, "abc"]
ブロックを指定した場合は scanf を継続して実行し、順次
見つかった文字列を変換したオブジェ......re 'scanf'
str = "123 0x45 678 0x90"
p str.scanf("%d%x"){|n, s| [n, s]}
#=> [[123, 69], [678, 144]]
formatに完全にマッチしていなくても、部分的にマッチしていれば、
ブロックは実行されます。
require 'scanf'
str = "123 abc 456 def"
ret = str.scanf("%......文字列で指定します。
詳細は、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 (63043.0) -
ブロックを指定しない場合、見つかった文字列を format に従って変 換し、そのオブジェクトの配列を返します。 format で指定した文字列が見つからない場合は空の配列を 生成して返します。
...列が見つからない場合は空の配列を
生成して返します。
require 'scanf'
str = "123 abc 456 def 789 ghi"
p str.scanf("%d%s") #=> [123, "abc"]
ブロックを指定した場合は scanf を継続して実行し、順次
見つかった文字列を変換したオブジェ......re 'scanf'
str = "123 0x45 678 0x90"
p str.scanf("%d%x"){|n, s| [n, s]}
#=> [[123, 69], [678, 144]]
formatに完全にマッチしていなくても、部分的にマッチしていれば、
ブロックは実行されます。
require 'scanf'
str = "123 abc 456 def"
ret = str.scanf("%......文字列で指定します。
詳細は、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 のような)指示... -
Scanf
:: FormatString # string _ left (27310.0) -
@todo
@todo -
Scanf
:: FormatSpecifier # matched _ string (18310.0) -
@todo
@todo -
Scanf
:: FormatSpecifier # re _ string (18310.0) -
@todo
@todo -
Scanf
:: FormatString (18007.0) -
-
Scanf
:: FormatString # last _ match _ tried (9007.0) -
@todo
@todo -
Scanf
:: FormatString # last _ spec (9007.0) -
@todo
@todo -
Scanf
:: FormatString # last _ spec _ tried (9007.0) -
@todo
@todo -
Scanf
:: FormatString # match(str) (9007.0) -
@todo
@todo -
Scanf
:: FormatString # matched _ count (9007.0) -
@todo
@todo -
Scanf
:: FormatString # prune(n=matched _ count) (9007.0) -
@todo
@todo -
Scanf
:: FormatString # space (9007.0) -
@todo
@todo -
Scanf
:: FormatString # spec _ count (9007.0) -
@todo
@todo -
Scanf
:: FormatString # to _ s (9007.0) -
@todo
@todo -
Scanf
:: FormatString . new(str) (9007.0) -
@todo
@todo -
Scanf
:: FormatString :: REGEX (9007.0) -
@todo
@todo -
Scanf
:: FormatString :: SPECIFIERS (9007.0) -
@todo
@todo -
IO
# scanf(format) -> Array (73.0) -
String#scanfも参照してください。
...String#scanfも参照してください。
@param format スキャンするフォーマットを文字列で指定します。
詳細は、m:String#scanf#format を参照してください。... -
IO
# scanf(format) {|*ary| . . . } -> Array (73.0) -
String#scanfも参照してください。
...String#scanfも参照してください。
@param format スキャンするフォーマットを文字列で指定します。
詳細は、m:String#scanf#format を参照してください。... -
Kernel
# scanf(format) -> Array (25.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 (25.0) -
STDIN.scanf と同じです。 IO#scanf、Stdin#scanfも参照してください。
...STDIN.scanf と同じです。
IO#scanf、Stdin#scanfも参照してください。
@param format スキャンするフォーマットを文字列で指定します。
詳細は、m:String#scanf#format を参照してください。
@see IO#scanf, Stdin#scanf... -
Scanf (25.0)
-
scanf ライブラリで使用する名前空間です。
...scanf ライブラリで使用する名前空間です。
@see Kernel.#scanf, String#scanf, IO#scanf, Stdin#scanf...