Flowdock
to_c() public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
static VALUE
string_to_c(VALUE self)
{
    VALUE s, a, backref;

    backref = rb_backref_get();
    rb_match_busy(backref);

    s = f_gsub(self, underscores_pat, an_underscore);
    a = string_to_c_internal(s);

    rb_backref_set(backref);

    if (!NIL_P(RARRAY_PTR(a)[0]))
        return RARRAY_PTR(a)[0];
    return rb_complex_new1(INT2FIX(0));
}
Register or log in to add new notes.