|
Ruby
2.7.2p137(2020-10-01revision5445e0435260b449decf2ac16f9d09bae3cafe72)
|
Go to the source code of this file.
Macros | |
| #define | id_cmp idCmp |
| #define | id_succ idSucc |
| #define | id_min idMin |
| #define | id_max idMax |
| #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)) |
| #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 1278 of file range.c.
References err, len, NIL_P, NUM2LONG, Qfalse, Qnil, Qtrue, range, rb_eRangeError, rb_raise(), and rb_range_values().
Referenced by rb_ary_aref1().
Definition at line 54 of file range.c.
References range, rb_cRange, and rb_obj_alloc().
Definition at line 1248 of file range.c.
References EXCL, Qfalse, range, RANGE_BEG, RANGE_END, rb_cArithSeq, rb_check_funcall(), rb_cRange, rb_obj_is_kind_of(), and RTEST.
Referenced by rb_range_beg_len().
| VALUE rb_cRange |
Definition at line 21 of file range.c.
Referenced by rb_range_new(), and rb_range_values().