36件ヒット
[1-36件を表示]
(0.017秒)
別のキーワード
キーワード
- CSV (12)
- Error (12)
- StringScanner (12)
検索結果
-
StringScanner (6001.0)
-
StringScanner は文字列スキャナクラスです。 簡単に高速なスキャナを記述できます。
...StringScanner は文字列スキャナクラスです。
簡単に高速なスキャナを記述できます。
//emlist[例][ruby]{
require 'strscan'
s = StringScanner.new('This is an example string')
s.eos? #=> false
p s.scan(/\w+/) #=> "This"
p s.scan(/\w+/) #=> nil
p s.scan(/\s......mple"
p s.scan(/\s+/) #=> " "
p s.scan(/\w+/) #=> "string"
s.eos? #=> true
p s.scan(/\s+/) #=> nil
p s.scan(/\w+/) #=> nil
//}
StringScanner オブジェクトはスキャンする文字列と「スキャンポインタ」のセットです。
スキャンポインタとはス......an pointer)
s = StringScanner.new('This is an example string')
# _This is an example string s.eos? = false
s.scan(/\w+/)
# This_ is an example string s.eos? = false
s.scan(/\s+/)
# This _is an example string s.eos? = false
s.scan(/\w+/)
# This is_ an example string s.eos? = false
s.... -
StringScanner
:: Error (3001.0) -
スキャン中に発生したエラーをあらわす例外です。
スキャン中に発生したエラーをあらわす例外です。 -
CSV (7.0)
-
このクラスは CSV ファイルやデータに対する完全なインターフェイスを提供します。
...coded
(unless you ask Ruby to transcode it for you) and will literally be parsed in
the Encoding it is in. Thus CSV will return Arrays or Rows of Strings in the
Encoding of your data. This is accomplished by transcoding the parser itself
into your Encoding.
Some transcoding must take place, of co...