summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/src/tools/tqgcache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tqtinterface/qt4/src/tools/tqgcache.cpp')
-rw-r--r--tqtinterface/qt4/src/tools/tqgcache.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/tqtinterface/qt4/src/tools/tqgcache.cpp b/tqtinterface/qt4/src/tools/tqgcache.cpp
index 1d2d3bb..4e16ad7 100644
--- a/tqtinterface/qt4/src/tools/tqgcache.cpp
+++ b/tqtinterface/qt4/src/tools/tqgcache.cpp
@@ -106,7 +106,7 @@ public:
int inserts; // variables for statistics
int insertCosts;
int insertMisses;
- int tqfinds;
+ int finds;
int hits;
int hitCosts;
int dumps;
@@ -199,11 +199,11 @@ public:
void clear() { TQGDict::clear(); }
- TQCacheItem *tqfind_string(const TQString &key) const
+ TQCacheItem *find_string(const TQString &key) const
{ return (TQCacheItem*)((TQCDict*)this)->look_string(key, 0, 0); }
- TQCacheItem *tqfind_ascii(const char *key) const
+ TQCacheItem *find_ascii(const char *key) const
{ return (TQCacheItem*)((TQCDict*)this)->look_ascii(key, 0, 0); }
- TQCacheItem *tqfind_int(long key) const
+ TQCacheItem *find_int(long key) const
{ return (TQCacheItem*)((TQCDict*)this)->look_int(key, 0, 0); }
TQCacheItem *take_string(const TQString &key)
@@ -267,7 +267,7 @@ TQGCache::TQGCache( int maxCost, uint size, KeyType kt, bool caseSensitive,
lruList->inserts = 0;
lruList->insertCosts = 0;
lruList->insertMisses = 0;
- lruList->tqfinds = 0;
+ lruList->finds = 0;
lruList->hits = 0;
lruList->hitCosts = 0;
lruList->dumps = 0;
@@ -536,11 +536,11 @@ void TQGCache::clear()
Finds an item for \a key in the cache and adds a reference if \a ref is TRUE.
*/
-TQPtrCollection::Item TQGCache::tqfind_string( const TQString &key, bool ref ) const
+TQPtrCollection::Item TQGCache::find_string( const TQString &key, bool ref ) const
{
- TQCacheItem *ci = dict->tqfind_string( key );
+ TQCacheItem *ci = dict->find_string( key );
#if defined(TQT_DEBUG)
- lruList->tqfinds++;
+ lruList->finds++;
#endif
if ( ci ) {
#if defined(TQT_DEBUG)
@@ -559,12 +559,12 @@ TQPtrCollection::Item TQGCache::tqfind_string( const TQString &key, bool ref ) c
Finds an item for \a key in the cache and adds a reference if \a ref is TRUE.
*/
-TQPtrCollection::Item TQGCache::tqfind_other( const char *key, bool ref ) const
+TQPtrCollection::Item TQGCache::find_other( const char *key, bool ref ) const
{
- TQCacheItem *ci = keytype == AsciiKey ? dict->tqfind_ascii(key)
- : dict->tqfind_int((long)key);
+ TQCacheItem *ci = keytype == AsciiKey ? dict->find_ascii(key)
+ : dict->find_int((long)key);
#if defined(TQT_DEBUG)
- lruList->tqfinds++;
+ lruList->finds++;
#endif
if ( ci ) {
#if defined(TQT_DEBUG)
@@ -643,12 +643,12 @@ void TQGCache::statistics() const
line.fill( '*', 80 );
qDebug( line.ascii() );
qDebug( "CACHE STATISTICS:" );
- qDebug( "cache tqcontains %d item%s, with a total cost of %d",
+ qDebug( "cache contains %d item%s, with a total cost of %d",
count(), count() != 1 ? "s" : "", tCost );
qDebug( "maximum cost is %d, cache is %d%% full.",
mCost, (200*tCost + mCost) / (mCost*2) );
- qDebug( "tqfind() has been called %d time%s",
- lruList->tqfinds, lruList->tqfinds != 1 ? "s" : "" );
+ qDebug( "find() has been called %d time%s",
+ lruList->finds, lruList->finds != 1 ? "s" : "" );
qDebug( "%d of these were hits, items found had a total cost of %d.",
lruList->hits,lruList->hitCosts );
qDebug( "%d item%s %s been inserted with a total cost of %d.",