diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-06 13:44:12 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-06 13:52:29 +0900 |
commit | e6077c30d14e9d662e8843c554db86c0d366d0b6 (patch) | |
tree | 672319afee32f0316bad258c0e9a1e0dd737bd61 /doc/man/man3/tqstring.3qt | |
parent | 8c029298d9d3f1f84b65ac4a3a16cd1fa28d9cde (diff) | |
download | tqt3-e6077c30d14e9d662e8843c554db86c0d366d0b6.tar.gz tqt3-e6077c30d14e9d662e8843c554db86c0d366d0b6.zip |
Rename str nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/man/man3/tqstring.3qt')
-rw-r--r-- | doc/man/man3/tqstring.3qt | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/doc/man/man3/tqstring.3qt b/doc/man/man3/tqstring.3qt index 9c49b24b0..596dc4098 100644 --- a/doc/man/man3/tqstring.3qt +++ b/doc/man/man3/tqstring.3qt @@ -11,30 +11,30 @@ TQString \- Abstraction of Unicode text and the classic C '\0'-terminated ch .SH SYNOPSIS All the functions in this class are reentrant when TQt is built with thread support.</p> .PP -\fC#include <ntqstring.h>\fR +\fC#include <tqstring.h>\fR .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQString\fR ()" +.BI "\fBTQString\fR ()" .br .ti -1c -.BI "\fBQString\fR ( TQChar ch )" +.BI "\fBTQString\fR ( TQChar ch )" .br .ti -1c -.BI "\fBQString\fR ( const TQString & s )" +.BI "\fBTQString\fR ( const TQString & s )" .br .ti -1c -.BI "\fBQString\fR ( const QByteArray & ba )" +.BI "\fBTQString\fR ( const QByteArray & ba )" .br .ti -1c -.BI "\fBQString\fR ( const TQChar * unicode, uint length )" +.BI "\fBTQString\fR ( const TQChar * unicode, uint length )" .br .ti -1c -.BI "\fBQString\fR ( const char * str )" +.BI "\fBTQString\fR ( const char * str )" .br .ti -1c -.BI "\fBQString\fR ( const std::string & str )" +.BI "\fBTQString\fR ( const std::string & str )" .br .ti -1c .BI "\fB~TQString\fR ()" @@ -599,15 +599,15 @@ TQString uses implicit sharing, which makes it very efficient and easy to use. .PP In all of the TQString methods that take \fCconst char *\fR parameters, the \fCconst char *\fR is interpreted as a classic C-style '\0'-terminated ASCII string. It is legal for the \fCconst char *\fR parameter to be 0. If the \fCconst char *\fR is not '\0'-terminated, the results are undefined. Functions that copy classic C strings into a TQString will not copy the terminating '\0' character. The TQChar array of the TQString (as returned by unicode()) is generally not terminated by a '\0'. If you need to pass a TQString to a function that requires a C '\0'-terminated string use latin1(). .PP -A TQString that has not been assigned to anything is \fInull\fR, i.e. both the length and data pointer is 0. A TQString that references the empty string ("", a single '\0' char) is \fIempty\fR. Both null and empty QStrings are legal parameters to the methods. Assigning \fC(const char *) 0\fR to TQString gives a null TQString. For convenience, TQString::null is a null TQString. When sorting, empty strings come first, followed by non-empty strings, followed by null strings. We recommend using \fCif ( !str.isNull() )\fR to check for a non-null string rather than \fCif ( !str )\fR; see operator!() for an explanation. +A TQString that has not been assigned to anything is \fInull\fR, i.e. both the length and data pointer is 0. A TQString that references the empty string ("", a single '\0' char) is \fIempty\fR. Both null and empty TQStrings are legal parameters to the methods. Assigning \fC(const char *) 0\fR to TQString gives a null TQString. For convenience, TQString::null is a null TQString. When sorting, empty strings come first, followed by non-empty strings, followed by null strings. We recommend using \fCif ( !str.isNull() )\fR to check for a non-null string rather than \fCif ( !str )\fR; see operator!() for an explanation. .PP Note that if you find that you are mixing usage of QCString, TQString, and QByteArray, this causes lots of unnecessary copying and might indicate that the true nature of the data you are dealing with is uncertain. If the data is '\0'-terminated 8-bit data, use QCString; if it is unterminated (i.e. contains '\0's) 8-bit data, use QByteArray; if it is text, use TQString. .PP -Lists of strings are handled by the QStringList class. You can split a string into a list of strings using QStringList::split(), and join a list of strings into a single string with an optional separator using QStringList::join(). You can obtain a list of strings from a string list that contain a particular substring or that match a particular regex using QStringList::grep(). +Lists of strings are handled by the TQStringList class. You can split a string into a list of strings using TQStringList::split(), and join a list of strings into a single string with an optional separator using TQStringList::join(). You can obtain a list of strings from a string list that contain a particular substring or that match a particular regex using TQStringList::grep(). .PP \fBNote for C programmers\fR .PP -Due to C++'s type system and the fact that TQString is implicitly shared, QStrings can be treated like ints or other simple base types. For example: +Due to C++'s type system and the fact that TQString is implicitly shared, TQStrings can be treated like ints or other simple base types. For example: .PP .nf .br @@ -659,15 +659,15 @@ See also TQChar, QCString, QByteArray, QConstString, Implicitly and Explicitly S .SS "Member Type Documentation" .SH "TQString::SectionFlags" .TP -\fCQString::SectionDefault\fR - Empty fields are counted, leading and trailing separators are not included, and the separator is compared case sensitively. +\fCTQString::SectionDefault\fR - Empty fields are counted, leading and trailing separators are not included, and the separator is compared case sensitively. .TP -\fCQString::SectionSkipEmpty\fR - Treat empty fields as if they don't exist, i.e. they are not considered as far as \fIstart\fR and \fIend\fR are concerned. +\fCTQString::SectionSkipEmpty\fR - Treat empty fields as if they don't exist, i.e. they are not considered as far as \fIstart\fR and \fIend\fR are concerned. .TP -\fCQString::SectionIncludeLeadingSep\fR - Include the leading separator (if any) in the result string. +\fCTQString::SectionIncludeLeadingSep\fR - Include the leading separator (if any) in the result string. .TP -\fCQString::SectionIncludeTrailingSep\fR - Include the trailing separator (if any) in the result string. +\fCTQString::SectionIncludeTrailingSep\fR - Include the trailing separator (if any) in the result string. .TP -\fCQString::SectionCaseInsensitiveSeps\fR - Compare the separator case-insensitively. +\fCTQString::SectionCaseInsensitiveSeps\fR - Compare the separator case-insensitively. .PP Any of the last four values can be OR-ed together to form a flag. .PP @@ -1879,7 +1879,7 @@ If \fIstart\fR or \fIend\fR is negative, we count fields from the right of the s .br .fi .PP -See also QStringList::split(). +See also TQStringList::split(). .PP Examples: .)l chart/element.cpp and network/ftpclient/ftpmainwindow.ui.h. @@ -1914,7 +1914,7 @@ If \fIstart\fR or \fIend\fR is negative, we count fields from the right of the s .br .fi .PP -See also QStringList::split(). +See also TQStringList::split(). .SH "TQString TQString::section ( const QRegExp & reg, int start, int end = 0xffffffff, int flags = SectionDefault ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP @@ -1948,7 +1948,7 @@ If \fIstart\fR or \fIend\fR is negative, we count fields from the right of the s .PP \fBWarning:\fR Using this QRegExp version is much more expensive than the overloaded string and character versions. .PP -See also QStringList::split() and simplifyWhiteSpace(). +See also TQStringList::split() and simplifyWhiteSpace(). .SH "TQString & TQString::setAscii ( const char * str, int len = -1 )" Sets this string to \fIstr\fR, interpreted as a classic 8-bit ASCII C string. If \fIlen\fR is -1 (the default), then it is set to strlen(str). .PP @@ -2528,7 +2528,7 @@ Reads a string from the stream \fIs\fR into string \fIstr\fR. See also Format of the QDataStream operators .SH "SEE ALSO" -.BR http://doc.trolltech.com/ntqstring.html +.BR http://doc.trolltech.com/tqstring.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the |