113件ヒット
[101-113件を表示]
(0.124秒)
ライブラリ
- ビルトイン (113)
キーワード
- << (1)
-
append
_ as _ bytes (1) - byterindex (3)
- byteslice (36)
- bytesplice (10)
- concat (2)
-
each
_ byte (12) - getbyte (12)
- scrub (12)
- scrub! (12)
検索結果
-
String
# concat(other) -> self (9110.0) -
self に文字列 other を破壊的に連結します。 other が 整数である場合は other.chr(self.encoding) 相当の文字を末尾に追加します。
...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
# getbyte(index) -> Integer | nil (9108.0) -
index バイト目のバイトを整数で返します。
...定した場合は nil を返します。
@param index バイトを取り出す位置
//emlist[例][ruby]{
s = "tester"
s.bytes # => [116, 101, 115, 116, 101, 114]
s.getbyte(0) # => 116
s.getbyte(1) # => 101
s.getbyte(-1) # => 114
s.getbyte(6) # => nil
//}...