Quickfix: Rewrite existing code to use the new edit operations.

This commit is contained in:
Christian Kamm
2009-11-26 13:59:58 +01:00
parent 049f8d535d
commit 36913baf94
2 changed files with 83 additions and 76 deletions

View File

@@ -103,6 +103,12 @@ protected:
void replace(unsigned tokenIndex, const QString &replacement);
void replace(const CPlusPlus::AST *ast, const QString &replacement);
void insert(int at, const QString &text);
void remove(int start, int end);
void remove(unsigned tokenIndex);
void remove(const CPlusPlus::AST *ast);
void copy(int start, int end, int to);
void copy(unsigned tokenIndex, int to);
void copy(const CPlusPlus::AST *ast, int to);
QString textOf(int firstOffset, int lastOffset) const;
QString textOf(CPlusPlus::AST *ast) const;