120件ヒット
[101-120件を表示]
(0.089秒)
別のキーワード
ライブラリ
- strscan (120)
キーワード
- check (12)
-
check
_ until (12) - clear (12)
- matched? (12)
-
matched
_ size (12) - reset (12)
-
scan
_ until (12) -
skip
_ until (12) - terminate (12)
検索結果
-
StringScanner
# clear -> self (3026.0) -
スキャンポインタを文字列末尾後まで進め、マッチ記録を捨てます。
...ing.size と同じ動作です。
//emlist[例][ruby]{
require 'strscan'
s = StringScanner.new('test string')
s.scan(/\w+/) # => "test"
s.matched # => "test"
s.pos # => 4
s[0] # => "test"
s.terminate
s.matched # => nil
s[0] # => nil
s.pos # => 11
//}
Stri......ngScanner#clear は将来のバージョンで削除される予定です。
代わりに StringScanner#terminate を使ってください。... -
StringScanner
# reset -> self (3026.0) -
スキャンポインタを文字列の先頭 (インデックス 0) に戻し、 マッチ記録を捨てます。
...です。
@return self を返します。
//emlist[例][ruby]{
require 'strscan'
s = StringScanner.new('test string')
s.scan(/\w+/) # => "test"
s.matched # => "test"
s.pos # => 4
s[0] # => "test"
s.reset
s.matched # => nil
s[0] # => nil
s.pos # => 0
//}...