summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqasciidict.3qt
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-07-31 13:38:31 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-07-31 13:43:03 +0900
commit6e4a70d41a2636ce99a1da7b6827ac5685ed3186 (patch)
treeb029ebf1d5be6d1ac0ee361e7bfb68a7dbed0eec /doc/man/man3/tqasciidict.3qt
parent81ade129093a279e6537db25710583fd2bba9427 (diff)
downloadtqt-6e4a70d41a2636ce99a1da7b6827ac5685ed3186.tar.gz
tqt-6e4a70d41a2636ce99a1da7b6827ac5685ed3186.zip
Replace TRUE/FALSE with boolean values true/false - part 3
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked and manually edited from commit 6dd781c483eea56f51ae0eff47d857976b5d0f0d)
Diffstat (limited to 'doc/man/man3/tqasciidict.3qt')
-rw-r--r--doc/man/man3/tqasciidict.3qt18
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/man/man3/tqasciidict.3qt b/doc/man/man3/tqasciidict.3qt
index 734e53094..b3abcd91b 100644
--- a/doc/man/man3/tqasciidict.3qt
+++ b/doc/man/man3/tqasciidict.3qt
@@ -16,7 +16,7 @@ Inherits QPtrCollection.
.SS "Public Members"
.in +1c
.ti -1c
-.BI "\fBQAsciiDict\fR ( int size = 17, bool caseSensitive = TRUE, bool copyKeys = TRUE )"
+.BI "\fBQAsciiDict\fR ( int size = 17, bool caseSensitive = true, bool copyKeys = true )"
.br
.ti -1c
.BI "\fBQAsciiDict\fR ( const QAsciiDict<type> & dict )"
@@ -137,14 +137,14 @@ See QDict for full details, including the choice of dictionary size, and how del
.PP
See also QAsciiDictIterator, QDict, QIntDict, QPtrDict, Collection Classes, Collection Classes, and Non-GUI Classes.
.SH MEMBER FUNCTION DOCUMENTATION
-.SH "QAsciiDict::QAsciiDict ( int size = 17, bool caseSensitive = TRUE, bool copyKeys = TRUE )"
+.SH "QAsciiDict::QAsciiDict ( int size = 17, bool caseSensitive = true, bool copyKeys = true )"
Constructs a dictionary optimized for less than \fIsize\fR entries.
.PP
We recommend setting \fIsize\fR to a suitably large prime number (a bit larger than the expected number of entries). This makes the hash distribution better and will improve lookup performance.
.PP
-When \fIcaseSensitive\fR is TRUE (the default) QAsciiDict treats" abc" and "Abc" as different keys; when it is FALSE "abc" and" Abc" are the same. Case-insensitive comparison only considers the 26 letters in US-ASCII.
+When \fIcaseSensitive\fR is true (the default) QAsciiDict treats" abc" and "Abc" as different keys; when it is false "abc" and" Abc" are the same. Case-insensitive comparison only considers the 26 letters in US-ASCII.
.PP
-If \fIcopyKeys\fR is TRUE (the default), the dictionary copies keys using strcpy(); if it is FALSE, the dictionary just copies the pointers.
+If \fIcopyKeys\fR is true (the default), the dictionary copies keys using strcpy(); if it is false, the dictionary just copies the pointers.
.SH "QAsciiDict::QAsciiDict ( const QAsciiDict<type> & dict )"
Constructs a copy of \fIdict\fR.
.PP
@@ -158,7 +158,7 @@ All iterators that access this dictionary will be reset.
.PP
See also setAutoDelete().
.SH "bool QPtrCollection::autoDelete () const"
-Returns the setting of the auto-delete option. The default is FALSE.
+Returns the setting of the auto-delete option. The default is false.
.PP
See also setAutoDelete().
.SH "void QAsciiDict::clear ()\fC [virtual]\fR"
@@ -196,7 +196,7 @@ Multiple items can have the same key, in which case only the last item will be a
.PP
See also replace().
.SH "bool QAsciiDict::isEmpty () const"
-Returns TRUE if the dictionary is empty, i.e. count() == 0; otherwise it returns FALSE.
+Returns true if the dictionary is empty, i.e. count() == 0; otherwise it returns false.
.PP
See also count().
.SH "QAsciiDict<type> & QAsciiDict::operator= ( const QAsciiDict<type> & dict )"
@@ -220,7 +220,7 @@ The default implementation sets \fIitem\fR to 0.
.PP
See also write().
.SH "bool QAsciiDict::remove ( const char * key )"
-Removes the item associated with \fIkey\fR from the dictionary. Returns TRUE if successful, i.e. if the key existed in the dictionary; otherwise returns FALSE.
+Removes the item associated with \fIkey\fR from the dictionary. Returns true if successful, i.e. if the key existed in the dictionary; otherwise returns false.
.PP
If there are two or more items with equal keys, then the most recently inserted item will be removed.
.PP
@@ -258,11 +258,11 @@ See also insert().
.SH "void QAsciiDict::resize ( uint newsize )"
Changes the size of the hashtable to \fInewsize\fR. The contents of the dictionary are preserved but all iterators on the dictionary become invalid.
.SH "void QPtrCollection::setAutoDelete ( bool enable )"
-Sets the collection to auto-delete its contents if \fIenable\fR is TRUE and to never delete them if \fIenable\fR is FALSE.
+Sets the collection to auto-delete its contents if \fIenable\fR is true and to never delete them if \fIenable\fR is false.
.PP
If auto-deleting is turned on, all the items in a collection are deleted when the collection itself is deleted. This is convenient if the collection has the only pointer to the items.
.PP
-The default setting is FALSE, for safety. If you turn it on, be careful about copying the collection - you might find yourself with two collections deleting the same items.
+The default setting is false, for safety. If you turn it on, be careful about copying the collection - you might find yourself with two collections deleting the same items.
.PP
Note that the auto-delete setting may also affect other functions in subclasses. For example, a subclass that has a remove() function will remove the item from its data structure, and if auto-delete is enabled, will also delete the item.
.PP