るりまサーチ

最速Rubyリファレンスマニュアル検索!
36件ヒット [1-36件を表示] (0.017秒)
トップページ > クエリ:strings[x] > 種類:クラス[x]

別のキーワード

  1. txt strings
  2. resolv strings
  3. resource strings
  4. strings resolv
  5. strings resolv::dns::resource::txt

ライブラリ

キーワード

検索結果

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
//}

StringS
canner オブジェクトはスキャンする文字列と「スキャンポインタ」のセットです。
スキャンポインタとはス...
...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...