16件ヒット
[1-16件を表示]
(0.021秒)
クラス
-
Scanf
:: FormatSpecifier (11) -
Scanf
:: FormatString (3) - String (2)
キーワード
- conversion (1)
-
count
_ space? (1) -
last
_ spec (1) -
last
_ spec _ tried (1) - letter (1)
- match (1)
- matched (1)
-
matched
_ string (1) -
mid
_ match? (1) -
re
_ string (1) - scanf (2)
-
spec
_ count (1) -
to
_ re (1) -
to
_ s (1) - width (1)
検索結果
先頭5件
-
Scanf
:: FormatString # last _ spec (27313.0) -
@todo
@todo -
Scanf
:: FormatString # last _ spec _ tried (27313.0) -
@todo
@todo -
Scanf
:: FormatString # spec _ count (27313.0) -
@todo
@todo -
Scanf
:: FormatSpecifier # conversion (18010.0) -
@todo
@todo -
Scanf
:: FormatSpecifier # count _ space? (18010.0) -
@todo
@todo -
Scanf
:: FormatSpecifier # letter (18010.0) -
@todo
@todo -
Scanf
:: FormatSpecifier # match(str) (18010.0) -
@todo
@todo -
Scanf
:: FormatSpecifier # matched (18010.0) -
@todo
@todo -
Scanf
:: FormatSpecifier # matched _ string (18010.0) -
@todo
@todo -
Scanf
:: FormatSpecifier # mid _ match? (18010.0) -
@todo
@todo -
Scanf
:: FormatSpecifier # re _ string (18010.0) -
@todo
@todo -
Scanf
:: FormatSpecifier # to _ re (18010.0) -
@todo
@todo -
Scanf
:: FormatSpecifier # to _ s (18010.0) -
@todo
@todo -
Scanf
:: FormatSpecifier # width (18010.0) -
@todo
@todo -
String
# scanf(format) -> Array (502.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 (502.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 のような)指示...