るりまサーチ (Ruby 3.0)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.156秒)
トップページ > クエリ:t[x] > クエリ:ruby[x] > クエリ:code[x] > クラス:String[x] > クエリ:encode[x] > クエリ:each_codepoint[x] > バージョン:3.0[x]

別のキーワード

  1. zlib os_code
  2. rdoc/code_object codeobject
  3. rdoc/code_object comment
  4. rdoc/code_object parent
  5. rdoc/code_object comment=

ライブラリ

検索結果

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

String#each_codepoint -> Enumerator (90982.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 String#codepoints...