22件ヒット
[1-22件を表示]
(0.341秒)
検索結果
-
String
# each _ codepoint -> Enumerator (26120.0) -
文字列の各コードポイントに対して繰り返します。
...の値になります。
//emlist[例][ruby]{
#coding:UTF-8
"hello わーるど".each_codepoint.to_a
# => [104, 101, 108, 108, 111, 32, 12431, 12540, 12427, 12393]
"hello わーるど".encode('euc-jp').each_codepoint.to_a
# => [104, 101, 108, 108, 111, 32, 42223, 41404, 42219, 42185]
//}
@see Stri... -
String
# each _ codepoint {|codepoint| block } -> self (26120.0) -
文字列の各コードポイントに対して繰り返します。
...の値になります。
//emlist[例][ruby]{
#coding:UTF-8
"hello わーるど".each_codepoint.to_a
# => [104, 101, 108, 108, 111, 32, 12431, 12540, 12427, 12393]
"hello わーるど".encode('euc-jp').each_codepoint.to_a
# => [104, 101, 108, 108, 111, 32, 42223, 41404, 42219, 42185]
//}
@see Stri...