commit | e414fec4f7fe30f08baaf2d1f9ddf7e88963a2f7 | [log] [tgz] |
---|---|---|
author | Russ Cox <rsc@swtch.com> | Wed Mar 02 15:59:46 2011 -0500 |
committer | Russ Cox <rsc@swtch.com> | Wed Mar 02 15:59:46 2011 -0500 |
tree | 3a455e7639898f1d12bf0ef933f83d51c88ec157 | |
parent | e30819167f83864520360edcc9b09d07b8f994cd [diff] |
re2: add endpos to RE2::Match, fix bugs Adding endpos to RE2::Match allows callers to limit the ending position of matches to points before the end of the text. Found and fixed a few bugs involving startpos and endpos not being handled properly. These would only affect callers using Match directly. They cannot affect callers using FullMatch, PartialMatch, and DoMatch, because those always use startpos == 0. R=r, rsc_swtch CC=re2-dev http://codereview.appspot.com/4237051