From 0e787fb7f5b56b4fe87cd8ada64ae740bbca87bc Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 24 Jul 2024 19:37:05 +0900 Subject: Rename text class nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/tqstring.html | 106 ++++++++++++++++++++++++------------------------- 1 file changed, 53 insertions(+), 53 deletions(-) (limited to 'doc/html/tqstring.html') 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 const char * is interpreted as a classic C-style '\0'-terminated ASCII string. It is legal for the const char * parameter to be 0. If the const char * 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 +'\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(). @@ -317,7 +317,7 @@ shared classes) operates on a copy-on-write basis, only copying if an instance is actually changed.

If you wish to create a deep copy of a TQString without losing any Unicode information then you should use TQDeepCopy. -

See also TQChar, TQCString, TQByteArray, TQConstString, Implicitly and Explicitly Shared Classes, Text Related Classes, and Non-GUI Classes. +

See also TQChar, TQCString, TQByteArray, TQConstString, Implicitly and Explicitly Shared Classes, Text Related Classes, and Non-GUI Classes.


Member Type Documentation

TQString::SectionFlags

@@ -346,7 +346,7 @@ case-insensitively. are 0.

See also isNull(). -

TQString::TQString ( TQChar ch ) +

TQString::TQString ( TQChar ch )

Constructs a string of length one, containing the character ch. @@ -360,10 +360,10 @@ since it only involves incrementing a reference count. Constructs a string that is a deep copy of ba interpreted as a classic C string. -

TQString::TQString ( const TQChar * unicode, uint length ) +

TQString::TQString ( const TQChar * unicode, uint length )

Constructs a string that is a deep copy of the first length -characters in the TQChar array. +characters in the TQChar array.

If unicode and length are 0, then a null string is created.

If only unicode is 0, the string is empty but has length characters of space preallocated: TQString expands automatically @@ -419,7 +419,7 @@ result. the result.

Equivalent to operator+=(). -

TQString & TQString::append ( TQChar ch ) +

TQString & TQString::append ( TQChar ch )

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 a. 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 TQLocale::setDefault(). The 'L' flag is ignored if base is +using TQLocale::setDefault(). The 'L' flag is ignored if base is not 10.

         TQString str;
@@ -491,7 +491,7 @@ not 10.
                 .arg( 63, 0, 16 );
         // str == "Decimal 63 is 3f in hexadecimal"
 
-        TQLocale::setDefault(TQLocale::English, TQLocale::UnitedStates);
+        TQLocale::setDefault(TQLocale::English, TQLocale::UnitedStates);
         str = TQString( "%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.
 

a is assumed to be in the Latin-1 character set. -

TQString TQString::arg ( TQChar a, int fieldWidth = 0 ) const +

TQString TQString::arg ( TQChar a, int fieldWidth = 0 ) const

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

@@ -629,14 +629,14 @@ does the same as latin1().

See also fromAscii(), latin1(), utf8(), and local8Bit().

Example: network/networkprotocol/nntp.cpp. -

TQChar TQString::at ( uint i ) const +

TQChar TQString::at ( uint i ) const

Returns the character at index i, or 0 if i is beyond the length of the string.

         const TQString string( "abcdefgh" );
-        TQChar ch = string.at( 4 );
+        TQChar ch = string.at( 4 );
         // ch == 'e'
     
@@ -644,7 +644,7 @@ length of the string. const TQString &), then the non-const overload of at() will be used instead. -

TQCharRef TQString::at ( uint i ) +

TQCharRef TQString::at ( uint i )

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.

Applies possible ligatures to a TQString. Useful when composition-rich text requires rendering with glyph-poor fonts, -but it also makes compositions such as TQChar(0x0041) ('A') and +but it also makes compositions such as TQChar(0x0041) ('A') and TQChar(0x0308) (Unicode accent diaresis), giving TQChar(0x00c4) (German A Umlaut). -

TQChar TQString::constref ( uint i ) const +

TQChar TQString::constref ( uint i ) const

-

Returns the TQChar at index i by value. +

Returns the TQChar at index i by value.

Equivalent to at(i).

See also ref(). -

int TQString::contains ( TQChar c, bool cs = TRUE ) const +

int TQString::contains ( TQChar c, bool cs = TRUE ) const

Returns the number of times the character c occurs in the string. @@ -793,7 +793,7 @@ otherwise the search is case insensitive.

See also startsWith().

Example: chart/main.cpp. -

TQString & TQString::fill ( TQChar c, int len = -1 ) +

TQString & TQString::fill ( TQChar c, int len = -1 )

Fills the string with len characters of value c, and returns a reference to the string. @@ -821,7 +821,7 @@ was found.

See also findRev(), replace(), and contains().

