summaryrefslogtreecommitdiffstats
path: root/doc/html/tqstring.html
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-07-07 14:56:09 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-07-07 14:56:09 +0900
commit87d29563e3ccdeb7fea0197e262e667ef323ff9c (patch)
tree2d674f204c5205ca577a782e1b50583afd563972 /doc/html/tqstring.html
parent628b0bb74c3fc327efff8add9c73ada04b1cbea2 (diff)
downloadtqt3-87d29563e3ccdeb7fea0197e262e667ef323ff9c.tar.gz
tqt3-87d29563e3ccdeb7fea0197e262e667ef323ff9c.zip
Rename utility class nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/tqstring.html')
-rw-r--r--doc/html/tqstring.html60
1 files changed, 30 insertions, 30 deletions
diff --git a/doc/html/tqstring.html b/doc/html/tqstring.html
index 478935b9c..86556119f 100644
--- a/doc/html/tqstring.html
+++ b/doc/html/tqstring.html
@@ -266,18 +266,18 @@ convenience, <a href="tqstring.html#TQString-null">TQString::null</a> is a null
empty strings come first, followed by non-empty strings, followed
by null strings. We recommend using <tt>if ( !str.isNull() )</tt> to
check for a non-null string rather than <tt>if ( !str )</tt>; see <a href="#operator!">operator!</a>() for an explanation.
-<p> Note that if you find that you are mixing usage of <a href="ntqcstring.html">TQCString</a>,
-TQString, and <a href="qbytearray.html">TQByteArray</a>, this causes lots of unnecessary
+<p> Note that if you find that you are mixing usage of <a href="tqcstring.html">TQCString</a>,
+TQString, and <a href="tqbytearray.html">TQByteArray</a>, 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 '&#92;0'-terminated 8-bit
-data, use <a href="ntqcstring.html">TQCString</a>; if it is unterminated (i.e. contains '&#92;0's)
-8-bit data, use <a href="qbytearray.html">TQByteArray</a>; if it is text, use TQString.
+data, use <a href="tqcstring.html">TQCString</a>; if it is unterminated (i.e. contains '&#92;0's)
+8-bit data, use <a href="tqbytearray.html">TQByteArray</a>; if it is text, use TQString.
<p> Lists of strings are handled by the <a href="tqstringlist.html">TQStringList</a> class. You can
split a string into a list of strings using <a href="tqstringlist.html#split">TQStringList::split</a>(),
and join a list of strings into a single string with an optional
separator using <a href="tqstringlist.html#join">TQStringList::join</a>(). You can obtain a list of
strings from a string list that contain a particular substring or
-that match a particular <a href="ntqregexp.html">regex</a> using
+that match a particular <a href="tqregexp.html">regex</a> using
<a href="tqstringlist.html#grep">TQStringList::grep</a>().
<p> <b>Note for C programmers</b>
<p> Due to C++'s type system and the fact that TQString is <a href="shclass.html#implicitly-shared">implicitly shared</a>, TQStrings can be treated like ints or other simple base
@@ -316,8 +316,8 @@ incrementing a reference count. TQString (like all TQt's implicitly
shared classes) operates on a copy-on-write basis, only copying if
an instance is actually changed.
<p> If you wish to create a <a href="shclass.html#deep-copy">deep copy</a> of a TQString without losing any
-Unicode information then you should use <a href="ntqdeepcopy.html">TQDeepCopy</a>.
-<p> <p>See also <a href="qchar.html">TQChar</a>, <a href="ntqcstring.html">TQCString</a>, <a href="qbytearray.html">TQByteArray</a>, <a href="qconststring.html">TQConstString</a>, <a href="shared.html">Implicitly and Explicitly Shared Classes</a>, <a href="text.html">Text Related Classes</a>, and <a href="tools.html">Non-GUI Classes</a>.
+Unicode information then you should use <a href="tqdeepcopy.html">TQDeepCopy</a>.
+<p> <p>See also <a href="qchar.html">TQChar</a>, <a href="tqcstring.html">TQCString</a>, <a href="tqbytearray.html">TQByteArray</a>, <a href="qconststring.html">TQConstString</a>, <a href="shared.html">Implicitly and Explicitly Shared Classes</a>, <a href="text.html">Text Related Classes</a>, and <a href="tools.html">Non-GUI Classes</a>.
<hr><h2>Member Type Documentation</h2>
<h3 class=fn><a name="SectionFlags-enum"></a>TQString::SectionFlags</h3>
@@ -355,7 +355,7 @@ Constructs a string of length one, containing the character <em>ch</em>.
Constructs an <a href="shclass.html#implicitly-shared">implicitly shared</a> copy of <em>s</em>. This is very fast
since it only involves incrementing a reference count.
-<h3 class=fn><a name="TQString-4"></a>TQString::TQString ( const&nbsp;<a href="qbytearray.html">TQByteArray</a>&nbsp;&amp;&nbsp;ba )
+<h3 class=fn><a name="TQString-4"></a>TQString::TQString ( const&nbsp;<a href="tqbytearray.html">TQByteArray</a>&nbsp;&amp;&nbsp;ba )
</h3>
Constructs a string that is a <a href="shclass.html#deep-copy">deep copy</a> of <em>ba</em> interpreted as a
classic C string.
@@ -427,7 +427,7 @@ the result.
the result.
<p> Equivalent to <a href="#operator+-eq">operator+=</a>().
-<h3 class=fn><a href="tqstring.html">TQString</a>&nbsp;&amp; <a name="append-4"></a>TQString::append ( const&nbsp;<a href="qbytearray.html">TQByteArray</a>&nbsp;&amp;&nbsp;str )
+<h3 class=fn><a href="tqstring.html">TQString</a>&nbsp;&amp; <a name="append-4"></a>TQString::append ( const&nbsp;<a href="tqbytearray.html">TQByteArray</a>&nbsp;&amp;&nbsp;str )
</h3>
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> Appends <em>str</em> to the string and returns a reference to the result.
@@ -746,7 +746,7 @@ there are two instances of "ana" in "bananas".
<p> <p>See also <a href="#findRev">findRev</a>().
-<h3 class=fn>int <a name="contains-5"></a>TQString::contains ( const&nbsp;<a href="ntqregexp.html">TQRegExp</a>&nbsp;&amp;&nbsp;rx ) const
+<h3 class=fn>int <a name="contains-5"></a>TQString::contains ( const&nbsp;<a href="tqregexp.html">TQRegExp</a>&nbsp;&amp;&nbsp;rx ) const
</h3>
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> Returns the number of times the regexp, <em>rx</em>, matches in the
@@ -755,7 +755,7 @@ string.
there are four instances of "ana" or "ama".
<p> <pre>
TQString str = "banana and panama";
- <a href="ntqregexp.html">TQRegExp</a> rxp = TQRegExp( "a[nm]a", TRUE, FALSE );
+ <a href="tqregexp.html">TQRegExp</a> rxp = TQRegExp( "a[nm]a", TRUE, FALSE );
int i = str.<a href="#contains">contains</a>( rxp ); // i == 4
</pre>
@@ -805,9 +805,9 @@ used.
</pre>
-<h3 class=fn>int <a name="find"></a>TQString::find ( const&nbsp;<a href="ntqregexp.html">TQRegExp</a>&nbsp;&amp;&nbsp;rx, int&nbsp;index = 0 ) const
+<h3 class=fn>int <a name="find"></a>TQString::find ( const&nbsp;<a href="tqregexp.html">TQRegExp</a>&nbsp;&amp;&nbsp;rx, int&nbsp;index = 0 ) const
</h3>
-Finds the first match of the <a href="ntqregexp.html#regular-expression">regular expression</a> <em>rx</em>, starting
+Finds the first match of the <a href="tqregexp.html#regular-expression">regular expression</a> <em>rx</em>, starting
from position <em>index</em>. If <em>index</em> is -1, the search starts at
the last character; if -2, at the next to last character and so
on. (See <a href="#findRev">findRev</a>() for searching backwards.)
@@ -903,7 +903,7 @@ otherwise the search is case insensitive.
</pre>
-<h3 class=fn>int <a name="findRev-5"></a>TQString::findRev ( const&nbsp;<a href="ntqregexp.html">TQRegExp</a>&nbsp;&amp;&nbsp;rx, int&nbsp;index = -1 ) const
+<h3 class=fn>int <a name="findRev-5"></a>TQString::findRev ( const&nbsp;<a href="tqregexp.html">TQRegExp</a>&nbsp;&amp;&nbsp;rx, int&nbsp;index = -1 ) const
</h3>
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> Finds the first match of the regexp <em>rx</em>, starting at position <em>index</em> and searching backwards. If the index is -1, the search
@@ -996,7 +996,7 @@ and returns a reference to the string.
<p> <p>See also <a href="#remove">remove</a>() and <a href="#replace">replace</a>().
<p>Examples: <a href="themes-example.html#x337">themes/themes.cpp</a> and <a href="xform-example.html#x1264">xform/xform.cpp</a>.
-<h3 class=fn><a href="tqstring.html">TQString</a>&nbsp;&amp; <a name="insert-2"></a>TQString::insert ( uint&nbsp;index, const&nbsp;<a href="qbytearray.html">TQByteArray</a>&nbsp;&amp;&nbsp;s )
+<h3 class=fn><a href="tqstring.html">TQString</a>&nbsp;&amp; <a name="insert-2"></a>TQString::insert ( uint&nbsp;index, const&nbsp;<a href="tqbytearray.html">TQByteArray</a>&nbsp;&amp;&nbsp;s )
</h3>
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> Inserts <em>s</em> into the string at position <em>index</em> and returns
@@ -1112,7 +1112,7 @@ padded by the <em>fill</em> character.
<p> <p>See also <a href="#isNull">isNull</a>() and <a href="#isEmpty">isEmpty</a>().
<p>Examples: <a href="dirview-example.html#x1702">dirview/dirview.cpp</a>, <a href="fileiconview-example.html#x870">fileiconview/qfileiconview.cpp</a>, <a href="networkprotocol-example.html#x693">network/networkprotocol/nntp.cpp</a>, <a href="rot-example.html#x1372">rot13/rot13.cpp</a>, and <a href="themes-example.html#x339">themes/themes.cpp</a>.
-<h3 class=fn><a href="ntqcstring.html">TQCString</a> <a name="local8Bit"></a>TQString::local8Bit () const
+<h3 class=fn><a href="tqcstring.html">TQCString</a> <a name="local8Bit"></a>TQString::local8Bit () const
</h3>
Returns the string encoded in a locale-specific format. On X11,
this is the <a href="tqtextcodec.html#codecForLocale">TQTextCodec::codecForLocale</a>(). On Windows, it is a
@@ -1281,7 +1281,7 @@ which you wish to remain Unicode-clean.
</h3>
Appends <em>str</em> to the string and returns a reference to the string.
-<h3 class=fn><a href="tqstring.html">TQString</a>&nbsp;&amp; <a name="operator+-eq-2"></a>TQString::operator+= ( const&nbsp;<a href="qbytearray.html">TQByteArray</a>&nbsp;&amp;&nbsp;str )
+<h3 class=fn><a href="tqstring.html">TQString</a>&nbsp;&amp; <a name="operator+-eq-2"></a>TQString::operator+= ( const&nbsp;<a href="tqbytearray.html">TQByteArray</a>&nbsp;&amp;&nbsp;str )
</h3>
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
@@ -1334,7 +1334,7 @@ to this string and returns a reference to this string.
<p> Makes a <a href="shclass.html#deep-copy">deep copy</a> of <em>s</em> and returns a reference to the deep
copy.
-<h3 class=fn><a href="tqstring.html">TQString</a>&nbsp;&amp; <a name="operator-eq-5"></a>TQString::operator= ( const&nbsp;<a href="ntqcstring.html">TQCString</a>&nbsp;&amp;&nbsp;cstr )
+<h3 class=fn><a href="tqstring.html">TQString</a>&nbsp;&amp; <a name="operator-eq-5"></a>TQString::operator= ( const&nbsp;<a href="tqcstring.html">TQCString</a>&nbsp;&amp;&nbsp;cstr )
</h3>
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> Assigns a <a href="shclass.html#deep-copy">deep copy</a> of <em>cstr</em>, interpreted as a classic C
@@ -1404,7 +1404,7 @@ reference to the string.
<p> Equivalent to <a href="#insert">insert</a>(0, <em>ch</em>).
<p> <p>See also <a href="#insert">insert</a>().
-<h3 class=fn><a href="tqstring.html">TQString</a>&nbsp;&amp; <a name="prepend-4"></a>TQString::prepend ( const&nbsp;<a href="qbytearray.html">TQByteArray</a>&nbsp;&amp;&nbsp;s )
+<h3 class=fn><a href="tqstring.html">TQString</a>&nbsp;&amp; <a name="prepend-4"></a>TQString::prepend ( const&nbsp;<a href="tqbytearray.html">TQByteArray</a>&nbsp;&amp;&nbsp;s )
</h3>
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> Inserts <em>s</em> at the beginning of the string and returns a reference to the string.
@@ -1479,9 +1479,9 @@ This is an overloaded member function, provided for convenience. It behaves esse
<p> Removes every occurrence of <em>str</em> in the string. Returns a
reference to the string.
-<h3 class=fn><a href="tqstring.html">TQString</a>&nbsp;&amp; <a name="remove-6"></a>TQString::remove ( const&nbsp;<a href="ntqregexp.html">TQRegExp</a>&nbsp;&amp;&nbsp;rx )
+<h3 class=fn><a href="tqstring.html">TQString</a>&nbsp;&amp; <a name="remove-6"></a>TQString::remove ( const&nbsp;<a href="tqregexp.html">TQRegExp</a>&nbsp;&amp;&nbsp;rx )
</h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
-<p> Removes every occurrence of the <a href="ntqregexp.html#regular-expression">regular expression</a> <em>rx</em> in the
+<p> Removes every occurrence of the <a href="tqregexp.html#regular-expression">regular expression</a> <em>rx</em> in the
string. Returns a reference to the string.
<p> This is the same as <a href="#replace">replace</a>(<em>rx</em>, "").
@@ -1561,7 +1561,7 @@ otherwise the search is case insensitive.
</pre>
-<h3 class=fn><a href="tqstring.html">TQString</a>&nbsp;&amp; <a name="replace-8"></a>TQString::replace ( const&nbsp;<a href="ntqregexp.html">TQRegExp</a>&nbsp;&amp;&nbsp;rx, const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;after )
+<h3 class=fn><a href="tqstring.html">TQString</a>&nbsp;&amp; <a name="replace-8"></a>TQString::replace ( const&nbsp;<a href="tqregexp.html">TQRegExp</a>&nbsp;&amp;&nbsp;rx, const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;after )
</h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> Replaces every occurrence of the regexp <em>rx</em> in the string with
<em>after</em>. Returns a reference to the string. For example:
@@ -1571,7 +1571,7 @@ otherwise the search is case insensitive.
// s == "ba"
</pre>
-<p> For regexps containing <a href="ntqregexp.html#capturing-text">capturing
+<p> For regexps containing <a href="tqregexp.html#capturing-text">capturing
parentheses</a>, occurrences of <b>&#92;1</b>, <b>&#92;2</b>, ...,
in <em>after</em> are replaced with <em>rx</em>.cap(1), cap(2), ...
<p> <pre>
@@ -1580,7 +1580,7 @@ in <em>after</em> are replaced with <em>rx</em>.cap(1), cap(2), ...
// t == "A \\emph{bon mot}."
</pre>
-<p> <p>See also <a href="#find">find</a>(), <a href="#findRev">findRev</a>(), and <a href="ntqregexp.html#cap">TQRegExp::cap</a>().
+<p> <p>See also <a href="#find">find</a>(), <a href="#findRev">findRev</a>(), and <a href="tqregexp.html#cap">TQRegExp::cap</a>().
<h3 class=fn><a href="tqstring.html">TQString</a>&nbsp;&amp; <a name="replace-9"></a>TQString::replace ( <a href="qchar.html">TQChar</a>&nbsp;c1, <a href="qchar.html">TQChar</a>&nbsp;c2 )
</h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
@@ -1716,12 +1716,12 @@ right-most field being -2, and so on.
<p> <p>See also <a href="tqstringlist.html#split">TQStringList::split</a>().
-<h3 class=fn><a href="tqstring.html">TQString</a> <a name="section-5"></a>TQString::section ( const&nbsp;<a href="ntqregexp.html">TQRegExp</a>&nbsp;&amp;&nbsp;reg, int&nbsp;start, int&nbsp;end = 0xffffffff, int&nbsp;flags = SectionDefault ) const
+<h3 class=fn><a href="tqstring.html">TQString</a> <a name="section-5"></a>TQString::section ( const&nbsp;<a href="tqregexp.html">TQRegExp</a>&nbsp;&amp;&nbsp;reg, int&nbsp;start, int&nbsp;end = 0xffffffff, int&nbsp;flags = SectionDefault ) const
</h3>
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> This function returns a section of the string.
<p> This string is treated as a sequence of fields separated by the
-<a href="ntqregexp.html#regular-expression">regular expression</a>, <em>reg</em>. The returned string consists of the
+<a href="tqregexp.html#regular-expression">regular expression</a>, <em>reg</em>. The returned string consists of the
fields from position <em>start</em> to position <em>end</em> inclusive. If <em>end</em> is not specified, all fields from position <em>start</em> to the end
of the string are included. Fields are numbered 0, 1, 2, etc., counting
from the left, and -1, -2, etc., counting from right to left.
@@ -1731,7 +1731,7 @@ to skip empty fields and how to deal with leading and trailing
separators; see <a href="#SectionFlags-enum">SectionFlags</a>.
<p> <pre>
TQString line( "forename\tmiddlename surname \t \t phone" );
- <a href="ntqregexp.html">TQRegExp</a> sep( "\s+" );
+ <a href="tqregexp.html">TQRegExp</a> sep( "\s+" );
TQString s = line.<a href="#section">section</a>( sep, 2, 2 ); // s == "surname"
</pre>
@@ -1740,11 +1740,11 @@ of the string, the right-most field being -1, the one from
right-most field being -2, and so on.
<p> <pre>
TQString line( "forename\tmiddlename surname \t \t phone" );
- <a href="ntqregexp.html">TQRegExp</a> sep( "\\s+" );
+ <a href="tqregexp.html">TQRegExp</a> sep( "\\s+" );
TQString s = line.<a href="#section">section</a>( sep, -3, -2 ); // s == "middlename surname"
</pre>
-<p> <b>Warning:</b> Using this <a href="ntqregexp.html">TQRegExp</a> version is much more expensive than
+<p> <b>Warning:</b> Using this <a href="tqregexp.html">TQRegExp</a> version is much more expensive than
the overloaded string and character versions.
<p> <p>See also <a href="tqstringlist.html#split">TQStringList::split</a>() and <a href="#simplifyWhiteSpace">simplifyWhiteSpace</a>().
@@ -2223,7 +2223,7 @@ Returns an uppercase copy of the string.
<p> <p>See also <a href="#lower">lower</a>().
<p>Examples: <a href="scribble-example.html#x942">scribble/scribble.cpp</a> and <a href="sql.html#x2240">sql/overview/custom1/main.cpp</a>.
-<h3 class=fn><a href="ntqcstring.html">TQCString</a> <a name="utf8"></a>TQString::utf8 () const
+<h3 class=fn><a href="tqcstring.html">TQCString</a> <a name="utf8"></a>TQString::utf8 () const
</h3>
Returns the string encoded in UTF-8 format.
<p> See <a href="tqtextcodec.html">TQTextCodec</a> for more diverse coding/decoding of Unicode strings.