diff options
Diffstat (limited to 'experimental/tqtinterface/qt4/src/tools/tqcstring.h')
-rw-r--r-- | experimental/tqtinterface/qt4/src/tools/tqcstring.h | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/experimental/tqtinterface/qt4/src/tools/tqcstring.h b/experimental/tqtinterface/qt4/src/tools/tqcstring.h index 8568713bb..2b6a28d46 100644 --- a/experimental/tqtinterface/qt4/src/tools/tqcstring.h +++ b/experimental/tqtinterface/qt4/src/tools/tqcstring.h @@ -147,16 +147,16 @@ public: inline QByteArray upper() const { return toUpper(); } inline QByteArray stripWhiteSpace() const { return trimmed(); } inline QByteArray simplifyWhiteSpace() const { return simplified(); } - inline int tqfind(int c, int from = 0) const { return indexOf(c, from); } - inline int tqfind(char c, int from = 0) const { return indexOf(c, from); } - inline int tqfind(const char *c, int from = 0) const { return indexOf(c, from); } - inline int tqfind(const QByteArray &ba, int from = 0) const { return indexOf(ba, from); } - inline int tqfindRev(char c, int from = -1) const { return lastIndexOf(c, from); } - inline int tqfindRev(const char *c, int from = -1) const { return lastIndexOf(c, from); } - inline int tqfindRev(const QByteArray &ba, int from = -1) const { return lastIndexOf(ba, from); } + inline int find(int c, int from = 0) const { return indexOf(c, from); } + inline int find(char c, int from = 0) const { return indexOf(c, from); } + inline int find(const char *c, int from = 0) const { return indexOf(c, from); } + inline int find(const QByteArray &ba, int from = 0) const { return indexOf(ba, from); } + inline int findRev(char c, int from = -1) const { return lastIndexOf(c, from); } + inline int findRev(const char *c, int from = -1) const { return lastIndexOf(c, from); } + inline int findRev(const QByteArray &ba, int from = -1) const { return lastIndexOf(ba, from); } #ifndef QT_NO_CAST_TO_ASCII - inline int tqfind(const QString &s, int from = 0) const; - inline int tqfindRev(const QString &s, int from = -1) const; + inline int find(const QString &s, int from = 0) const; + inline int findRev(const QString &s, int from = -1) const; #endif inline TQByteArray copy() const { return TQByteArray(*this); } inline QByteRef tqat( int i ) { @@ -311,14 +311,14 @@ public: TQCString &append(const char *c) { QByteArray::append(c); return *this; } TQCString &prepend(const char *c) { QByteArray::prepend(c); return *this; } TQCString &remove(uint index, uint len) { QByteArray::remove(index, len); return *this; } - TQCString &tqreplace(uint index, uint len, const char *c) + TQCString &replace(uint index, uint len, const char *c) { TQByteArray::replace(index, len, c); return *this; } - TQCString &tqreplace(char c, const TQCString &after) { return tqreplace(c, after.constData()); } - TQCString &tqreplace(char c, const char *after) { QByteArray::replace(c, after); return *this; } - TQCString &tqreplace(const TQCString &b, const TQCString &a) - { return tqreplace(b.constData(), a.constData()); } - TQCString &tqreplace(const char *b, const char *a) { QByteArray::replace(b, a); return *this; } - TQCString &tqreplace(char b, char a) { QByteArray::replace(b, a); return *this; } + TQCString &replace(char c, const TQCString &after) { return TQByteArray::replace(c, after.constData()); } + TQCString &replace(char c, const char *after) { QByteArray::replace(c, after); return *this; } + TQCString &replace(const TQCString &b, const TQCString &a) + { return TQByteArray::replace(b.constData(), a.constData()); } + TQCString &replace(const char *b, const char *a) { QByteArray::replace(b, a); return *this; } + TQCString &replace(char b, char a) { QByteArray::replace(b, a); return *this; } short toShort(bool *ok=0) const; ushort toUShort(bool *ok=0) const; @@ -341,20 +341,20 @@ public: bool setExpand(uint index, char c); - int tqcontains( char c, bool cs=TRUE ) const; - int tqcontains( const char *str, bool cs=TRUE ) const; + int contains( char c, bool cs=TRUE ) const; + int contains( const char *str, bool cs=TRUE ) const; #ifndef TQT_NO_REGEXP - int tqcontains( const QRegExp & ) const; + int contains( const QRegExp & ) const; #endif - int tqfind( char c, int index=0, bool cs=TRUE ) const; - int tqfind( const char *str, int index=0, bool cs=TRUE ) const; + int find( char c, int index=0, bool cs=TRUE ) const; + int find( const char *str, int index=0, bool cs=TRUE ) const; #ifndef TQT_NO_REGEXP - int tqfind( const QRegExp &re, int index=0 ) const; + int find( const QRegExp &re, int index=0 ) const; #endif #ifndef TQT_NO_REGEXP - TQCString &tqreplace( const QRegExp &, const char * ); + TQCString &replace( const QRegExp &, const char * ); #endif // inline const char * tqstringFromPos( int index ) { const char & ref = (*this)[index]; return &ref; } @@ -369,7 +369,7 @@ public: TQCString &operator+=( const TQCString tqcs ); private: - int tqfind( const char *str, int index, bool cs, uint l ) const; + int find( const char *str, int index, bool cs, uint l ) const; }; inline TQCString::operator const char *() const @@ -559,20 +559,20 @@ public: TQCString &sprintf( const char *format, ... ); - int tqfind( char c, int index=0, bool cs=TRUE ) const; - int tqfind( const char *str, int index=0, bool cs=TRUE ) const; + int find( char c, int index=0, bool cs=TRUE ) const; + int find( const char *str, int index=0, bool cs=TRUE ) const; #ifndef TQT_NO_REGEXP - int tqfind( const TQRegExp &, int index=0 ) const; + int find( const TQRegExp &, int index=0 ) const; #endif - int tqfindRev( char c, int index=-1, bool cs=TRUE) const; - int tqfindRev( const char *str, int index=-1, bool cs=TRUE) const; + int findRev( char c, int index=-1, bool cs=TRUE) const; + int findRev( const char *str, int index=-1, bool cs=TRUE) const; #ifndef TQT_NO_REGEXP_CAPTURE - int tqfindRev( const TQRegExp &, int index=-1 ) const; + int findRev( const TQRegExp &, int index=-1 ) const; #endif - int tqcontains( char c, bool cs=TRUE ) const; - int tqcontains( const char *str, bool cs=TRUE ) const; + int contains( char c, bool cs=TRUE ) const; + int contains( const char *str, bool cs=TRUE ) const; #ifndef TQT_NO_REGEXP - int tqcontains( const TQRegExp & ) const; + int contains( const TQRegExp & ) const; #endif TQCString left( uint len ) const; TQCString right( uint len ) const; @@ -592,13 +592,13 @@ public: TQCString &append( const char * ); TQCString &prepend( const char * ); TQCString &remove( uint index, uint len ); - TQCString &tqreplace( uint index, uint len, const char * ); + TQCString &replace( uint index, uint len, const char * ); #ifndef TQT_NO_REGEXP - TQCString &tqreplace( const TQRegExp &, const char * ); + TQCString &replace( const TQRegExp &, const char * ); #endif - TQCString &tqreplace( char c, const char *after ); - TQCString &tqreplace( const char *, const char * ); - TQCString &tqreplace( char, char ); + TQCString &replace( char c, const char *after ); + TQCString &replace( const char *, const char * ); + TQCString &replace( char, char ); short toShort( bool *ok=0 ) const; ushort toUShort( bool *ok=0 ) const; @@ -630,7 +630,7 @@ public: TQCString &operator+=( const QByteArray qba ); TQCString &operator+=( const TQCString tqcs ); private: - int tqfind( const char *str, int index, bool cs, uint l ) const; + int find( const char *str, int index, bool cs, uint l ) const; }; /***************************************************************************** |