Method: String#codepoints

Defined in:
string.c

#codepointsObject

:include: doc/string/codepoints.rdoc



9807
9808
9809
9810
9811
9812
# File 'string.c', line 9807

static VALUE
rb_str_codepoints(VALUE str)
{
    VALUE ary = WANTARRAY("codepoints", rb_str_strlen(str));
    return rb_str_enumerate_codepoints(str, ary);
}