Lines Matching refs:epos
231 size_t epos, spos = 0; in cut_str() local
243 for (e = s, epos = spos; ; ) { in cut_str()
244 if (epos<=end && epos+e->node->len>end) break; in cut_str()
245 epos += e->node->len; in cut_str()
320 size_t epos, spos = 0; in text_strchr() local
327 epos = spos+i; in text_strchr()
329 for (; i < s->node->len; i++, epos++) in text_strchr()
330 if (s->node->data[i] == c) return epos; in text_strchr()
341 size_t epos, spos = 0; in text_strrchr() local
348 epos = spos+i; in text_strrchr()
350 for (; i >= 0; i--, epos--) in text_strrchr()
351 if (s->node->data[i] == c) return epos; in text_strrchr()