Searched refs:last_end_pos (Results 1 – 2 of 2) sorted by relevance
791 int last_end_pos = 0; in string_gsub() local796 mrb_str_cat(mrb, result, RSTRING_PTR(self) + last_end_pos, match->beg[0] - last_end_pos); in string_gsub()807 last_end_pos = match->end[0]; in string_gsub()818 last_end_pos += len; in string_gsub()822 if (RSTRING_LEN(self) < last_end_pos) { in string_gsub()825 mrb_str_cat(mrb, result, RSTRING_PTR(self) + last_end_pos, RSTRING_LEN(self) - last_end_pos); in string_gsub()845 int last_end_pos = 0; in string_scan() local883 last_end_pos = m->end[0] + len; in string_scan()885 last_end_pos = m->end[0] + 1; in string_scan()888 last_end_pos = m->end[0]; in string_scan()[all …]
66 size_t last_end_pos = 0; in word_lengths() local68 lengths.push_back(c->end_pos - last_end_pos); in word_lengths()69 last_end_pos = c->end_pos; in word_lengths()