- bool isChanged(lyx::pos_type start, lyx::pos_type end) const;
-
- /// is there a non-addition in this range ?
- bool isChangeEdited(lyx::pos_type start, lyx::pos_type end) const;
+ bool isChanged(pos_type start, pos_type end) const;
+ /// is there an unchanged char at the given pos ?
+ bool isUnchanged(pos_type pos) const {
+ return lookupChange(pos).type == Change::UNCHANGED;
+ }
+ /// is there an insertion at the given pos ?
+ bool isInserted(pos_type pos) const {
+ return lookupChange(pos).type == Change::INSERTED;
+ }
+ /// is there a deletion at the given pos ?
+ bool isDeleted(pos_type pos) const {
+ return lookupChange(pos).type == Change::DELETED;
+ }