Example: network/mail/smtp.cpp. -

int TQString::find ( TQChar c, int index = 0, bool cs = TRUE ) const +

int TQString::find ( TQChar c, int index = 0, bool cs = TRUE ) const

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

Finds the first occurrence of the character c, starting at @@ -862,7 +862,7 @@ otherwise the search is case insensitive.

Equivalent to findRev(TQString(str), index). -

int TQString::findRev ( TQChar c, int index = -1, bool cs = TRUE ) const +

int TQString::findRev ( TQChar c, int index = -1, bool cs = TRUE ) const

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

Finds the first occurrence of the character c, starting at @@ -1008,13 +1008,13 @@ This is an overloaded member function, provided for convenience. It behaves esse

Inserts s into the string at position index and returns a reference to the string. -

TQString & TQString::insert ( uint index, const TQChar * s, uint len ) +

TQString & TQString::insert ( uint index, const TQChar * s, uint len )

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

Inserts the first len characters in s into the string at position index and returns a reference to the string. -

TQString & TQString::insert ( uint index, TQChar c ) +

TQString & TQString::insert ( uint index, TQChar c )

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

Insert c into the string at position index and returns a @@ -1088,7 +1088,7 @@ string.

See also right(), mid(), and isEmpty().

Example: themes/themes.cpp. -

TQString TQString::leftJustify ( uint width, TQChar fill = ' ', bool truncate = FALSE ) const +

TQString TQString::leftJustify ( uint width, TQChar fill = ' ', bool truncate = FALSE ) const

Returns a string of length width that contains this string padded by the fill 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.

Appends str to the string and returns a reference to the string. -

TQString & TQString::operator+= ( TQChar c ) +

TQString & TQString::operator+= ( TQChar c )

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

Appends c 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.

Appends c to the string and returns a reference to the string. -

TQString & TQString::operator= ( TQChar c ) +

TQString & TQString::operator= ( TQChar c )

Sets the string to contain just the single character c. @@ -1346,7 +1346,7 @@ string, to this string. Returns a reference to this string.

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

Sets the string to contain just the single character c. -

TQChar TQString::operator[] ( int i ) const +

TQChar TQString::operator[] ( int i ) const

Returns the character at index i, or TQChar::null if i 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. -

TQCharRef TQString::operator[] ( int i ) +

TQCharRef TQString::operator[] ( int i )

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.

If i is beyond the length of the string then the string is -expanded with TQChar::nulls, so that the TQCharRef references a +expanded with TQChar::nulls, so that the TQCharRef references a valid (null) character in the string.

The TQCharRef internal class can be used much like a constant -TQChar, but if you assign to it, you change the original string +TQChar, 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.

Equivalent to insert(0, ch).

See also insert(). -

TQString & TQString::prepend ( TQChar ch ) +

TQString & TQString::prepend ( TQChar ch )

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

Equivalent to insert(0, s).

See also insert(). -

TQChar & TQString::ref ( uint i ) +

TQChar & TQString::ref ( uint i )

-

Returns the TQChar at index i by reference, expanding the string +

Returns the TQChar at index i 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.

         TQString string("ABCDEF");
-        TQChar ch = string.ref( 3 );         // ch == 'D'
+        TQChar ch = string.ref( 3 );         // ch == 'D'
     

See also constref(). @@ -1460,7 +1460,7 @@ reference to the string. otherwise the search is case insensitive.

This is the same as replace(str, "", cs). -

TQString & TQString::remove ( TQChar c ) +

TQString & TQString::remove ( TQChar c )

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

Removes every occurrence of the character c in the string. Returns a reference to the string. @@ -1508,24 +1508,24 @@ length().

See also insert() and remove().

Examples: listviews/listviews.cpp, network/networkprotocol/nntp.cpp, qmag/qmag.cpp, and regexptester/regexptester.cpp. -

TQString & TQString::replace ( uint index, uint len, const TQChar * s, uint slen ) +

TQString & TQString::replace ( uint index, uint len, const TQChar * s, uint slen )

This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

Replaces len characters with slen characters of TQChar data +

Replaces len characters with slen characters of TQChar data from s, starting at position index, and returns a reference to the string.

See also insert() and remove(). -

TQString & TQString::replace ( uint index, uint len, TQChar c ) +

TQString & TQString::replace ( uint index, uint len, TQChar c )

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

This is the same as replace(index, len, TQString(c)).

TQString & TQString::replace ( uint index, uint len, char c )

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

-

This is the same as replace(index, len, TQChar(c)). +

This is the same as replace(index, len, TQChar(c)). -

TQString & TQString::replace ( TQChar c, const TQString & after, bool cs = TRUE ) +

