if (status == F_none_eos) return F_data_not_eos;
if (status == F_none_stop) return F_data_not_stop;
- status = f_string_ranges_increase(state.step_small, found);
- if (F_status_is_error(status)) return status;
-
const f_number_unsigned_t begin = range->start;
- found->array[found->used].start = range->start;
for (;; ++range->start) {
if (F_status_is_error(status)) return status;
+ status = f_string_ranges_increase(state.step_small, found);
+
if (range->start > begin) {
found->array[found->used++].stop = range->start - 1;
}