mirror of
https://github.com/ruby/ruby.git
synced 2026-01-28 04:54:23 +00:00
Treats:
#chars
#codepoints
#each_char
#each_codepoint
#each_grapheme_cluster
#grapheme_clusters
Also, corrects a passage in #unicode_normalize that mentioned module UnicodeNormalize, whose doc (:nodoc:, actually) says not to mention it.
6 lines
219 B
Plaintext
6 lines
219 B
Plaintext
Returns an array of the characters in +self+:
|
||
|
||
'hello'.chars # => ["h", "e", "l", "l", "o"]
|
||
'тест'.chars # => ["т", "е", "с", "т"]
|
||
'こんにちは'.chars # => ["こ", "ん", "に", "ち", "は"]
|