summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/src/network/tqhttp.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-08-09 22:25:47 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-08-09 22:25:47 -0500
commiteaa7ee2e0bbca40ba3173c4304f81957e8964291 (patch)
tree4f793aa48a5080aedc94ce6e519c3b86708f2b88 /tqtinterface/qt4/src/network/tqhttp.cpp
parent79a9d7a46a20d4a0923bc06fc471fdc2176ef865 (diff)
downloadexperimental-eaa7ee2e0bbca40ba3173c4304f81957e8964291.tar.gz
experimental-eaa7ee2e0bbca40ba3173c4304f81957e8964291.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains
Diffstat (limited to 'tqtinterface/qt4/src/network/tqhttp.cpp')
-rw-r--r--tqtinterface/qt4/src/network/tqhttp.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/tqtinterface/qt4/src/network/tqhttp.cpp b/tqtinterface/qt4/src/network/tqhttp.cpp
index 7d324ea..53cdbeb 100644
--- a/tqtinterface/qt4/src/network/tqhttp.cpp
+++ b/tqtinterface/qt4/src/network/tqhttp.cpp
@@ -333,7 +333,7 @@ void TQHttpCloseRequest::start( TQHttp *http )
/*!
\class TQHttpHeader tqhttp.h
- \brief The TQHttpHeader class tqcontains header information for HTTP.
+ \brief The TQHttpHeader class contains header information for HTTP.
\if defined(commercial)
It is part of the <a href="commercialeditions.html">TQt Enterprise Edition</a>.
\endif
@@ -445,7 +445,7 @@ bool TQHttpHeader::isValid() const
/*! \internal
Parses the HTTP header string \a str for header fields and adds
- the keys/values it tqfinds. If the string is not parsed successfully
+ the keys/values it finds. If the string is not parsed successfully
the TQHttpHeader becomes \link isValid() invalid\endlink.
Returns TRUE if \a str was successfully parsed; otherwise returns FALSE.
@@ -455,7 +455,7 @@ bool TQHttpHeader::isValid() const
bool TQHttpHeader::parse( const TQString& str )
{
TQStringList lst;
- int pos = str.tqfind( '\n' );
+ int pos = str.find( '\n' );
if ( pos > 0 && str.at( pos - 1 ) == '\r' )
lst = TQStringList::split( "\r\n", str.stripWhiteSpace(), FALSE );
else
@@ -526,7 +526,7 @@ TQStringList TQHttpHeader::keys() const
*/
bool TQHttpHeader::hasKey( const TQString& key ) const
{
- return values.tqcontains( key.lower() );
+ return values.contains( key.lower() );
}
/*!
@@ -534,7 +534,7 @@ bool TQHttpHeader::hasKey( const TQString& key ) const
If no entry with \a key exists, a new entry with the given \a key
and \a value is created. If an entry with the \a key already
- exists, its value is discarded and tqreplaced with the given \a
+ exists, its value is discarded and replaced with the given \a
value.
\sa value() hasKey() removeValue()
@@ -564,7 +564,7 @@ void TQHttpHeader::removeValue( const TQString& key )
*/
bool TQHttpHeader::parseLine( const TQString& line, int )
{
- int i = line.tqfind( ":" );
+ int i = line.find( ":" );
if ( i == -1 )
return FALSE;
@@ -649,7 +649,7 @@ TQString TQHttpHeader::contentType() const
if ( type.isEmpty() )
return TQString::null;
- int pos = type.tqfind( ";" );
+ int pos = type.find( ";" );
if ( pos == -1 )
return type;
@@ -675,7 +675,7 @@ void TQHttpHeader::setContentType( const TQString& type )
/*!
\class TQHttpResponseHeader tqhttp.h
- \brief The TQHttpResponseHeader class tqcontains response header information for HTTP.
+ \brief The TQHttpResponseHeader class contains response header information for HTTP.
\if defined(commercial)
It is part of the <a href="commercialeditions.html">TQt Enterprise Edition</a>.
\endif
@@ -807,7 +807,7 @@ bool TQHttpResponseHeader::parseLine( const TQString& line, int number )
majVer = l[5].latin1() - '0';
minVer = l[7].latin1() - '0';
- int pos = l.tqfind( ' ', 9 );
+ int pos = l.find( ' ', 9 );
if ( pos != -1 ) {
reasonPhr = l.mid( pos + 1 );
statCode = l.mid( 9, pos - 9 ).toInt();
@@ -838,7 +838,7 @@ TQString TQHttpResponseHeader::toString() const
/*!
\class TQHttpRequestHeader tqhttp.h
- \brief The TQHttpRequestHeader class tqcontains request header information for
+ \brief The TQHttpRequestHeader class contains request header information for
\if defined(commercial)
It is part of the <a href="commercialeditions.html">TQt Enterprise Edition</a>.
\endif
@@ -1166,7 +1166,7 @@ TQString TQHttpRequestHeader::toString() const
You can then get details about the error with the error() and
errorString() functions. Note that only unexpected behaviour, like
network failure is considered as an error. If the server response
- tqcontains an error status, like a 404 response, this is reported as
+ contains an error status, like a 404 response, this is reported as
a normal response case. So you should always check the \link
TQHttpResponseHeader::statusCode() status code \endlink of the
response header.
@@ -1985,7 +1985,7 @@ void TQHttp::slotReadyRead()
if (d->response.statusCode() != 100) {
d->readHeader = FALSE;
if ( d->response.hasKey( "transfer-encoding" ) &&
- d->response.value( "transfer-encoding" ).lower().tqcontains( "chunked" ) )
+ d->response.value( "transfer-encoding" ).lower().contains( "chunked" ) )
d->chunkedSize = 0;
emit responseHeaderReceived( d->response );
@@ -2008,7 +2008,7 @@ void TQHttp::slotReadyRead()
if ( !d->socket.canReadLine() )
break;
TQString sizeString = d->socket.readLine();
- int tPos = sizeString.tqfind( ';' );
+ int tPos = sizeString.find( ';' );
if ( tPos != -1 )
sizeString.truncate( tPos );
bool ok;
@@ -2135,7 +2135,7 @@ TQHttp::State TQHttp::state() const
}
/*!
- Returns the last error that occurred. This is useful to tqfind out
+ Returns the last error that occurred. This is useful to find out
what happened when receiving a requestFinished() or a done()
signal with the \c error argument \c TRUE.