るりまサーチ

最速Rubyリファレンスマニュアル検索!
24件ヒット [1-24件を表示] (0.096秒)

別のキーワード

  1. _builtin encode
  2. string encode
  3. uri encode_www_form_component
  4. uri encode_www_form
  5. base64 encode64

ライブラリ

クラス

検索結果

String#each_codepoint -> Enumerator (18127.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,...

String#each_codepoint {|codepoint| block } -> self (18127.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,...