53件ヒット
[1-53件を表示]
(0.032秒)
別のキーワード
種類
- インスタンスメソッド (48)
- 文書 (5)
ライブラリ
- strscan (48)
クラス
- StringScanner (48)
キーワード
-
NEWS for Ruby 3
. 0 . 0 (5) - rest? (12)
-
rest
_ size (12) - restsize (12)
検索結果
先頭5件
-
StringScanner
# rest -> String (42147.0) -
文字列の残り (rest) を返します。 具体的には、スキャンポインタが指す位置からの文字列を返します。
...残り (rest) を返します。
具体的には、スキャンポインタが指す位置からの文字列を返します。
スキャンポインタが文字列の末尾を指していたら空文字列 ("") を返します。
//emlist[例][ruby]{
require 'strscan'
s = StringScanner.new('test......string')
s.rest # => "test string"
s.scan(/\w+/) # => "test"
s.rest # => " string"
s.scan(/\s+/) # => " "
s.rest # => "string"
s.scan(/\w+/) # => "string"
s.rest # => ""
//}... -
StringScanner
# rest _ size -> Integer (30169.0) -
文字列の残りの長さを返します。 stringscanner.rest.size と同じです。
...ます。
stringscanner.rest.size と同じです。
StringScanner#restsize は将来のバージョンで削除される予定です。
代わりにStringScanner#rest_size を使ってください。
//emlist[例][ruby]{
require 'strscan'
s = StringScanner.new('test string')
p s.rest_size # => 1... -
StringScanner
# restsize -> Integer (30169.0) -
文字列の残りの長さを返します。 stringscanner.rest.size と同じです。
...ます。
stringscanner.rest.size と同じです。
StringScanner#restsize は将来のバージョンで削除される予定です。
代わりにStringScanner#rest_size を使ってください。
//emlist[例][ruby]{
require 'strscan'
s = StringScanner.new('test string')
p s.rest_size # => 1... -
StringScanner
# rest? -> bool (30143.0) -
文字列が残っているならば trueを、 残っていないならば false を返します。
...alse を返します。
StringScanner#eos? と逆の結果を返します。
StringScanner#rest? は将来のバージョンで削除される予定です。
代わりに StringScanner#eos? を使ってください。
//emlist[例][ruby]{
require 'strscan'
s = StringScanner.new('test string')
p......s.eos? # => false
p s.rest? # => true
s.scan(/\w+/)
s.scan(/\s+/)
s.scan(/\w+/)
p s.eos? # => true
p s.rest? # => false
//}... -
NEWS for Ruby 3
. 0 . 0 (30.0) -
NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...result in ArgumentError or different behavior. 14183
* Procs accepting a single rest argument and keywords are no longer
subject to autosplatting. This now matches the behavior of Procs
accepting a single rest argument and no keywords.
16166
//emlist[][ruby]{
pr = proc{|*a, **kw| [a,......t has been added, which returns a hash excluding the given keys and their values. 15822
* Windows: Read ENV names and values as UTF-8 encoded Strings 12650
* Encoding
* Added new encoding IBM720. 16233
* Changed default for Encoding.default_external to UTF-8 on Windows 16604
* Fibe......RubyGems
* Update to RubyGems 3.2.3
* StringIO
* Update to StringIO 3.0.0
* This version is Ractor compatible.
* StringScanner
* Update to StringScanner 3.0.0
* This version is Ractor compatible.
== Compatibility issues
Excluding feature bug fixes.
* Regexp literals and...