るりまサーチ

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

別のキーワード

  1. _builtin codepoints
  2. stringio codepoints
  3. string codepoints
  4. io codepoints
  5. argf.class codepoints

ライブラリ

クラス

検索結果

<< < 1 2 >>

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