forked from qt-creator/qt-creator
C++: Use Token::utf16chars{Begin,End} where appropriate
...especially in CppTools/CppEditor where the offsets are used with a QString/QTextDocument. Change-Id: Ic6d18fbc01fb9cc899a9bd2d7424cd2edae487f1 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
@@ -59,13 +59,13 @@ public:
|
||||
int state() const
|
||||
{ return _lastState; }
|
||||
|
||||
static int tokenAt(const QList<Token> &tokens, unsigned offset);
|
||||
static int tokenAt(const QList<Token> &tokens, unsigned utf16charsOffset);
|
||||
static Token tokenAt(const QString &text,
|
||||
unsigned offset,
|
||||
unsigned utf16charsOffset,
|
||||
int state,
|
||||
bool qtMocRunEnabled = false);
|
||||
|
||||
static int tokenBefore(const QList<Token> &tokens, unsigned offset);
|
||||
static int tokenBefore(const QList<Token> &tokens, unsigned utf16charsOffset);
|
||||
|
||||
private:
|
||||
int _lastState;
|
||||
|
||||
Reference in New Issue
Block a user