commit | fe8fe13349bb46ae690cfea6d3e57bfdac2301e4 | [log] [tgz] |
---|---|---|
author | Shawn O. Pearce <spearce@spearce.org> | Wed Sep 01 23:09:48 2010 -0700 |
committer | Shawn O. Pearce <spearce@spearce.org> | Fri Sep 03 23:55:46 2010 -0700 |
tree | 8c4740ab796a0ce909d5cfbbb3cf46329cf39bd6 | |
parent | 596c3f668b184e41b147aab6260c23189e521c09 [diff] |
Add helper methods to Edit Exposing isEmpty, getLengthA, getLengthB make it easier to examine the state of an edit and work with it from higher level code. The before and after cut routines make it easy to split an edit that contains another edit, such as to decompose a REPLACE that contains a common sequence within it. Change-Id: Id63d6476a7a6b23acb7ab237d414a0a1a7200290 Signed-off-by: Shawn O. Pearce <spearce@spearce.org>