Home
last modified time | relevance | path

Searched refs:last_end_pos (Results 1 – 2 of 2) sorted by relevance

/dports/www/h2o-devel/h2o-dcc7134/deps/mruby-onig-regexp/src/
H A Dmruby_onig_regexp.c791 int last_end_pos = 0; in string_gsub() local
796 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() local
883 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 …]
/dports/chinese/librime/librime-1.7.3/src/rime/gear/
H A Dpoet.cc66 size_t last_end_pos = 0; in word_lengths() local
68 lengths.push_back(c->end_pos - last_end_pos); in word_lengths()
69 last_end_pos = c->end_pos; in word_lengths()