TQString & TQString::replace ( TQChar c, const TQString & after, bool cs = TRUE )

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

Replaces every occurrence of the character c in the string with after. Returns a reference to the string. @@ -1582,7 +1582,7 @@ in after are replaced with rx.cap(1), cap(2), ...

See also find(), findRev(), and TQRegExp::cap(). -

TQString & TQString::replace ( TQChar c1, TQChar c2 ) +

TQString & TQString::replace ( TQChar c1, TQChar c2 )

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

Replaces every occurrence of c1 with the char c2. Returns a reference to the string. @@ -1625,7 +1625,7 @@ string is returned.

See also left(), mid(), and isEmpty().

Example: fileiconview/tqfileiconview.cpp. -

TQString TQString::rightJustify ( uint width, TQChar fill = ' ', bool truncate = FALSE ) const +

TQString TQString::rightJustify ( uint width, TQChar fill = ' ', bool truncate = FALSE ) const

Returns a string of length width that contains the fill character followed by the string. @@ -1640,7 +1640,7 @@ character followed by the string.

See also leftJustify(). -

TQString TQString::section ( TQChar sep, int start, int end = 0xffffffff, int flags = SectionDefault ) const +

TQString TQString::section ( TQChar sep, int start, int end = 0xffffffff, int flags = SectionDefault ) const

This function returns a section of the string. @@ -1757,7 +1757,7 @@ strlen(str). string is created.

See also isNull() and isEmpty(). -

void TQString::setExpand ( uint index, TQChar c ) +

void TQString::setExpand ( uint index, TQChar c )

This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code.

Sets the character at position index to c 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.

The format f can be 'f', 'F', 'e', 'E', 'g' or 'G'. See arg() for an explanation of the formats. -

TQString & TQString::setUnicode ( const TQChar * unicode, uint len ) +

TQString & TQString::setUnicode ( const TQChar * unicode, uint len )

Resizes the string to len characters and copies unicode into the string. If unicode is 0, nothing is copied, but the @@ -1879,7 +1879,7 @@ a null 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. -

Whitespace means any character for which TQChar::isSpace() returns +

Whitespace means any character for which TQChar::isSpace() returns TRUE. This includes Unicode characters with decimal values 9 (TAB), 10 (LF), 11 (VT), 12 (FF), 13 (CR), and 32 (Space).

@@ -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.
 

The %lc escape sequence expects a unicode character of type ushort -(as returned by TQChar::unicode()). +(as returned by TQChar::unicode()). The %ls escape sequence expects a pointer to a zero-terminated array of unicode characters of type ushort (as returned by TQString::ucs2()). @@ -1943,7 +1943,7 @@ otherwise the search is case insensitive. Returns a string that has whitespace removed from the start and the end. -

Whitespace means any character for which TQChar::isSpace() returns +

Whitespace means any character for which TQChar::isSpace() 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 TQLocale::setDefault(). If the string cannot be interpreted +by calling TQLocale::setDefault(). If the string cannot be interpreted according to the current locale, this function falls back on the "C" locale.

         bool ok;
         double d;
 
-        TQLocale::setDefault(TQLocale::C);
+        TQLocale::setDefault(TQLocale::C);
         d = TQString( "1234,56" ).toDouble(&ok); // ok == false
         d = TQString( "1234.56" ).toDouble(&ok); // ok == true, d == 1234.56
 
-        TQLocale::setDefault(TQLocale::German);
+        TQLocale::setDefault(TQLocale::German);
         d = TQString( "1234,56" ).toDouble(&ok); // ok == true, d == 1234.56
         d = TQString( "1234.56" ).toDouble(&ok); // ok == true, d == 1234.56
     
@@ -2002,17 +2002,17 @@ on the "C" locale.

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 TQLocale. +use the corresponding function in TQLocale.

         bool ok;
-        TQLocale::setDefault(TQLocale::C);
+        TQLocale::setDefault(TQLocale::C);
         double d = TQString( "1,234,567.89" ).toDouble(&ok); // ok == false
     

Warning: If the string contains trailing whitespace this function will fail, and set *ok to false if ok is not 0. Leading whitespace is ignored. -

See also number(), TQLocale::setDefault(), TQLocale::toDouble(), and stripWhiteSpace(). +

See also number(), TQLocale::setDefault(), TQLocale::toDouble(), and stripWhiteSpace().

float TQString::toFloat ( bool * ok = 0 ) const

@@ -2206,7 +2206,7 @@ if the string is not null; otherwise returns zero.

The result remains valid so long as one unmodified copy of the source string exists. -

const TQChar * TQString::unicode () const +

const TQChar * TQString::unicode () const

Returns the Unicode representation of the string. The result -- cgit v1.2.3