るりまサーチ

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

別のキーワード

  1. csv quote_char
  2. readline basic_quote_characters
  3. readline basic_quote_characters=
  4. readline filename_quote_characters
  5. readline completer_quote_characters

ライブラリ

クラス

モジュール

検索結果

CSV#quote_char -> String (18213.0)

フィールドをクオートするのに使用する文字列を返します。

...フィールドをクオートするのに使用する文字列を返します。

//emlist[例][ruby]{
require "csv"

csv = CSV.new("header1,header2\nrow1_1,row1_2", quote_char: "'")
csv.quote_char # => "'"
//}

@see CSV.new...

Readline.basic_quote_characters -> String (6200.0)

スペースなどの単語の区切りをクオートするための 複数の文字で構成される文字列を取得します。

...スペースなどの単語の区切りをクオートするための
複数の文字で構成される文字列を取得します。

@raise NotImplementedError サポートしていない環境で発生します。

@see Readline.basic_quote_characters=...

Readline.completer_quote_characters -> String (6200.0)

ユーザの入力の補完を行う際、スペースなどの単語の区切りを クオートするための複数の文字で構成される文字列を取得します。

...ーザの入力の補完を行う際、スペースなどの単語の区切りを
クオートするための複数の文字で構成される文字列を取得します。

@raise NotImplementedError サポートしていない環境で発生します。

@see Readline.completer_quote_characters=...

Readline.filename_quote_characters -> String (6200.0)

ユーザの入力時にファイル名の補完を行う際、スペースなどの単語の区切りを クオートするための複数の文字で構成される文字列を取得します。

...ファイル名の補完を行う際、スペースなどの単語の区切りを
クオートするための複数の文字で構成される文字列を取得します。

@raise NotImplementedError サポートしていない環境で発生します。

@see Readline.filename_quote_characters=...

CSV.new(data, options = Hash.new) -> CSV (130.0)

このメソッドは CSV ファイルを読み込んだり、書き出したりするために String か IO のインスタンスをラップします。

...ows if this
feature will be used as the line-ending translation can cause
problems with resetting the document position to where it was before the
read ahead. This String will be transcoded into the data's Encoding before parsing.
: :quote_char
フィールドをクオートする文字...
...が一つだけ
の場合は配列に格納する必要はありません。
全ての組み込みの変換器は、値を変換する前に UTF-8 にエンコーディング変
換を試みます。エンコーディング変換に失敗した場合はフィールドは変換さ
れませ...
...を指定すると CSV.parse_line を
使用してパースした結果をヘッダとして扱います。このとき、:col_sep, :row_sep, :quote_char
はこのインスタンスと同じものを使用します。この設定は CSV#shift
の返り値を配列のかわりに CSV::Row の...

絞り込み条件を変える

CSV#inspect -> String (112.0)

ASCII 互換文字列で自身の情報を表したものを返します。

...ASCII 互換文字列で自身の情報を表したものを返します。

//emlist[例][ruby]{
require "csv"

csv = CSV.new("header1,header2\nrow1_1,row1_2")
csv.inspect # => "<#CSV io_type:StringIO encoding:UTF-8 lineno:0 col_sep:\",\" row_sep:\"\\n\" quote_char:\"\\\"\">"
//}...

CSV::DEFAULT_OPTIONS -> Hash (106.0)

このオプションは呼び出し側で上書きしなかったときに使用するオプションです。

...プションは呼び出し側で上書きしなかったときに使用するオプションです。

: :col_sep
","
: :row_sep
:auto
: :quote_char
'"'
: :field_size_limit
nil
: :converters
nil
: :unconverted_fields
nil
: :headers
false
: :return_headers
false
: :header_converters...

CSV (18.0)

このクラスは CSV ファイルやデータに対する完全なインターフェイスを提供します。

...e transcoding must take place, of course, to accomplish this multiencoding
support. For example, <tt>:col_sep</tt>, <tt>:row_sep</tt>, and
<tt>:quote_char</tt> must be transcoded to match your data. Hopefully this
makes the entire process feel transparent, since CSV's defaults should just
magicall...
...important to note that while all of CSV's core parser is now
Encoding agnostic, some features are not. For example, the built-in
converters will try to transcode data to UTF-8 before making conversions.
Again, you can provide custom converters that are aware of your Encodings to
avoid this translat...