diff options
Diffstat (limited to 'doc/html/tqstring.html')
-rw-r--r-- | doc/html/tqstring.html | 106 |
1 files changed, 53 insertions, 53 deletions
diff --git a/doc/html/tqstring.html b/doc/html/tqstring.html index 380b8825f..0fb529254 100644 --- a/doc/html/tqstring.html +++ b/doc/html/tqstring.html @@ -253,7 +253,7 @@ parameters, the <tt>const char *</tt> is interpreted as a classic C-style '\0'-terminated ASCII string. It is legal for the <tt>const char *</tt> parameter to be 0. If the <tt>const char *</tt> 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 <a href="qchar.html">TQChar</a> array of the TQString (as returned by +'\0' character. The <a href="tqchar.html">TQChar</a> array of the TQString (as returned by <a href="#unicode">unicode</a>()) 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 <a href="#latin1">latin1</a>(). @@ -317,7 +317,7 @@ 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="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>. +<p> <p>See also <a href="tqchar.html">TQChar</a>, <a href="tqcstring.html">TQCString</a>, <a href="tqbytearray.html">TQByteArray</a>, <a href="tqconststring.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> @@ -346,7 +346,7 @@ case-insensitively. are 0. <p> <p>See also <a href="#isNull">isNull</a>(). -<h3 class=fn><a name="TQString-2"></a>TQString::TQString ( <a href="qchar.html">TQChar</a> ch ) +<h3 class=fn><a name="TQString-2"></a>TQString::TQString ( <a href="tqchar.html">TQChar</a> ch ) </h3> Constructs a string of length one, containing the character <em>ch</em>. @@ -360,10 +360,10 @@ since it only involves incrementing a reference count. 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. -<h3 class=fn><a name="TQString-5"></a>TQString::TQString ( const <a href="qchar.html">TQChar</a> * unicode, uint length ) +<h3 class=fn><a name="TQString-5"></a>TQString::TQString ( const <a href="tqchar.html">TQChar</a> * unicode, uint length ) </h3> Constructs a string that is a <a href="shclass.html#deep-copy">deep copy</a> of the first <em>length</em> -characters in the <a href="qchar.html">TQChar</a> array. +characters in the <a href="tqchar.html">TQChar</a> array. <p> If <em>unicode</em> and <em>length</em> are 0, then a null string is created. <p> If only <em>unicode</em> is 0, the string is empty but has <em>length</em> characters of space preallocated: TQString expands automatically @@ -419,7 +419,7 @@ result. the result. <p> Equivalent to <a href="#operator+-eq">operator+=</a>(). -<h3 class=fn><a href="tqstring.html">TQString</a> & <a name="append-3"></a>TQString::append ( <a href="qchar.html">TQChar</a> ch ) +<h3 class=fn><a href="tqstring.html">TQString</a> & <a name="append-3"></a>TQString::append ( <a href="tqchar.html">TQChar</a> ch ) </h3> <p> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. @@ -483,7 +483,7 @@ be between 2 and 36. replaced with a localized representation of <em>a</em>. The conversion uses the default locale. The default locale is determined from the system's locale settings at application startup. It can be changed -using <a href="ntqlocale.html#setDefault">TQLocale::setDefault</a>(). The 'L' flag is ignored if <em>base</em> is +using <a href="tqlocale.html#setDefault">TQLocale::setDefault</a>(). The 'L' flag is ignored if <em>base</em> is not 10. <p> <pre> TQString str; @@ -491,7 +491,7 @@ not 10. .arg( 63, 0, 16 ); // str == "Decimal 63 is 3f in hexadecimal" - TQLocale::<a href="ntqlocale.html#setDefault">setDefault</a>(TQLocale::English, TQLocale::UnitedStates); + TQLocale::<a href="tqlocale.html#setDefault">setDefault</a>(TQLocale::English, TQLocale::UnitedStates); str = <a href="#TQString">TQString</a>( "%1 %L2 %L3" ) .arg( 12345 ) .arg( 12345 ) @@ -584,7 +584,7 @@ significant digits (trailing zeroes are omitted). This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> <em>a</em> is assumed to be in the Latin-1 character set. -<h3 class=fn><a href="tqstring.html">TQString</a> <a name="arg-c"></a>TQString::arg ( <a href="qchar.html">TQChar</a> a, int fieldWidth = 0 ) const +<h3 class=fn><a href="tqstring.html">TQString</a> <a name="arg-c"></a>TQString::arg ( <a href="tqchar.html">TQChar</a> a, int fieldWidth = 0 ) const </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> @@ -629,14 +629,14 @@ does the same as <a href="#latin1">latin1</a>(). <p> <p>See also <a href="#fromAscii">fromAscii</a>(), <a href="#latin1">latin1</a>(), <a href="#utf8">utf8</a>(), and <a href="#local8Bit">local8Bit</a>(). <p>Example: <a href="networkprotocol-example.html#x690">network/networkprotocol/nntp.cpp</a>. -<h3 class=fn><a href="qchar.html">TQChar</a> <a name="at"></a>TQString::at ( uint i ) const +<h3 class=fn><a href="tqchar.html">TQChar</a> <a name="at"></a>TQString::at ( uint i ) const </h3> <p> Returns the character at index <em>i</em>, or 0 if <em>i</em> is beyond the length of the string. <p> <pre> const TQString string( "abcdefgh" ); - <a href="qchar.html">TQChar</a> ch = string.<a href="#at">at</a>( 4 ); + <a href="tqchar.html">TQChar</a> ch = string.<a href="#at">at</a>( 4 ); // ch == 'e' </pre> @@ -644,7 +644,7 @@ length of the string. const TQString &), then the non-const overload of <a href="#at">at</a>() will be used instead. -<h3 class=fn><a href="qcharref.html">TQCharRef</a> <a name="at-2"></a>TQString::at ( uint i ) +<h3 class=fn><a href="tqcharref.html">TQCharRef</a> <a name="at-2"></a>TQString::at ( uint i ) </h3> <p> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. @@ -694,18 +694,18 @@ interest to those experimenting with Arabic and other composition-rich texts. <p> Applies possible ligatures to a TQString. Useful when composition-rich text requires rendering with glyph-poor fonts, -but it also makes compositions such as <a href="qchar.html">TQChar</a>(0x0041) ('A') and +but it also makes compositions such as <a href="tqchar.html">TQChar</a>(0x0041) ('A') and TQChar(0x0308) (Unicode accent diaresis), giving TQChar(0x00c4) (German A Umlaut). -<h3 class=fn><a href="qchar.html">TQChar</a> <a name="constref"></a>TQString::constref ( uint i ) const +<h3 class=fn><a href="tqchar.html">TQChar</a> <a name="constref"></a>TQString::constref ( uint i ) const </h3> -<p> Returns the <a href="qchar.html">TQChar</a> at index <em>i</em> by value. +<p> Returns the <a href="tqchar.html">TQChar</a> at index <em>i</em> by value. <p> Equivalent to <a href="#at">at</a>(<em>i</em>). <p> <p>See also <a href="#ref">ref</a>(). -<h3 class=fn>int <a name="contains"></a>TQString::contains ( <a href="qchar.html">TQChar</a> c, bool cs = TRUE ) const +<h3 class=fn>int <a name="contains"></a>TQString::contains ( <a href="tqchar.html">TQChar</a> c, bool cs = TRUE ) const </h3> Returns the number of times the character <em>c</em> occurs in the string. @@ -793,7 +793,7 @@ otherwise the search is case insensitive. <p> <p>See also <a href="#startsWith">startsWith</a>(). <p>Example: <a href="tutorial2-04.html#x2561">chart/main.cpp</a>. -<h3 class=fn><a href="tqstring.html">TQString</a> & <a name="fill"></a>TQString::fill ( <a href="qchar.html">TQChar</a> c, int len = -1 ) +<h3 class=fn><a href="tqstring.html">TQString</a> & <a name="fill"></a>TQString::fill ( <a href="tqchar.html">TQChar</a> c, int len = -1 ) </h3> Fills the string with <em>len</em> characters of value <em>c</em>, and returns a reference to the string. @@ -821,7 +821,7 @@ was found. <p> <p>See also <a href="#findRev">findRev</a>(), <a href="#replace">replace</a>(), and <a href="#contains">contains</a>(). <p>Example: <a href="mail-example.html#x715">network/mail/smtp.cpp</a>. -<h3 class=fn>int <a name="find-2"></a>TQString::find ( <a href="qchar.html">TQChar</a> c, int index = 0, bool cs = TRUE ) const +<h3 class=fn>int <a name="find-2"></a>TQString::find ( <a href="tqchar.html">TQChar</a> c, int index = 0, bool cs = TRUE ) const </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Finds the first occurrence of the character <em>c</em>, starting at @@ -862,7 +862,7 @@ otherwise the search is case insensitive. <p> Equivalent to <a href="#findRev">findRev</a>(TQString(<em>str</em>), <em>index</em>). -<h3 class=fn>int <a name="findRev-2"></a>TQString::findRev ( <a href="qchar.html">TQChar</a> c, int index = -1, bool cs = TRUE ) const +<h3 class=fn>int <a name="findRev-2"></a>TQString::findRev ( <a href="tqchar.html">TQChar</a> c, int index = -1, bool cs = TRUE ) const </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Finds the first occurrence of the character <em>c</em>, starting at @@ -1008,13 +1008,13 @@ This is an overloaded member function, provided for convenience. It behaves esse <p> Inserts <em>s</em> into the string at position <em>index</em> and returns a reference to the string. -<h3 class=fn><a href="tqstring.html">TQString</a> & <a name="insert-4"></a>TQString::insert ( uint index, const <a href="qchar.html">TQChar</a> * s, uint len ) +<h3 class=fn><a href="tqstring.html">TQString</a> & <a name="insert-4"></a>TQString::insert ( uint index, const <a href="tqchar.html">TQChar</a> * s, uint len ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Inserts the first <em>len</em> characters in <em>s</em> into the string at position <em>index</em> and returns a reference to the string. -<h3 class=fn><a href="tqstring.html">TQString</a> & <a name="insert-5"></a>TQString::insert ( uint index, <a href="qchar.html">TQChar</a> c ) +<h3 class=fn><a href="tqstring.html">TQString</a> & <a name="insert-5"></a>TQString::insert ( uint index, <a href="tqchar.html">TQChar</a> c ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Insert <em>c</em> into the string at position <em>index</em> and returns a @@ -1088,7 +1088,7 @@ string. <p> <p>See also <a href="#right">right</a>(), <a href="#mid">mid</a>(), and <a href="#isEmpty">isEmpty</a>(). <p>Example: <a href="themes-example.html#x338">themes/themes.cpp</a>. -<h3 class=fn><a href="tqstring.html">TQString</a> <a name="leftJustify"></a>TQString::leftJustify ( uint width, <a href="qchar.html">TQChar</a> fill = ' ', bool truncate = FALSE ) const +<h3 class=fn><a href="tqstring.html">TQString</a> <a name="leftJustify"></a>TQString::leftJustify ( uint width, <a href="tqchar.html">TQChar</a> fill = ' ', bool truncate = FALSE ) const </h3> Returns a string of length <em>width</em> that contains this string padded by the <em>fill</em> character. @@ -1298,7 +1298,7 @@ This is an overloaded member function, provided for convenience. It behaves esse 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 string. -<h3 class=fn><a href="tqstring.html">TQString</a> & <a name="operator+-eq-5"></a>TQString::operator+= ( <a href="qchar.html">TQChar</a> c ) +<h3 class=fn><a href="tqstring.html">TQString</a> & <a name="operator+-eq-5"></a>TQString::operator+= ( <a href="tqchar.html">TQChar</a> c ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Appends <em>c</em> to the string and returns a reference to the string. @@ -1307,7 +1307,7 @@ This is an overloaded member function, provided for convenience. It behaves esse This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Appends <em>c</em> to the string and returns a reference to the string. -<h3 class=fn><a href="tqstring.html">TQString</a> & <a name="operator-eq"></a>TQString::operator= ( <a href="qchar.html">TQChar</a> c ) +<h3 class=fn><a href="tqstring.html">TQString</a> & <a name="operator-eq"></a>TQString::operator= ( <a href="tqchar.html">TQChar</a> c ) </h3> <p> Sets the string to contain just the single character <em>c</em>. @@ -1346,7 +1346,7 @@ string, to this string. Returns a reference to this string. <p> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Sets the string to contain just the single character <em>c</em>. -<h3 class=fn><a href="qchar.html">TQChar</a> <a name="operator[]"></a>TQString::operator[] ( int i ) const +<h3 class=fn><a href="tqchar.html">TQChar</a> <a name="operator[]"></a>TQString::operator[] ( int i ) const </h3> <p> Returns the character at index <em>i</em>, or TQChar::null if <em>i</em> is @@ -1355,7 +1355,7 @@ beyond the length of the string. (i.e., const TQString&), then the non-const overload of operator[] will be used instead. -<h3 class=fn><a href="qcharref.html">TQCharRef</a> <a name="operator[]-2"></a>TQString::operator[] ( int i ) +<h3 class=fn><a href="tqcharref.html">TQCharRef</a> <a name="operator[]-2"></a>TQString::operator[] ( int i ) </h3> <p> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. @@ -1364,10 +1364,10 @@ The resulting reference can then be assigned to, or used immediately, but it will become invalid once further modifications are made to the original string. <p> If <em>i</em> is beyond the length of the string then the string is -expanded with TQChar::nulls, so that the <a href="qcharref.html">TQCharRef</a> references a +expanded with TQChar::nulls, so that the <a href="tqcharref.html">TQCharRef</a> references a valid (null) character in the string. <p> The TQCharRef internal class can be used much like a constant -<a href="qchar.html">TQChar</a>, but if you assign to it, you change the original string +<a href="tqchar.html">TQChar</a>, but if you assign to it, you change the original string (which will detach itself because of TQString's copy-on-write semantics). You will get compilation errors if you try to use the result as anything but a TQChar. @@ -1395,7 +1395,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> & <a name="prepend-3"></a>TQString::prepend ( <a href="qchar.html">TQChar</a> ch ) +<h3 class=fn><a href="tqstring.html">TQString</a> & <a name="prepend-3"></a>TQString::prepend ( <a href="tqchar.html">TQChar</a> ch ) </h3> <p> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. @@ -1425,16 +1425,16 @@ This is an overloaded member function, provided for convenience. It behaves esse <p> Equivalent to <a href="#insert">insert</a>(0, <em>s</em>). <p> <p>See also <a href="#insert">insert</a>(). -<h3 class=fn><a href="qchar.html">TQChar</a> & <a name="ref"></a>TQString::ref ( uint i ) +<h3 class=fn><a href="tqchar.html">TQChar</a> & <a name="ref"></a>TQString::ref ( uint i ) </h3> -<p> Returns the <a href="qchar.html">TQChar</a> at index <em>i</em> by reference, expanding the string +<p> Returns the <a href="tqchar.html">TQChar</a> at index <em>i</em> by reference, expanding the string with TQChar::null if necessary. The resulting reference can be assigned to, or otherwise used immediately, but becomes invalid once furher modifications are made to the string. <p> <pre> TQString string("ABCDEF"); - <a href="qchar.html">TQChar</a> ch = string.<a href="#ref">ref</a>( 3 ); // ch == 'D' + <a href="tqchar.html">TQChar</a> ch = string.<a href="#ref">ref</a>( 3 ); // ch == 'D' </pre> <p> <p>See also <a href="#constref">constref</a>(). @@ -1460,7 +1460,7 @@ reference to the string. otherwise the search is case insensitive. <p> This is the same as <a href="#replace">replace</a>(<em>str</em>, "", <em>cs</em>). -<h3 class=fn><a href="tqstring.html">TQString</a> & <a name="remove-3"></a>TQString::remove ( <a href="qchar.html">TQChar</a> c ) +<h3 class=fn><a href="tqstring.html">TQString</a> & <a name="remove-3"></a>TQString::remove ( <a href="tqchar.html">TQChar</a> c ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Removes every occurrence of the character <em>c</em> in the string. Returns a reference to the string. @@ -1508,24 +1508,24 @@ length(). <p> <p>See also <a href="#insert">insert</a>() and <a href="#remove">remove</a>(). <p>Examples: <a href="listviews-example.html#x162">listviews/listviews.cpp</a>, <a href="networkprotocol-example.html#x694">network/networkprotocol/nntp.cpp</a>, <a href="qmag-example.html#x1794">qmag/qmag.cpp</a>, and <a href="regexptester-example.html#x2497">regexptester/regexptester.cpp</a>. -<h3 class=fn><a href="tqstring.html">TQString</a> & <a name="replace-2"></a>TQString::replace ( uint index, uint len, const <a href="qchar.html">TQChar</a> * s, uint slen ) +<h3 class=fn><a href="tqstring.html">TQString</a> & <a name="replace-2"></a>TQString::replace ( uint index, uint len, const <a href="tqchar.html">TQChar</a> * s, uint slen ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -<p> Replaces <em>len</em> characters with <em>slen</em> characters of <a href="qchar.html">TQChar</a> data +<p> Replaces <em>len</em> characters with <em>slen</em> characters of <a href="tqchar.html">TQChar</a> data from <em>s</em>, starting at position <em>index</em>, and returns a reference to the string. <p> <p>See also <a href="#insert">insert</a>() and <a href="#remove">remove</a>(). -<h3 class=fn><a href="tqstring.html">TQString</a> & <a name="replace-3"></a>TQString::replace ( uint index, uint len, <a href="qchar.html">TQChar</a> c ) +<h3 class=fn><a href="tqstring.html">TQString</a> & <a name="replace-3"></a>TQString::replace ( uint index, uint len, <a href="tqchar.html">TQChar</a> c ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> This is the same as <a href="#replace">replace</a>(<em>index</em>, <em>len</em>, TQString(<em>c</em>)). <h3 class=fn><a href="tqstring.html">TQString</a> & <a name="replace-4"></a>TQString::replace ( uint index, uint len, char c ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> -<p> This is the same as <a href="#replace">replace</a>(<em>index</em>, <em>len</em>, <a href="qchar.html">TQChar</a>(<em>c</em>)). +<p> This is the same as <a href="#replace">replace</a>(<em>index</em>, <em>len</em>, <a href="tqchar.html">TQChar</a>(<em>c</em>)). -<h3 class=fn><a href="tqstring.html">TQString</a> & <a name="replace-5"></a>TQString::replace ( <a href="qchar.html">TQChar</a> c, const <a href="tqstring.html">TQString</a> & after, bool cs = TRUE ) +<h3 class=fn><a href="tqstring.html">TQString</a> & <a name="replace-5"></a>TQString::replace ( <a href="tqchar.html">TQChar</a> c, const <a href="tqstring.html">TQString</a> & after, bool cs = TRUE ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Replaces every occurrence of the character <em>c</em> in the string with <em>after</em>. Returns a reference to the string. @@ -1582,7 +1582,7 @@ in <em>after</em> are replaced with <em>rx</em>.cap(1), cap(2), ... <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> & <a name="replace-9"></a>TQString::replace ( <a href="qchar.html">TQChar</a> c1, <a href="qchar.html">TQChar</a> c2 ) +<h3 class=fn><a href="tqstring.html">TQString</a> & <a name="replace-9"></a>TQString::replace ( <a href="tqchar.html">TQChar</a> c1, <a href="tqchar.html">TQChar</a> c2 ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Replaces every occurrence of <em>c1</em> with the char <em>c2</em>. Returns a reference to the string. @@ -1625,7 +1625,7 @@ string is returned. <p> <p>See also <a href="#left">left</a>(), <a href="#mid">mid</a>(), and <a href="#isEmpty">isEmpty</a>(). <p>Example: <a href="fileiconview-example.html#x871">fileiconview/tqfileiconview.cpp</a>. -<h3 class=fn><a href="tqstring.html">TQString</a> <a name="rightJustify"></a>TQString::rightJustify ( uint width, <a href="qchar.html">TQChar</a> fill = ' ', bool truncate = FALSE ) const +<h3 class=fn><a href="tqstring.html">TQString</a> <a name="rightJustify"></a>TQString::rightJustify ( uint width, <a href="tqchar.html">TQChar</a> fill = ' ', bool truncate = FALSE ) const </h3> Returns a string of length <em>width</em> that contains the <em>fill</em> character followed by the string. @@ -1640,7 +1640,7 @@ character followed by the string. <p> <p>See also <a href="#leftJustify">leftJustify</a>(). -<h3 class=fn><a href="tqstring.html">TQString</a> <a name="section"></a>TQString::section ( <a href="qchar.html">TQChar</a> sep, int start, int end = 0xffffffff, int flags = SectionDefault ) const +<h3 class=fn><a href="tqstring.html">TQString</a> <a name="section"></a>TQString::section ( <a href="tqchar.html">TQChar</a> sep, int start, int end = 0xffffffff, int flags = SectionDefault ) const </h3> <p> This function returns a section of the string. @@ -1757,7 +1757,7 @@ strlen(str). string is created. <p> <p>See also <a href="#isNull">isNull</a>() and <a href="#isEmpty">isEmpty</a>(). -<h3 class=fn>void <a name="setExpand"></a>TQString::setExpand ( uint index, <a href="qchar.html">TQChar</a> c ) +<h3 class=fn>void <a name="setExpand"></a>TQString::setExpand ( uint index, <a href="tqchar.html">TQChar</a> c ) </h3> <b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code. <p> Sets the character at position <em>index</em> to <em>c</em> and expands the string if necessary, filling with spaces. @@ -1857,7 +1857,7 @@ This is an overloaded member function, provided for convenience. It behaves esse string. <p> The format <em>f</em> can be 'f', 'F', 'e', 'E', 'g' or 'G'. See <a href="#arg-formats">arg</a>() for an explanation of the formats. -<h3 class=fn><a href="tqstring.html">TQString</a> & <a name="setUnicode"></a>TQString::setUnicode ( const <a href="qchar.html">TQChar</a> * unicode, uint len ) +<h3 class=fn><a href="tqstring.html">TQString</a> & <a name="setUnicode"></a>TQString::setUnicode ( const <a href="tqchar.html">TQChar</a> * unicode, uint len ) </h3> Resizes the string to <em>len</em> characters and copies <em>unicode</em> into the string. If <em>unicode</em> is 0, nothing is copied, but the @@ -1879,7 +1879,7 @@ a <a href="#isNull">null</a> string. Returns a string that has whitespace removed from the start and the end, and which has each sequence of internal whitespace replaced with a single space. -<p> Whitespace means any character for which <a href="qchar.html#isSpace">TQChar::isSpace</a>() returns +<p> Whitespace means any character for which <a href="tqchar.html#isSpace">TQChar::isSpace</a>() returns TRUE. This includes Unicode characters with decimal values 9 (TAB), 10 (LF), 11 (VT), 12 (FF), 13 (CR), and 32 (Space). <p> <pre> @@ -1913,7 +1913,7 @@ consider using the arg() function instead. This allows the order of the replacements to be controlled by the translator, and has Unicode support. <p> The %lc escape sequence expects a unicode character of type ushort -(as returned by <a href="qchar.html#unicode">TQChar::unicode</a>()). +(as returned by <a href="tqchar.html#unicode">TQChar::unicode</a>()). The %ls escape sequence expects a pointer to a zero-terminated array of unicode characters of type ushort (as returned by <a href="#ucs2">TQString::ucs2</a>()). @@ -1943,7 +1943,7 @@ otherwise the search is case insensitive. </h3> Returns a string that has whitespace removed from the start and the end. -<p> Whitespace means any character for which <a href="qchar.html#isSpace">TQChar::isSpace</a>() returns +<p> Whitespace means any character for which <a href="tqchar.html#isSpace">TQChar::isSpace</a>() returns TRUE. This includes Unicode characters with decimal values 9 (TAB), 10 (LF), 11 (VT), 12 (FF), 13 (CR) and 32 (Space), and may also include other Unicode characters. @@ -1983,18 +1983,18 @@ characters for the decimal point, thousands group sepearator and even individual digits. TQString's functions try to interpret the string according to the current locale. The current locale is determined from the system at application startup and can be changed -by calling <a href="ntqlocale.html#setDefault">TQLocale::setDefault</a>(). If the string cannot be interpreted +by calling <a href="tqlocale.html#setDefault">TQLocale::setDefault</a>(). If the string cannot be interpreted according to the current locale, this function falls back on the "C" locale. <p> <pre> bool ok; double d; - TQLocale::<a href="ntqlocale.html#setDefault">setDefault</a>(TQLocale::C); + TQLocale::<a href="tqlocale.html#setDefault">setDefault</a>(TQLocale::C); d = <a href="#TQString">TQString</a>( "1234,56" ).toDouble(&ok); // ok == false d = <a href="#TQString">TQString</a>( "1234.56" ).toDouble(&ok); // ok == true, d == 1234.56 - TQLocale::<a href="ntqlocale.html#setDefault">setDefault</a>(TQLocale::German); + TQLocale::<a href="tqlocale.html#setDefault">setDefault</a>(TQLocale::German); d = <a href="#TQString">TQString</a>( "1234,56" ).toDouble(&ok); // ok == true, d == 1234.56 d = <a href="#TQString">TQString</a>( "1234.56" ).toDouble(&ok); // ok == true, d == 1234.56 </pre> @@ -2002,17 +2002,17 @@ on the "C" locale. <p> Due to the ambiguity between the decimal point and thousands group separator in various locales, these functions do not handle thousands group separators. If you need to convert such numbers, -use the corresponding function in <a href="ntqlocale.html">TQLocale</a>. +use the corresponding function in <a href="tqlocale.html">TQLocale</a>. <p> <pre> bool ok; - TQLocale::<a href="ntqlocale.html#setDefault">setDefault</a>(TQLocale::C); + TQLocale::<a href="tqlocale.html#setDefault">setDefault</a>(TQLocale::C); double d = <a href="#TQString">TQString</a>( "1,234,567.89" ).toDouble(&ok); // ok == false </pre> <p> <b>Warning:</b> If the string contains trailing whitespace this function will fail, and set <em>*ok</em> to false if <em>ok</em> is not 0. Leading whitespace is ignored. -<p> <p>See also <a href="#number">number</a>(), <a href="ntqlocale.html#setDefault">TQLocale::setDefault</a>(), <a href="ntqlocale.html#toDouble">TQLocale::toDouble</a>(), and <a href="#stripWhiteSpace">stripWhiteSpace</a>(). +<p> <p>See also <a href="#number">number</a>(), <a href="tqlocale.html#setDefault">TQLocale::setDefault</a>(), <a href="tqlocale.html#toDouble">TQLocale::toDouble</a>(), and <a href="#stripWhiteSpace">stripWhiteSpace</a>(). <h3 class=fn>float <a name="toFloat"></a>TQString::toFloat ( bool * ok = 0 ) const </h3> @@ -2206,7 +2206,7 @@ if the string is not null; otherwise returns zero. <p> The result remains valid so long as one unmodified copy of the source string exists. -<h3 class=fn>const <a href="qchar.html">TQChar</a> * <a name="unicode"></a>TQString::unicode () const +<h3 class=fn>const <a href="tqchar.html">TQChar</a> * <a name="unicode"></a>TQString::unicode () const </h3> <p> Returns the Unicode representation of the string. The result |