aboutsummaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/coreSQLiteStudio/parser/token.h
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2014-12-14 08:24:32 -0500
committerLibravatarUnit 193 <unit193@ubuntu.com>2014-12-14 08:24:32 -0500
commite571839e140139a6a819077e94cf8cc01c13b29f (patch)
tree8263635257cfb5ed979a584a958103b700bf31e7 /SQLiteStudio3/coreSQLiteStudio/parser/token.h
parent407eac41f46936e3f346bb5a964a682e578b4237 (diff)
parent89214766d8e3e7b8dd749a1fa18a5b9727f5010d (diff)
Merge tag 'upstream/3.0.0'
Upstream version 3.0.0 # gpg: Signature made Sun 14 Dec 2014 08:24:31 AM EST using RSA key ID EBE9BD91 # gpg: Good signature from "Unit 193 <unit193@gmail.com>" # gpg: aka "Unit 193 <unit193@ninthfloor.org>" # gpg: aka "Unit 193 <unit193@ubuntu.com>"
Diffstat (limited to 'SQLiteStudio3/coreSQLiteStudio/parser/token.h')
-rw-r--r--SQLiteStudio3/coreSQLiteStudio/parser/token.h12
1 files changed, 6 insertions, 6 deletions
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<TokenPtr>
*
* 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<TokenPtr>
* 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<TokenPtr>
* 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<TokenPtr>
* 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.