diff options
Diffstat (limited to 'src/tools/ntqcstring.h')
-rw-r--r-- | src/tools/ntqcstring.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/tools/ntqcstring.h b/src/tools/ntqcstring.h index f3893f63e..18837ad34 100644 --- a/src/tools/ntqcstring.h +++ b/src/tools/ntqcstring.h @@ -57,7 +57,7 @@ Q_EXPORT void *qmemmove( void *dst, const void *src, uint len ); Q_EXPORT char *qstrdup( const char * ); -Q_EXPORT inline uint qstrlen( const char *str ) +Q_EXPORT inline uint tqstrlen( const char *str ) { return str ? (uint)strlen(str) : 0u; } Q_EXPORT inline char *qstrcpy( char *dst, const char *src ) @@ -71,7 +71,7 @@ Q_EXPORT inline int qstrcmp( const char *str1, const char *str2 ) : ( str1 ? 1 : ( str2 ? -1 : 0 ) ); } -Q_EXPORT inline int qstrncmp( const char *str1, const char *str2, uint len ) +Q_EXPORT inline int tqstrncmp( const char *str1, const char *str2, uint len ) { return ( str1 && str2 ) ? strncmp( str1, str2, len ) : ( str1 ? 1 : ( str2 ? -1 : 0 ) ); @@ -121,11 +121,11 @@ typedef TQMemArray<char> TQByteArray; #ifndef QT_NO_COMPRESS Q_EXPORT TQByteArray qCompress( const uchar* data, int nbytes ); -Q_EXPORT TQByteArray qUncompress( const uchar* data, int nbytes ); +Q_EXPORT TQByteArray tqUncompress( const uchar* data, int nbytes ); Q_EXPORT inline TQByteArray qCompress( const TQByteArray& data) { return qCompress( (const uchar*)data.data(), data.size() ); } -Q_EXPORT inline TQByteArray qUncompress( const TQByteArray& data ) -{ return qUncompress( (const uchar*)data.data(), data.size() ); } +Q_EXPORT inline TQByteArray tqUncompress( const TQByteArray& data ) +{ return tqUncompress( (const uchar*)data.data(), data.size() ); } #endif /***************************************************************************** @@ -256,7 +256,7 @@ inline TQCString &TQCString::operator=( const TQCString &s ) { return (TQCString&)assign( s ); } inline TQCString &TQCString::operator=( const char *str ) -{ return (TQCString&)duplicate( str, qstrlen(str)+1 ); } +{ return (TQCString&)duplicate( str, tqstrlen(str)+1 ); } inline bool TQCString::isNull() const { return data() == 0; } @@ -265,7 +265,7 @@ inline bool TQCString::isEmpty() const { return data() == 0 || *data() == '\0'; } inline uint TQCString::length() const -{ return qstrlen( data() ); } +{ return tqstrlen( data() ); } inline bool TQCString::truncate( uint pos ) { return resize(pos+1); } |