sub 7652 gc.c if (sub == 0) return; sub 7656 gc.c if (val < sub) sub = val; sub 7657 gc.c if (ATOMIC_SIZE_CAS(*var, val, val-sub) == val) break; sub 741 strftime.c yv = sub(yv, INT2FIX(1)); sub 3112 string.c #define rb_str_index(str, sub, offset) rb_strseq_index(str, sub, offset, 0) sub 3122 string.c enc = rb_enc_check(str, sub); sub 3123 string.c if (is_broken_string(sub)) return -1; sub 3126 string.c slen = in_byte ? RSTRING_LEN(sub) : str_strlen(sub, enc); /* rb_enc_check */ sub 3141 string.c sptr = RSTRING_PTR(sub); sub 3142 string.c slen = RSTRING_LEN(sub); sub 3179 string.c VALUE sub; sub 3183 string.c if (rb_scan_args(argc, argv, "11", &sub, &initpos) == 2) { sub 3192 string.c if (RB_TYPE_P(sub, T_REGEXP)) { sub 3199 string.c if (SPECIAL_CONST_P(sub)) goto generic; sub 3200 string.c switch (BUILTIN_TYPE(sub)) { sub 3205 string.c rb_enc_check(str, sub), single_byte_optimizable(str)); sub 3207 string.c pos = rb_reg_search(sub, str, pos, 0); sub 3215 string.c tmp = rb_check_string_type(sub); sub 3218 string.c rb_obj_classname(sub)); sub 3220 string.c sub = tmp; sub 3224 string.c pos = rb_str_index(str, sub, pos); sub 3242 string.c slen = RSTRING_LEN(sub); sub 3246 string.c t = RSTRING_PTR(sub); sub 3274 string.c t = RSTRING_PTR(sub); sub 3275 string.c slen = RSTRING_LEN(sub); sub 3298 string.c enc = rb_enc_check(str, sub); sub 3299 string.c if (is_broken_string(sub)) return -1; sub 3302 string.c slen = str_strlen(sub, enc); /* rb_enc_check */ sub 3312 string.c if (memcmp(sbeg, RSTRING_PTR(sub), RSTRING_LEN(sub)) == 0) sub 3319 string.c return str_rindex(str, sub, s, pos, enc); sub 3344 string.c VALUE sub; sub 3349 string.c if (rb_scan_args(argc, argv, "11", &sub, &vpos) == 2) { sub 3354 string.c if (RB_TYPE_P(sub, T_REGEXP)) { sub 3366 string.c if (SPECIAL_CONST_P(sub)) goto generic; sub 3367 string.c switch (BUILTIN_TYPE(sub)) { sub 3373 string.c if (!RREGEXP_PTR(sub) || RREGEXP_SRC_LEN(sub)) { sub 3374 string.c pos = rb_reg_search(sub, str, pos, 1); sub 3384 string.c tmp = rb_check_string_type(sub); sub 3387 string.c rb_obj_classname(sub)); sub 3389 string.c sub = tmp; sub 3393 string.c pos = rb_str_rindex(str, sub, pos); sub 119 time.c #define neg(x) (sub(INT2FIX(0), (x))) sub 769 time.c year1900 = sub(vtm->year, INT2FIX(1900)); sub 1396 time.c v = sub(vtm->year, INT2FIX(1900)); sub 1808 time.c vtm->utc_offset = sub(vtm->utc_offset, off); sub 1841 time.c vtm->subsecx = sub(vtm->subsecx, INT2FIX(TIME_SCALE)); sub 1891 time.c vtm->year = sub(vtm->year, INT2FIX(1)); sub 3764 time.c return time_add(tobj, sub(den, v), 1);