summaryrefslogtreecommitdiffstats
path: root/languages/cpp/stringhelpers.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /languages/cpp/stringhelpers.h
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'languages/cpp/stringhelpers.h')
-rw-r--r--languages/cpp/stringhelpers.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/languages/cpp/stringhelpers.h b/languages/cpp/stringhelpers.h
index d15f57aa..c8783413 100644
--- a/languages/cpp/stringhelpers.h
+++ b/languages/cpp/stringhelpers.h
@@ -23,46 +23,46 @@
namespace StringHelpers {
-void clearStr( QString& str, int start, int end );
+void clearStr( TQString& str, int start, int end );
///Fills all comments with whitespaces
-QString clearComments( QString str );
+TQString clearComments( TQString str );
-QString cutTemplateParams( QString str );
+TQString cutTemplateParams( TQString str );
-QPair<QString, QString> splitTemplateParams( QString str );
+QPair<TQString, TQString> splitTemplateParams( TQString str );
-bool parenFits( QChar c1, QChar c2 );
+bool parenFits( TQChar c1, TQChar c2 );
-bool isParen( QChar c1 );
+bool isParen( TQChar c1 );
-bool isTypeParen( QChar c1 );
+bool isTypeParen( TQChar c1 );
-bool isTypeOpenParen( QChar c1 );
+bool isTypeOpenParen( TQChar c1 );
-bool isTypeCloseParen( QChar c1 );
+bool isTypeCloseParen( TQChar c1 );
-bool isLeftParen( QChar c1 );
+bool isLeftParen( TQChar c1 );
/*only from left to right
searches a fitting closing sign ( a ')' for a '(', ']' for '['
ignores quoted text
comments are currently not allowed */
-int findClose( const QString& str , int pos ); //todo: make this respect strings
+int findClose( const TQString& str , int pos ); //todo: make this respect strings
-QString tagType( const Tag& tag );
+TQString tagType( const Tag& tag );
-int findCommaOrEnd( const QString& str , int pos, QChar validEnd = ' ' );
+int findCommaOrEnd( const TQString& str , int pos, TQChar validEnd = ' ' );
-int countExtract( QChar c, const QString& str );
+int countExtract( TQChar c, const TQString& str );
-QString templateParamFromString( int num, QString str );
+TQString templateParamFromString( int num, TQString str );
-QStringList splitType( QString str ) ;
+TQStringList splitType( TQString str ) ;
class ParamIterator {
public:
- ParamIterator( QString parens, QString source ) : m_source( source ), m_parens( parens ), m_cur( 0 ), m_curEnd ( 0 ) {
+ ParamIterator( TQString parens, TQString source ) : m_source( source ), m_parens( parens ), m_cur( 0 ), m_curEnd ( 0 ) {
int begin = m_source.find( m_parens[ 0 ] );
int end = m_source.findRev( m_parens[ 1 ] );
m_prefix = m_source.left( begin );
@@ -83,7 +83,7 @@ class ParamIterator {
return *this;
}
- QString operator *() {
+ TQString operator *() {
return m_source.mid( m_cur, m_curEnd - m_cur ).stripWhiteSpace();
}
@@ -91,14 +91,14 @@ class ParamIterator {
return m_cur < ( int ) m_source.length();
}
- QString prefix() const {
+ TQString prefix() const {
return m_prefix;
}
private:
- QString m_prefix;
- QString m_source;
- QString m_parens;
+ TQString m_prefix;
+ TQString m_source;
+ TQString m_parens;
int m_cur;
int m_curEnd;
@@ -108,9 +108,9 @@ class ParamIterator {
};
-bool isValidIdentifierSign( const QChar& c );
+bool isValidIdentifierSign( const TQChar& c );
-QString stringMult( int count, QString str );
+TQString stringMult( int count, TQString str );
}