Refactored logic related to offsetting Region.end() from *_find_in_line into utils.ViRegion class