ライブラリ
- ビルトイン (217)
-
cgi
/ core (22) - csv (176)
- json (33)
- open-uri (48)
- open3 (99)
- optparse (99)
- psych (77)
-
rake
/ testtask (11) -
rubygems
/ security (11) -
rubygems
/ specification (11) - syslog (33)
クラス
-
ARGF
. class (33) - Array (11)
- CGI (22)
- CSV (132)
-
CSV
:: Table (22) -
Encoding
:: Converter (33) -
Gem
:: Security :: Policy (11) -
Gem
:: Specification (11) - Object (22)
- OptionParser (55)
-
Psych
:: Nodes :: Node (22) -
Psych
:: Visitors :: YAMLTree (11) -
RDoc
:: Options (198) -
Rake
:: TestTask (11) - String (130)
- Symbol (32)
モジュール
-
Gem
:: InstallUpdateOptions (11) - JSON (33)
- Kernel (8)
- Open3 (99)
- OpenURI (11)
-
OpenURI
:: OpenRead (22) -
OptionParser
:: Arguable (44) - Psych (22)
- Syslog (33)
- URI (7)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - DEPRECATED (11)
- Marshal フォーマット (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 2 . 0 (10) -
NEWS for Ruby 2
. 4 . 0 (8) -
NEWS for Ruby 3
. 0 . 0 (4) - SPECIAL (11)
- [] (11)
- capitalize (16)
- capitalize! (8)
- charset (11)
- css (11)
- downcase (16)
- downcase! (8)
- dump (22)
- encode (33)
- encode! (22)
-
extra
_ accessor _ flags (11) - facility (11)
- files (11)
- filter (33)
- generate (11)
-
generate
_ line (11) - header (11)
- help (11)
- ident (11)
-
image
_ format (11) -
install
_ update _ defaults _ str (11) - instance (22)
- irb (11)
-
main
_ page (11) - markup (11)
- new (55)
-
op
_ dir (11) -
op
_ name (11) - open (70)
-
open
_ uri (11) - order! (22)
- out (11)
- parse! (11)
-
parse
_ csv (11) - permute! (11)
- pipeline (11)
-
pipeline
_ r (22) -
pipeline
_ rw (22) -
pipeline
_ start (22) -
pipeline
_ w (22) -
pretty
_ generate (11) -
pretty
_ unparse (11) -
psych
_ to _ yaml (11) - rdoc (11)
-
rdoc
_ include (11) - read (11)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) -
rubygems
/ commands / cert _ command (11) -
rubygems
/ commands / list _ command (11) -
rubygems
/ commands / search _ command (11) -
rubygems
/ security (11) -
set
_ encoding (33) -
static
_ path (11) - swapcase (16)
- swapcase! (8)
- template (11)
-
template
_ dir (11) - title (11)
- title= (11)
-
to
_ a (11) -
to
_ csv (22) -
to
_ s (22) -
to
_ yaml (22) -
trusted
_ cert _ path (11) - upcase (16)
- upcase! (8)
- ver (11)
- webcvs (11)
-
webrick
/ cgi (11) - yaml (11)
検索結果
先頭5件
-
String
# upcase(*options) -> String (21262.0) -
全ての小文字を対応する大文字に置き換えた文字列を返します。 どの文字がどう置き換えられるかは、オプションの有無や文字列のエンコーディングに依存します。
...のエンコーディングに依存します。
@param options オプションの詳細は String#downcase を参照してください。
//emlist[例][ruby]{
p "stRIng? STring.".upcase # => "STRING? STRING."
//}
@see String#upcase!, String#downcase,
String#swapcase, String#capitalize... -
String
# downcase(*options) -> String (21256.0) -
全ての大文字を対応する小文字に置き換えた文字列を返します。 どの文字がどう置き換えられるかは、オプションの有無や文字列のエンコーディングに依存します。
...どの文字がどう置き換えられるかは、オプションの有無や文字列のエンコーディングに依存します。
@param options オプションの意味は以下の通りです。
: オプションなし
完全な Unicode ケースマッピングに対応し、ほとん......e 正規化 (すなわち String#unicode_normalize) はケース
マッピング操作で必ずしも維持されるとは限りません。
現在 ASCII 以外のケースマッピング/フォールディングは、UTF-8, UTF-16BE/LE,
UTF-32BE/LE, ISO-8859-1~16 の String/Symbol でサポート......されています。
他のエンコーディングもサポートされる予定です。
//emlist[例][ruby]{
p "STRing?".downcase # => "string?"
//}
@see String#downcase!, String#upcase, String#swapcase, String#capitalize... -
String
# capitalize(*options) -> String (21238.0) -
文字列先頭の文字を大文字に、残りを小文字に変更した文字列を返します。
...@param options オプションの詳細は String#downcase を参照してください。
//emlist[例][ruby]{
p "foobar--".capitalize # => "Foobar--"
p "fooBAR--".capitalize # => "Foobar--"
p "FOOBAR--".capitalize # => "Foobar--"
//}
@see String#capitalize!, String#upcase,
String#downc... -
String
# swapcase(*options) -> String (21238.0) -
大文字を小文字に、小文字を大文字に変更した文字列を返します。
...した文字列を返します。
@param options オプションの詳細は String#downcase を参照してください。
//emlist[例][ruby]{
p "ABCxyz".swapcase # => "abcXYZ"
p "Access".swapcase # => "aCCESS"
//}
@see String#swapcase!, String#upcase, String#downcase, String#capitalize... -
String
# parse _ csv(**options) -> [String] (21224.0) -
CSV.parse_line(self, options) と同様です。
...CSV.parse_line(self, options) と同様です。
1 行の CSV 文字列を、文字列の配列に変換するためのショートカットです。
@param options CSV.new と同様のオプションを指定します。
//emlist[][ruby]{
require "csv"
p "Matz,Ruby\n".parse_csv... -
String
# encode(**options) -> String (21218.0) -
self を指定したエンコーディングに変換した文字列を作成して返します。引数 を2つ与えた場合、第二引数は変換元のエンコーディングを意味します。さもな くば self のエンコーディングが使われます。 無引数の場合は、Encoding.default_internal が nil でなければそれが変換先のエンコーディングになり、かつ :invalid => :replace と :undef => :replace が指定されたと見なされ、nil ならば変換は行われません。
...ンコーディングにおいて文字が定義されていない場合に、未定義文字を置換文字で置き換えます。
: :replace => string
前述の :invalid => :replace や :undef => :replace で用いられる置換文字を指定します。デフォルトは Unicode 系のエン......ようとすると Encoding::UndefinedConversionError が発生する
str = "\u00b7\u2014"
str.encode("Windows-31J", fallback: { "\u00b7" => "\xA5".force_encoding("Windows-31J"),
"\u2014" => "\x81\x5C".force_encoding("Windows-31J") })
//}
@see String#encode!... -
String
# encode(encoding , **options) -> String (21218.0) -
self を指定したエンコーディングに変換した文字列を作成して返します。引数 を2つ与えた場合、第二引数は変換元のエンコーディングを意味します。さもな くば self のエンコーディングが使われます。 無引数の場合は、Encoding.default_internal が nil でなければそれが変換先のエンコーディングになり、かつ :invalid => :replace と :undef => :replace が指定されたと見なされ、nil ならば変換は行われません。
...ンコーディングにおいて文字が定義されていない場合に、未定義文字を置換文字で置き換えます。
: :replace => string
前述の :invalid => :replace や :undef => :replace で用いられる置換文字を指定します。デフォルトは Unicode 系のエン......ようとすると Encoding::UndefinedConversionError が発生する
str = "\u00b7\u2014"
str.encode("Windows-31J", fallback: { "\u00b7" => "\xA5".force_encoding("Windows-31J"),
"\u2014" => "\x81\x5C".force_encoding("Windows-31J") })
//}
@see String#encode!... -
String
# encode(encoding , from _ encoding , **options) -> String (21218.0) -
self を指定したエンコーディングに変換した文字列を作成して返します。引数 を2つ与えた場合、第二引数は変換元のエンコーディングを意味します。さもな くば self のエンコーディングが使われます。 無引数の場合は、Encoding.default_internal が nil でなければそれが変換先のエンコーディングになり、かつ :invalid => :replace と :undef => :replace が指定されたと見なされ、nil ならば変換は行われません。
...ンコーディングにおいて文字が定義されていない場合に、未定義文字を置換文字で置き換えます。
: :replace => string
前述の :invalid => :replace や :undef => :replace で用いられる置換文字を指定します。デフォルトは Unicode 系のエン......ようとすると Encoding::UndefinedConversionError が発生する
str = "\u00b7\u2014"
str.encode("Windows-31J", fallback: { "\u00b7" => "\xA5".force_encoding("Windows-31J"),
"\u2014" => "\x81\x5C".force_encoding("Windows-31J") })
//}
@see String#encode!... -
String
# upcase!(*options) -> self | nil (21161.0) -
全ての小文字を対応する大文字に破壊的に置き換えます。 どの文字がどう置き換えられるかは、オプションの有無や文字列のエンコーディングに依存します。
...ディングに依存します。
@param options オプションの詳細は String#downcase を参照してください。
//emlist[例][ruby]{
buf = "stRIng? STring."
buf.upcase!
p buf # => "STRING? STRING."
//}
@see String#upcase, String#downcase!,
String#swapcase!, String#capitalize!... -
String
# downcase!(*options) -> self | nil (21149.0) -
全ての大文字を対応する小文字に破壊的に置き換えます。 どの文字がどう置き換えられるかは、オプションの有無や文字列のエンコーディングに依存します。
...@param options オプションの詳細は String#downcase を参照してください。
@return self を変更して返します。変更が無かった場合は nil を返します。
//emlist[例][ruby]{
str = "STRing?"
str.downcase!
p str # => "string?"
//}
@see String#downcase, String#upca......se!, String#swapcase!, String#capitalize!... -
String
# capitalize!(*options) -> self | nil (21137.0) -
文字列先頭の文字を大文字に、残りを小文字に破壊的に変更します。
...文字列先頭の文字を大文字に、残りを小文字に破壊的に変更します。
@param options オプションの詳細は String#downcase を参照してください。
@return capitalize! は self を変更して返しますが、
変更が起こらなかった場合は ni......l を返します。
//emlist[例][ruby]{
str = "foobar"
str.capitalize!
p str # => "Foobar"
str = "fooBAR"
str.capitalize!
p str # => "Foobar"
//}
@see String#capitalize, String#upcase!,
String#downcase!, String#swapcase!...