From 89214766d8e3e7b8dd749a1fa18a5b9727f5010d Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Sun, 14 Dec 2014 08:24:26 -0500 Subject: Imported Upstream version 3.0.0 --- SQLiteStudio3/coreSQLiteStudio/parser/token.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'SQLiteStudio3/coreSQLiteStudio/parser/token.h') diff --git a/SQLiteStudio3/coreSQLiteStudio/parser/token.h b/SQLiteStudio3/coreSQLiteStudio/parser/token.h index 1090bd4..222ce1a 100644 --- a/SQLiteStudio3/coreSQLiteStudio/parser/token.h +++ b/SQLiteStudio3/coreSQLiteStudio/parser/token.h @@ -574,21 +574,21 @@ class API_EXPORT TokenList : public QList * * White-space tokens are tested with Token::isWhitespace(). */ - void trimLeft(); + TokenList &trimLeft(); /** * @brief Removes all white-space tokens from the end of the list. * * White-space tokens are tested with Token::isWhitespace(). */ - void trimRight(); + TokenList &trimRight(); /** * @brief Removes all white-space tokens from both the beginning and the end of the list. * * White-space tokens are tested with Token::isWhitespace(). */ - void trim(); + TokenList &trim(); /** * @brief Removes all tokens that match given criteria from the beginning of the list. @@ -598,7 +598,7 @@ class API_EXPORT TokenList : public QList * This method is an extension to the regular trimLeft(). It removes white-space tokens, * as well as tokens that are of given \p type and have given \p value (both conditions must be met). */ - void trimLeft(Token::Type type, const QString& alsoTrim); + TokenList &trimLeft(Token::Type type, const QString& alsoTrim); /** * @brief Removes all tokens that match given criteria from the end of the list. @@ -608,7 +608,7 @@ class API_EXPORT TokenList : public QList * This method is an extension to the regular trimRight(). It removes white-space tokens, * as well as tokens that are of given \p type and have given \p value (both conditions must be met). */ - void trimRight(Token::Type type, const QString& alsoTrim); + TokenList &trimRight(Token::Type type, const QString& alsoTrim); /** * @brief Removes all tokens that match given criteria from the beginning and the end of the list. @@ -618,7 +618,7 @@ class API_EXPORT TokenList : public QList * This method is an extension to the regular trim(). It removes white-space tokens, * as well as tokens that are of given \p type and have given \p value (both conditions must be met). */ - void trim(Token::Type type, const QString& alsoTrim); + TokenList &trim(Token::Type type, const QString& alsoTrim); /** * @brief Creates list of tokens from this list, letting through only tokens of given type. -- cgit v1.2.3