1448件ヒット
[1401-1448件を表示]
(0.119秒)
種類
- インスタンスメソッド (1432)
- 特異メソッド (16)
ライブラリ
- ビルトイン (1337)
-
bigdecimal
/ util (11) - csv (11)
- kconv (22)
- rake (44)
- scanf (12)
- shellwords (11)
キーワード
- % (11)
- + (11)
- << (11)
- [] (66)
- []= (77)
-
ascii
_ only? (11) - byteindex (2)
- byterindex (2)
- bytes (22)
- byteslice (11)
- bytesplice (3)
- capitalize (11)
- capitalize! (11)
- casecmp (11)
- casecmp? (8)
- center (11)
- chars (22)
- chr (11)
- clear (11)
- codepoints (22)
- concat (19)
- count (11)
- crypt (11)
- delete (11)
- delete! (11)
- downcase (11)
- downcase! (11)
-
each
_ byte (22) -
each
_ char (22) -
each
_ codepoint (22) -
each
_ grapheme _ cluster (14) -
each
_ line (22) -
grapheme
_ clusters (14) - gsub (44)
- gsub! (44)
- hash (11)
- hex (11)
- index (11)
- kconv (11)
- lines (22)
- ljust (11)
- match (22)
- match? (8)
- new (16)
- next (11)
- next! (11)
- ord (11)
-
parse
_ csv (11) - partition (11)
- pathmap (11)
-
pathmap
_ explode (11) -
pathmap
_ partial (11) -
pathmap
_ replace (11) - prepend (19)
- replace (11)
- rindex (11)
- rjust (11)
- rpartition (11)
- scan (22)
- scanf (12)
- shellescape (11)
- slice (66)
- slice! (66)
- split (17)
- squeeze (11)
- squeeze! (11)
-
start
_ with? (11) - sub (33)
- sub! (33)
- succ (11)
- succ! (11)
- swapcase (11)
- swapcase! (11)
-
to
_ d (11) -
to
_ f (11) -
to
_ i (11) -
to
_ r (11) - tolocale (11)
- tr! (11)
-
tr
_ s (11) -
tr
_ s! (11) -
unicode
_ normalize (10) -
unicode
_ normalize! (10) -
unicode
_ normalized? (10) - unpack (11)
- unpack1 (8)
- upcase (11)
- upcase! (11)
- upto (11)
-
valid
_ encoding? (11)
検索結果
先頭5件
-
String
# bytes {|byte| . . . } -> self (12029.0) -
文字列の各バイトを数値の配列で返します。(self.each_byte.to_a と同じです)
...each_byte.to_a と同じです)
//emlist[例][ruby]{
"str".bytes # => [115, 116, 114]
//}
ブロックが指定された場合は String#each_byte と同じように動作します。
Ruby 2.6 までは deprecated の警告が出ますが、Ruby 2.7 で警告は削除されました。
@see Stri......ng#each_byte... -
String
# codepoints -> [Integer] (12029.0) -
文字列の各コードポイントの配列を返します。(self.each_codepoint.to_a と同じです)
...each_codepoint.to_a と同じです)
//emlist[例][ruby]{
#coding:UTF-8
"hello わーるど".codepoints
# => [104, 101, 108, 108, 111, 32, 12431, 12540, 12427, 12393]
//}
ブロックが指定された場合は String#each_codepoint と同じように動作します。
Ruby 2.6 までは deprecat......ed の警告が出ますが、Ruby 2.7 で警告は削除されました。
@see String#each_codepoint... -
String
# codepoints {|codepoint| block } -> self (12029.0) -
文字列の各コードポイントの配列を返します。(self.each_codepoint.to_a と同じです)
...each_codepoint.to_a と同じです)
//emlist[例][ruby]{
#coding:UTF-8
"hello わーるど".codepoints
# => [104, 101, 108, 108, 111, 32, 12431, 12540, 12427, 12393]
//}
ブロックが指定された場合は String#each_codepoint と同じように動作します。
Ruby 2.6 までは deprecat......ed の警告が出ますが、Ruby 2.7 で警告は削除されました。
@see String#each_codepoint... -
String
# <<(other) -> self (12013.0) -
self に文字列 other を破壊的に連結します。 other が 整数である場合は other.chr(self.encoding) 相当の文字を末尾に追加します。
...追加します。
self を返します。
@param other 文字列もしくは 0 以上の整数
//emlist[例][ruby]{
str = "string"
str.concat "XXX"
p str # => "stringXXX"
str << "YYY"
p str # => "stringXXXYYY"
str << 65 # 文字AのASCIIコード
p str # => "stringXXXYYYA"
//}... -
String
# ord -> Integer (12013.0) -
文字列の最初の文字の文字コードを整数で返します。
...の文字コードを整数で返します。
self が空文字列のときは例外を発生します。
@return 文字コードを表す整数
@raise ArgumentError self の長さが 0 のとき発生
//emlist[例][ruby]{
p "a".ord # => 97
//}
@see Integer#chr, String#chr...