diff options
Diffstat (limited to 'doc/man/man3/tqurl.3qt')
-rw-r--r-- | doc/man/man3/tqurl.3qt | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/doc/man/man3/tqurl.3qt b/doc/man/man3/tqurl.3qt index d00df24c2..f6ae5a416 100644 --- a/doc/man/man3/tqurl.3qt +++ b/doc/man/man3/tqurl.3qt @@ -25,7 +25,7 @@ Inherited by TQUrlOperator. .BI "\fBTQUrl\fR ( const TQUrl & url )" .br .ti -1c -.BI "\fBTQUrl\fR ( const TQUrl & url, const TQString & relUrl, bool checkSlash = FALSE )" +.BI "\fBTQUrl\fR ( const TQUrl & url, const TQString & relUrl, bool checkSlash = false )" .br .ti -1c .BI "virtual \fB~TQUrl\fR ()" @@ -73,7 +73,7 @@ Inherited by TQUrlOperator. .BI "bool \fBhasPort\fR () const" .br .ti -1c -.BI "TQString \fBpath\fR ( bool correct = TRUE ) const" +.BI "TQString \fBpath\fR ( bool correct = true ) const" .br .ti -1c .BI "virtual void \fBsetPath\fR ( const TQString & path )" @@ -136,7 +136,7 @@ Inherited by TQUrlOperator. .BI "\fBoperator TQString\fR () const" .br .ti -1c -.BI "virtual TQString \fBtoString\fR ( bool encodedPath = FALSE, bool forcePrependProtocol = TRUE ) const" +.BI "virtual TQString \fBtoString\fR ( bool encodedPath = false, bool forcePrependProtocol = true ) const" .br .ti -1c .BI "virtual bool \fBcdUp\fR ()" @@ -226,7 +226,7 @@ To make it easy to work with TQUrls and TQStrings, TQUrl implements the necessar .br .fi .PP -Use the static functions, encode() and decode() to encode or decode a URL in a string. (They operate on the string in-place.) The isRelativeUrl() static function returns TRUE if the given string is a relative URL. +Use the static functions, encode() and decode() to encode or decode a URL in a string. (They operate on the string in-place.) The isRelativeUrl() static function returns true if the given string is a relative URL. .PP If you want to use a URL to work on a hierarchical structure (e.g. a local or remote filesystem), you might want to use the subclass TQUrlOperator. .PP @@ -240,7 +240,7 @@ Constructs a URL by parsing the string \fIurl\fR. If you pass a string like "/home/qt", the "file" protocol is assumed. .SH "TQUrl::TQUrl ( const TQUrl & url )" Copy constructor. Copies the data of \fIurl\fR. -.SH "TQUrl::TQUrl ( const TQUrl & url, const TQString & relUrl, bool checkSlash = FALSE )" +.SH "TQUrl::TQUrl ( const TQUrl & url, const TQString & relUrl, bool checkSlash = false )" Constructs an URL taking \fIurl\fR as the base (context) and \fIrelUrl\fR as a relative URL to \fIurl\fR. If \fIrelUrl\fR is not relative, \fIrelUrl\fR is taken as the new URL. .PP For example, the path of @@ -270,7 +270,7 @@ Similarly, .fi will result in a new URL, with "/usr/local" as the path and "file" as the protocol. .PP -Normally it is expected that the path of \fIurl\fR points to a directory, even if the path has no slash at the end. But if you want the constructor to handle the last part of the path as a file name if there is no slash at the end, and to let it be replaced by the file name of \fIrelUrl\fR (if it contains one), set \fIcheckSlash\fR to TRUE. +Normally it is expected that the path of \fIurl\fR points to a directory, even if the path has no slash at the end. But if you want the constructor to handle the last part of the path as a file name if there is no slash at the end, and to let it be replaced by the file name of \fIrelUrl\fR (if it contains one), set \fIcheckSlash\fR to true. .SH "TQUrl::~TQUrl ()\fC [virtual]\fR" Destructor. .SH "void TQUrl::addPath ( const TQString & pa )\fC [virtual]\fR" @@ -328,29 +328,29 @@ See also setFileName(). .PP Example: network/networkprotocol/nntp.cpp. .SH "bool TQUrl::hasHost () const" -Returns TRUE if the URL contains a hostname; otherwise returns FALSE. +Returns true if the URL contains a hostname; otherwise returns false. .PP See also setHost(). .SH "bool TQUrl::hasPassword () const" -Returns TRUE if the URL contains a password; otherwise returns FALSE. +Returns true if the URL contains a password; otherwise returns false. .PP \fBWarning:\fR Passwords passed in URLs are normally \fIinsecure\fR; this is due to the mechanism, not because of Qt. .PP See also setPassword() and setUser(). .SH "bool TQUrl::hasPath () const" -Returns TRUE if the URL contains a path; otherwise returns FALSE. +Returns true if the URL contains a path; otherwise returns false. .PP See also path() and setPath(). .SH "bool TQUrl::hasPort () const" -Returns TRUE if the URL contains a port; otherwise returns FALSE. +Returns true if the URL contains a port; otherwise returns false. .PP See also setPort(). .SH "bool TQUrl::hasRef () const" -Returns TRUE if the URL has a reference; otherwise returns FALSE. +Returns true if the URL has a reference; otherwise returns false. .PP See also setRef(). .SH "bool TQUrl::hasUser () const" -Returns TRUE if the URL contains a username; otherwise returns FALSE. +Returns true if the URL contains a username; otherwise returns false. .PP See also setUser() and setPassword(). .SH "TQString TQUrl::host () const" @@ -360,13 +360,13 @@ See also setHost() and hasHost(). .PP Example: network/archivesearch/archivedialog.ui.h. .SH "bool TQUrl::isLocalFile () const" -Returns TRUE if the URL is a local file; otherwise returns FALSE. +Returns true if the URL is a local file; otherwise returns false. .PP Example: tqdir/tqdir.cpp. .SH "bool TQUrl::isRelativeUrl ( const TQString & url )\fC [static]\fR" -Returns TRUE if \fIurl\fR is relative; otherwise returns FALSE. +Returns true if \fIurl\fR is relative; otherwise returns false. .SH "bool TQUrl::isValid () const" -Returns TRUE if the URL is valid; otherwise returns FALSE. A URL is invalid if it cannot be parsed, for example. +Returns true if the URL is valid; otherwise returns false. A URL is invalid if it cannot be parsed, for example. .SH "TQUrl::operator TQString () const" Composes a string version of the URL and returns it. .PP @@ -380,11 +380,11 @@ Parses \fIurl\fR and assigns the resulting data to this class. .PP If you pass a string like "/home/qt" the "file" protocol will be assumed. .SH "bool TQUrl::operator== ( const TQUrl & url ) const" -Compares this URL with \fIurl\fR and returns TRUE if they are equal; otherwise returns FALSE. +Compares this URL with \fIurl\fR and returns true if they are equal; otherwise returns false. .SH "bool TQUrl::operator== ( const TQString & url ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP -Compares this URL with \fIurl\fR. \fIurl\fR is parsed first. Returns TRUE if \fIurl\fR is equal to this url; otherwise returns FALSE. +Compares this URL with \fIurl\fR. \fIurl\fR is parsed first. Returns true if \fIurl\fR is equal to this url; otherwise returns false. .SH "bool TQUrl::parse ( const TQString & url )\fC [virtual protected]\fR" Parses the \fIurl\fR. .SH "TQString TQUrl::password () const" @@ -393,8 +393,8 @@ Returns the password of the URL. \fBWarning:\fR Passwords passed in URLs are normally \fIinsecure\fR; this is due to the mechanism, not because of Qt. .PP See also setPassword() and setUser(). -.SH "TQString TQUrl::path ( bool correct = TRUE ) const" -Returns the path of the URL. If \fIcorrect\fR is TRUE, the path is cleaned (deals with too many or too few slashes, cleans things like "/../..", etc). Otherwise path() returns exactly the path that was parsed or set. +.SH "TQString TQUrl::path ( bool correct = true ) const" +Returns the path of the URL. If \fIcorrect\fR is true, the path is cleaned (deals with too many or too few slashes, cleans things like "/../..", etc). Otherwise path() returns exactly the path that was parsed or set. .PP See also setPath() and hasPath(). .PP @@ -461,8 +461,8 @@ See also ref(), hasRef(), and encode(). Sets the username of the URL to \fIuser\fR. .PP See also user() and setPassword(). -.SH "TQString TQUrl::toString ( bool encodedPath = FALSE, bool forcePrependProtocol = TRUE ) const\fC [virtual]\fR" -Composes a string version of the URL and returns it. If \fIencodedPath\fR is TRUE the path in the returned string is encoded. If \fIforcePrependProtocol\fR is TRUE and \fIencodedPath\fR looks like a local filename, the "file:/" protocol is also prepended. +.SH "TQString TQUrl::toString ( bool encodedPath = false, bool forcePrependProtocol = true ) const\fC [virtual]\fR" +Composes a string version of the URL and returns it. If \fIencodedPath\fR is true the path in the returned string is encoded. If \fIforcePrependProtocol\fR is true and \fIencodedPath\fR looks like a local filename, the "file:/" protocol is also prepended. .PP See also encode() and decode(). .SH "TQString TQUrl::user () const" |