別のキーワード
ライブラリ
- ビルトイン (60)
-
cgi
/ html (24) - csv (72)
- psych (84)
-
rake
/ rdoctask (12) - readline (84)
-
webrick
/ httputils (24)
クラス
- CSV (60)
-
Encoding
:: Converter (36) -
Psych
:: Handler (12) -
Psych
:: Nodes :: Scalar (60) -
Psych
:: Visitors :: YAMLTree (12) -
Rake
:: RDocTask (12) - Regexp (24)
モジュール
-
CGI
:: HtmlExtension (24) - Readline (84)
-
WEBrick
:: HTTPUtils (24)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - CSV (12)
-
DEFAULT
_ OPTIONS (12) -
DOUBLE
_ QUOTED (12) -
SINGLE
_ QUOTED (12) -
basic
_ quote _ characters (12) -
basic
_ quote _ characters= (12) - blockquote (24)
-
completer
_ quote _ characters (12) -
completer
_ quote _ characters= (12) -
completion
_ proc= (12) - dequote (12)
- escape (12)
-
filename
_ quote _ characters (12) -
filename
_ quote _ characters= (12) -
force
_ quotes? (12) - inspect (12)
- new (72)
-
parse
_ string (12) -
quote
_ char (12) - quoted (12)
- quoted= (12)
-
ruby 1
. 6 feature (12) - scalar (12)
- 正規表現 (12)
検索結果
先頭5件
- Psych
:: Nodes :: Scalar :: SINGLE _ QUOTED -> Integer - WEBrick
:: HTTPUtils . # dequote(str) -> String - static int parse
_ string(NODE *quote) - Psych
:: Handler # scalar(value , anchor , tag , plain , quoted , style) -> () - Psych
:: Nodes :: Scalar . new(value , anchor=nil , tag=nil , plain=true , quoted=false , style=ANY) -> Psych :: Nodes:Scalar
-
Psych
:: Nodes :: Scalar :: SINGLE _ QUOTED -> Integer (6100.0) -
single quoted style を表します。
...single quoted style を表します。
@see Psych::Nodes::Scalar.new,
Psych::Nodes::Scalar#style,
Psych::Handler#scalar... -
WEBrick
:: HTTPUtils . # dequote(str) -> String (6100.0) -
与えられた文字列からダブルクオートとバックスラッシュを削除して返します。
与えられた文字列からダブルクオートとバックスラッシュを削除して返します。
@param str 文字列を指定します。 -
static int parse
_ string(NODE *quote) (116.0) -
lex_strterm 形式のノード quote の指示に従い、 文字列の終端または埋め込み式の始まりまで読みこみます。
...lex_strterm 形式のノード quote の指示に従い、
文字列の終端または埋め込み式の始まりまで読みこみます。... -
Psych
:: Handler # scalar(value , anchor , tag , plain , quoted , style) -> () (100.0) -
スカラー値を見付けたときに呼び出されます。
...うか、quoted は quoted style であるかどうか
が渡されます。style には node の style が整数値で渡されます。
style は次の値のいずれかです。
* Psych::Nodes::Scalar::PLAIN
* Psych::Nodes::Scalar::SINGLE_QUOTED
* Psych::Nodes::Scalar::DOUBLE_QUOTED
* Psy......スカラー値
@param anchor 関連付けられた anchor の名前
@param tag タグ名
@param plain plain style であるかどうか
@param quoted quoted style であるかどうか
@param style スカラーのスタイル
=== 例
以下の YAML ドキュメントには多くのパターン......含まれています。
scalar メソッドは 順に以下の引数で呼び出されます。
# value anchor tag plain quoted style
["foo", nil, "!str", false, false, 3 ]
["fun", "anchor", nil, true, false, 1 ]
["many... -
Psych
:: Nodes :: Scalar . new(value , anchor=nil , tag=nil , plain=true , quoted=false , style=ANY) -> Psych :: Nodes:Scalar (100.0) -
Scalar オブジェクトを生成します。
...かどうか、quoted は quoted style であるかどうか
を指定します。style には node の style を整数値で渡します。
style は次の値のいずれかです。
* Psych::Nodes::Scalar::ANY
* Psych::Nodes::Scalar::PLAIN
* Psych::Nodes::Scalar::SINGLE_QUOTED
* Psych::Nod......es::Scalar::DOUBLE_QUOTED
* Psych::Nodes::Scalar::LITERAL
* Psych::Nodes::Scalar::FOLDED
@param value スカラー値
@param anchor 関連付けられた anchor の名前
@param tag タグ名
@param plain plain style であるかどうか
@param quoted quoted style であるかどうか
@param... -
正規表現 (60.0)
-
正規表現 * metachar * expansion * char * anychar * string * str * quantifier * capture * grouping * subexp * selector * anchor * cond * option * encoding * comment * free_format_mode * absenceop * list * specialvar * references
...tch("43+291")
# => #<MatchData "43+291" 1:"43" 2:"+" 3:"291">
//}
埋め込む文字列をリテラルとして認識させたい場合は Regexp.quote を
使います。
===[a:char] 文字
正規表現内では、「\」の後に文字列を置くことで、
ある特定の文字を表現す......* が Quote" にマッチした後、
# 正規表現末尾の " のマッチに失敗します。その後
# 一文字だけバックトラックして、" のマッチに成功します。
/".*"/.match('"Quote"') # => #<MatchData "\"Quote\"">
# 一方、以下のマッチはまず .* が Quote" 全......態まで戻り、
# (?>.*)以外の選択子がないのでマッチ全体が失敗します。
/"(?>.*)"/.match('"Quote"') # => nil
# 一方、以下のマッチはまず .* が Quote" 全体にマッチした後、
# 正規表現末尾の " のマッチに失敗します。その後
# バック... -
ruby 1
. 6 feature (42.0) -
ruby 1.6 feature ruby version 1.6 は安定版です。この版での変更はバグ修正がメイン になります。
...-05-02 Regexp.quote
# はバックスラッシュクォートするようになりました。これは、quote した
正規表現を //x に正しく埋め込めるようにするためです。
((<ruby-bugs-ja:PR#231>))
p Regexp.quote("#")
p /a#{Regexp.quote("#")}b/x =~ "......ない場合、SecurityError 例外が発生する
ようになりました。
: 2002-04-26: Regexp.quote
((<ruby-bugs-ja:PR#231>))
p Regexp.quote("\t")
p /a#{Regexp.quote("\t")}b/x =~ "ab"
=> -:3: warning: ambiguous first argument; make sure
ruby 1.6.7 (2... -
CSV
. new(data , options = Hash . new) -> CSV (30.0) -
このメソッドは CSV ファイルを読み込んだり、書き出したりするために String か IO のインスタンスをラップします。
...とき
データの先頭から次の "\r\n", "\n", "\r" の並びまでを読みます。
A sequence will be selected even if it occurs in a quoted field, assuming that you
would have the same line endings there. If none of those sequences is
found, +data+ is ARGF, Object::STDIN, Object::S......etting 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
フィールドをクオートする文字を指定します。長さ 1 の文字列でなければなりません。
正しいダブル...... quote.
この文字列はパースする前にデータのエンコーディングに変換されます。
: :field_size_limit
This is a maximum size CSV will read ahead looking for the closing quote
for a field. (In truth, it reads to the first line ending beyond this
size.) If a quote... -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12.0) -
1.6.8から1.8.0への変更点(まとめ) * ((<1.6.8から1.8.0への変更点(まとめ)/インタプリタの変更>)) * ((<1.6.8から1.8.0への変更点(まとめ)/追加されたクラス/モジュール>)) * ((<1.6.8から1.8.0への変更点(まとめ)/追加されたメソッド>)) * ((<1.6.8から1.8.0への変更点(まとめ)/追加された定数>)) * ((<1.6.8から1.8.0への変更点(まとめ)/拡張されたクラス/メソッド(互換性のある変更)>)) * ((<1.6.8から1.8.0への変更点(まとめ)/変更されたクラス/メソッド(互換性のない変更)>)) * ((<1.6.8から1.8.0への変更点(まとめ)/文法の変更>)) * ((<1.6.8から1.8.0への変更点(まとめ)/正規表現>)) * ((<1.6.8から1.8.0への変更点(まとめ)/Marshal>)) * ((<1.6.8から1.8.0への変更点(まとめ)/Windows 対応>)) * ((<1.6.8から1.8.0への変更点(まとめ)/廃止された(される予定の)機能>)) * ((<1.6.8から1.8.0への変更点(まとめ)/ライブラリ>)) * ((<1.6.8から1.8.0への変更点(まとめ)/拡張ライブラリAPI>)) * ((<1.6.8から1.8.0への変更点(まとめ)/バグ修正>)) * ((<1.6.8から1.8.0への変更点(まとめ)/サポートプラットフォームの追加>))
...p.quote(arg)) するようになりました)
((<String#~|String/~>)), ((<String#=~|String/=~>)) は、obsolete にな
りました。(String#~ はここにあげた変更が反映された上で obsolete)
# str =~ arg だけは、arg が文字列のとき、
# Regexp.compile(Regexp.quote(...