1 --- qt-copy/src/tools/qstring.cpp.orig 2 Mar 2004 12:50:34 -0000 1.63
2 +++ qt-copy/src/tools/qstring.cpp 26 Mar 2004 20:40:06 -0000
3 @@ -6731,14 +6731,11 @@ bool QString::startsWith( const QString&
6 if ( s.length() > length() )
9 - for ( int i = 0; i < (int) s.length(); i++ ) {
10 - if ( d->unicode[i] != s[i] )
13 + return memcmp((char*)d->unicode,(char*)s.unicode(), s.length()*sizeof(QChar)) == 0;
15 for ( int i = 0; i < (int) s.length(); i++ ) {
16 if ( d->unicode[i].lower() != s[i].lower() )
19 @@ -6772,14 +6769,11 @@ bool QString::endsWith( const QString& s
21 int pos = length() - s.length();
25 - for ( int i = 0; i < (int) s.length(); i++ ) {
26 - if ( d->unicode[pos + i] != s[i] )
29 + return memcmp((char*)&d->unicode[pos],(char*)s.unicode(), s.length()*sizeof(QChar)) == 0;
31 for ( int i = 0; i < (int) s.length(); i++ ) {
32 if ( d->unicode[pos + i].lower() != s[i].lower() )