diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-12-22 12:05:18 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-12-22 12:13:05 +0900 |
| commit | a4ebd73f48610ed351c9c53f3646d0597f8ea7bc (patch) | |
| tree | 2edd219eef4cb8f35bb3844d06902ae8b2fcb565 /src/tools/tqstringlist.cpp | |
| parent | 7d612f7c91d55501276a385a30dbadb121e7bd9f (diff) | |
| download | tqt-rename/true-false-9.tar.gz tqt-rename/true-false-9.zip | |
Replace TRUE/FALSE with boolean values true/false - part 9rename/true-false-9
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/tools/tqstringlist.cpp')
| -rw-r--r-- | src/tools/tqstringlist.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/tools/tqstringlist.cpp b/src/tools/tqstringlist.cpp index b1a2f70c4..39df6915f 100644 --- a/src/tools/tqstringlist.cpp +++ b/src/tools/tqstringlist.cpp @@ -211,7 +211,7 @@ TQStringList TQStringList::split( const TQChar &sep, const TQString &str, one-character strings: split( TQString( "" ), "four" ) returns the four-item list, "f", "o", "u", "r". - If \a allowEmptyEntries is TRUE, a null string is inserted in + If \a allowEmptyEntries is true, a null string is inserted in the list wherever the separator matches twice without intervening text. @@ -249,14 +249,14 @@ TQStringList TQStringList::split( const TQString &sep, const TQString &str, Splits the string \a str into strings wherever the regular expression \a sep occurs, and returns the list of those strings. - If \a allowEmptyEntries is TRUE, a null string is inserted in + If \a 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 \a allowEmptyEntries - is FALSE (the default), and the four-item list "a", "", "b", "c" - if \a allowEmptyEntries is TRUE. + is false (the default), and the four-item list "a", "", "b", "c" + if \a allowEmptyEntries is true. If \a sep does not match anywhere in \a str, split() returns a single element list with the element containing the single string @@ -300,7 +300,7 @@ TQStringList TQStringList::split( const TQRegExp &sep, const TQString &str, /*! Returns a list of all the strings containing the substring \a str. - If \a cs is TRUE, the grep is done case-sensitively; otherwise + If \a cs is true, the grep is done case-sensitively; otherwise case is ignored. \code @@ -349,7 +349,7 @@ TQStringList TQStringList::grep( const TQRegExp &rx ) const that constitute the string list with the string \a after. Returns a reference to the string list. - If \a cs is TRUE, the search is case sensitive; otherwise the + If \a cs is true, the search is case sensitive; otherwise the search is case insensitive. Example: @@ -424,11 +424,11 @@ TQStringList& TQStringList::gres( const TQRegExp &rx, const TQString &after ) TQString TQStringList::join( const TQString &sep ) const { TQString res; - bool alredy = FALSE; + bool alredy = false; for ( TQStringList::ConstIterator it = begin(); it != end(); ++it ) { if ( alredy ) res += sep; - alredy = TRUE; + alredy = true; res += *it; } |
