From 4d495175043c399fdca6e1bb4c74ef176fc76fb4 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 6 Aug 2025 11:29:57 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 4 Signed-off-by: Michele Calgaro --- doc/html/tqstringlist.html | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'doc/html/tqstringlist.html') diff --git a/doc/html/tqstringlist.html b/doc/html/tqstringlist.html index e82a6ca8b..136422b3a 100644 --- a/doc/html/tqstringlist.html +++ b/doc/html/tqstringlist.html @@ -45,17 +45,17 @@ body { background: #ffffff; color: black; }
  • TQStringList ( const char * i )
  • void sort ()
  • TQString join ( const TQString & sep ) const
  • -
  • TQStringList grep ( const TQString & str, bool cs = TRUE ) const
  • +
  • TQStringList grep ( const TQString & str, bool cs = true ) const
  • TQStringList grep ( const TQRegExp & rx ) const
  • -
  • TQStringList & gres ( const TQString & before, const TQString & after, bool cs = TRUE )
  • +
  • TQStringList & gres ( const TQString & before, const TQString & after, bool cs = true )
  • TQStringList & gres ( const TQRegExp & rx, const TQString & after )
  • Static Public Members


    Detailed Description

    @@ -176,10 +176,10 @@ Longer lists are easily created as follows: Converts from an ASCII-TQStrList ascii to a TQStringList (Unicode). -

    TQStringList TQStringList::grep ( const TQString & str, bool cs = TRUE ) const +

    TQStringList TQStringList::grep ( const TQString & str, bool cs = true ) const

    Returns a list of all the strings containing the substring str. -

    If cs is TRUE, the grep is done case-sensitively; otherwise +

    If cs is true, the grep is done case-sensitively; otherwise case is ignored.

         TQStringList list;
    @@ -196,12 +196,12 @@ This is an overloaded member function, provided for convenience. It behaves esse
     

    Returns a list of all the strings that match the regular expression rx.

    See also TQString::find(). -

    TQStringList & TQStringList::gres ( const TQString & before, const TQString & after, bool cs = TRUE ) +

    TQStringList & TQStringList::gres ( const TQString & before, const TQString & after, bool cs = true )

    Replaces every occurrence of the string before in the strings that constitute the string list with the string after. Returns a reference to the string list. -

    If cs is TRUE, the search is case sensitive; otherwise the +

    If cs is true, the search is case sensitive; otherwise the search is case insensitive.

    Example:

    @@ -259,23 +259,23 @@ text to the text), or a TQMap<int,TQString> to sort the strings by
     some integer index, etc.
     
     

    Example: themes/themes.cpp. -

    TQStringList TQStringList::split ( const TQRegExp & sep, const TQString & str, bool allowEmptyEntries = FALSE ) [static] +

    TQStringList TQStringList::split ( const TQRegExp & sep, const TQString & str, bool allowEmptyEntries = false ) [static]

    Splits the string str into strings wherever the regular expression sep occurs, and returns the list of those strings. -

    If allowEmptyEntries is TRUE, a null string is inserted in +

    If allowEmptyEntries is true, a null string is inserted in the list wherever the separator matches twice without intervening text.

    For example, if you split the string "a,,b,c" on commas, split() returns the three-item list "a", "b", "c" if allowEmptyEntries -is FALSE (the default), and the four-item list "a", "", "b", "c" -if allowEmptyEntries is TRUE. +is false (the default), and the four-item list "a", "", "b", "c" +if allowEmptyEntries is true.

    If sep does not match anywhere in str, split() returns a single element list with the element containing the single string str.

    See also join() and TQString::section().

    Examples: chart/element.cpp, dirview/dirview.cpp, and network/httpd/httpd.cpp. -

    TQStringList TQStringList::split ( const TQString & sep, const TQString & str, bool allowEmptyEntries = FALSE ) [static] +

    TQStringList TQStringList::split ( const TQString & sep, const TQString & str, bool allowEmptyEntries = false ) [static]

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

    This version of the function uses a TQString as separator, rather @@ -283,12 +283,12 @@ than a regular expression.

    If sep is an empty string, the return value is a list of one-character strings: split( TQString( "" ), "four" ) returns the four-item list, "f", "o", "u", "r". -

    If allowEmptyEntries is TRUE, a null string is inserted in +

    If allowEmptyEntries is true, a null string is inserted in the list wherever the separator matches twice without intervening text.

    See also join() and TQString::section(). -

    TQStringList TQStringList::split ( const TQChar & sep, const TQString & str, bool allowEmptyEntries = FALSE ) [static] +

    TQStringList TQStringList::split ( const TQChar & sep, const TQString & str, bool allowEmptyEntries = false ) [static]

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

    This version of the function uses a TQChar as separator, rather -- cgit v1.2.3