Flowdock
method

codepoints

Importance_1
codepoints() public

Returns an enumerator that gives the Integer ordinal of each character in the string, also known as a codepoint when applied to Unicode strings. If a block is given, it iterates over each character in the string.

"foo\u0635".codepoints.to_a   #=> [102, 111, 111, 1589]
Show source
Register or log in to add new notes.