diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-08-06 11:29:57 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-08-06 11:29:57 +0900 |
commit | dcce5b1f2c449ed9a02b1752e0d74f147a83d07d (patch) | |
tree | d57fe27457a96451f1a67e2a2db268a441d917fc /doc/html/tqdict.html | |
parent | 649c4c61a1f1f479f4532b196f68df476cef2680 (diff) | |
download | tqt-rename/true-false-4.tar.gz tqt-rename/true-false-4.zip |
Replace TRUE/FALSE with boolean values true/false - part 4rename/true-false-4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/tqdict.html')
-rw-r--r-- | doc/html/tqdict.html | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/doc/html/tqdict.html b/doc/html/tqdict.html index f3d034688..ab7e79d8b 100644 --- a/doc/html/tqdict.html +++ b/doc/html/tqdict.html @@ -38,7 +38,7 @@ dictionary based on TQString keys. <p><a href="tqdict-members.html">List of all member functions.</a> <h2>Public Members</h2> <ul> -<li class=fn><a href="#TQDict"><b>TQDict</b></a> ( int size = 17, bool caseSensitive = TRUE )</li> +<li class=fn><a href="#TQDict"><b>TQDict</b></a> ( int size = 17, bool caseSensitive = true )</li> <li class=fn><a href="#TQDict-2"><b>TQDict</b></a> ( const TQDict<type> & dict )</li> <li class=fn><a href="#~TQDict"><b>~TQDict</b></a> ()</li> <li class=fn>TQDict<type> & <a href="#operator-eq"><b>operator=</b></a> ( const TQDict<type> & dict )</li> @@ -94,11 +94,11 @@ changed with <a href="#resize">resize</a>(). Items are removed with <a href="#remove">remove</a>(). All the items in a dictionary can be removed with <a href="#clear">clear</a>(). The number of items in the dictionary is returned by <a href="#count">count</a>(). If the dictionary contains no items <a href="#isEmpty">isEmpty</a>() -returns TRUE. You can change an item's value with <a href="#replace">replace</a>(). Items +returns true. You can change an item's value with <a href="#replace">replace</a>(). Items are looked up with <a href="#operator[]">operator[]</a>(), or with <a href="#find">find</a>() which return a pointer to the value or 0 if the given key does not exist. You can take an item out of the dictionary with <a href="#take">take</a>(). -<p> Calling <a href="tqptrcollection.html#setAutoDelete">setAutoDelete</a>(TRUE) for a dictionary tells it to delete +<p> Calling <a href="tqptrcollection.html#setAutoDelete">setAutoDelete</a>(true) for a dictionary tells it to delete items that are removed. The default behaviour is not to delete items when they are removed. <p> When an item is inserted, the key is converted (hashed) to an @@ -151,7 +151,7 @@ dictionary. <pre> <a href="tqstringlist.html">TQStringList</a> styleList = TQStyleFactory::styles(); styleList.<a href="tqstringlist.html#sort">sort</a>(); - TQDict<int> letterDict( 17, FALSE ); + TQDict<int> letterDict( 17, false ); for ( TQStringList::Iterator it = styleList.<a href="tqvaluelist.html#begin">begin</a>(); it != styleList.<a href="tqvaluelist.html#end">end</a>(); ++it ) { <a href="tqstring.html">TQString</a> styleName = *it; <a href="tqstring.html">TQString</a> styleAccel = styleName; @@ -193,7 +193,7 @@ the accelerator and add it to the dictionary. Finally we create a <p> <p>See also <a href="tqdictiterator.html">TQDictIterator</a>, <a href="tqasciidict.html">TQAsciiDict</a>, <a href="tqintdict.html">TQIntDict</a>, <a href="tqptrdict.html">TQPtrDict</a>, <a href="collection.html">Collection Classes</a>, and <a href="tools.html">Non-GUI Classes</a>. <hr><h2>Member Function Documentation</h2> -<h3 class=fn><a name="TQDict"></a>TQDict::TQDict ( int size = 17, bool caseSensitive = TRUE ) +<h3 class=fn><a name="TQDict"></a>TQDict::TQDict ( int size = 17, bool caseSensitive = true ) </h3> <p> Constructs a dictionary optimized for less than <em>size</em> entries. @@ -201,7 +201,7 @@ the accelerator and add it to the dictionary. Finally we create a (e.g. a prime that's slightly larger than the expected number of entries). This makes the hash distribution better which will lead to faster lookup. -<p> If <em>caseSensitive</em> is TRUE (the default), keys which differ only +<p> If <em>caseSensitive</em> is true (the default), keys which differ only by case are considered different. <h3 class=fn><a name="TQDict-2"></a>TQDict::TQDict ( const <a href="tqdict.html">TQDict</a><type> & dict ) @@ -215,14 +215,14 @@ pointers are copied (shallow copy). </h3> <p> Removes all items from the dictionary and destroys it. If -<a href="tqptrcollection.html#setAutoDelete">setAutoDelete</a>() is TRUE, each value is deleted. All iterators that +<a href="tqptrcollection.html#setAutoDelete">setAutoDelete</a>() is true, each value is deleted. All iterators that access this dictionary will be reset. <p> <p>See also <a href="tqptrcollection.html#setAutoDelete">setAutoDelete</a>(). <h3 class=fn>bool <a name="autoDelete"></a>TQPtrCollection::autoDelete () const </h3> -<p> Returns the setting of the auto-delete option. The default is FALSE. +<p> Returns the setting of the auto-delete option. The default is false. <p> <p>See also <a href="tqptrcollection.html#setAutoDelete">setAutoDelete</a>(). <h3 class=fn>void <a name="clear"></a>TQDict::clear ()<tt> [virtual]</tt> @@ -264,8 +264,8 @@ item will be accessible using <a href="#operator[]">operator[]</a>(). <h3 class=fn>bool <a name="isEmpty"></a>TQDict::isEmpty () const </h3> -<p> Returns TRUE if the dictionary is empty, i.e. <a href="#count">count</a>() == 0; -otherwise returns FALSE. +<p> Returns true if the dictionary is empty, i.e. <a href="#count">count</a>() == 0; +otherwise returns false. <p> <p>See also <a href="#count">count</a>(). <h3 class=fn><a href="tqdict.html">TQDict</a><type> & <a name="operator-eq"></a>TQDict::operator= ( const <a href="tqdict.html">TQDict</a><type> & dict ) @@ -298,9 +298,9 @@ reference to the stream. <h3 class=fn>bool <a name="remove"></a>TQDict::remove ( const <a href="tqstring.html">TQString</a> & key ) </h3> -<p> Removes the item with <em>key</em> from the dictionary. Returns TRUE if +<p> Removes the item with <em>key</em> from the dictionary. Returns true if successful, i.e. if the item is in the dictionary; otherwise -returns FALSE. +returns false. <p> If there are two or more items with equal keys, then the last item that was inserted will be removed. <p> The removed item is deleted if <a href="tqptrcollection.html#setAutoDelete">auto-deletion</a> is enabled. @@ -338,11 +338,11 @@ become invalid. </h3> <p> Sets the collection to auto-delete its contents if <em>enable</em> is -TRUE and to never delete them if <em>enable</em> is FALSE. +true and to never delete them if <em>enable</em> is false. <p> 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. -<p> The default setting is FALSE, for safety. If you turn it on, be +<p> 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. <p> Note that the auto-delete setting may also affect other functions |