Ruby
2.5.0dev(2017-10-22revision60238)
|
Go to the source code of this file.
Macros | |
#define | id_cmp idCmp |
#define | id_succ idSucc |
#define | RANGE_BEG(r) (RSTRUCT(r)->as.ary[0]) |
#define | RANGE_END(r) (RSTRUCT(r)->as.ary[1]) |
#define | RANGE_EXCL(r) (RSTRUCT(r)->as.ary[2]) |
#define | RANGE_SET_BEG(r, v) (RSTRUCT_SET(r, 0, v)) |
#define | RANGE_SET_END(r, v) (RSTRUCT_SET(r, 1, v)) |
#define | RANGE_SET_EXCL(r, v) (RSTRUCT_SET(r, 2, v)) |
#define | RBOOL(v) ((v) ? Qtrue : Qfalse) |
#define | EXCL(r) RTEST(RANGE_EXCL(r)) |
#define | BSEARCH_CHECK(expr) |
#define | BSEARCH(conv) |
#define | rb_intern(str) rb_intern_const(str) |
Functions | |
VALUE | rb_range_new (VALUE beg, VALUE end, int exclude_end) |
int | rb_range_values (VALUE range, VALUE *begp, VALUE *endp, int *exclp) |
VALUE | rb_range_beg_len (VALUE range, long *begp, long *lenp, long len, int err) |
void | Init_Range (void) |
Variables | |
VALUE | rb_cRange |
#define BSEARCH | ( | conv | ) |
#define BSEARCH_CHECK | ( | expr | ) |
#define EXCL | ( | r | ) | RTEST(RANGE_EXCL(r)) |
Definition at line 35 of file range.c.
Referenced by rb_range_values().
#define RANGE_BEG | ( | r | ) | (RSTRUCT(r)->as.ary[0]) |
Definition at line 27 of file range.c.
Referenced by rb_range_values().
#define RANGE_END | ( | r | ) | (RSTRUCT(r)->as.ary[1]) |
Definition at line 28 of file range.c.
Referenced by rb_range_values().
#define RANGE_SET_BEG | ( | r, | |
v | |||
) | (RSTRUCT_SET(r, 0, v)) |
#define RANGE_SET_END | ( | r, | |
v | |||
) | (RSTRUCT_SET(r, 1, v)) |
#define RANGE_SET_EXCL | ( | r, | |
v | |||
) | (RSTRUCT_SET(r, 2, v)) |
#define rb_intern | ( | str | ) | rb_intern_const(str) |
Definition at line 1003 of file range.c.
References len, NUM2LONG, Qfalse, Qnil, Qtrue, rb_eRangeError, rb_raise(), and rb_range_values().
Referenced by rb_ary_aref(), and rb_get_values_at().
Definition at line 54 of file range.c.
References range, rb_cRange, and rb_obj_alloc().
Definition at line 979 of file range.c.
References EXCL, RANGE_BEG, RANGE_END, rb_cRange, rb_obj_is_kind_of(), and rb_respond_to().
Referenced by rb_range_beg_len().
VALUE rb_cRange |
Definition at line 20 of file range.c.
Referenced by rb_range_new(), and rb_range_values().