MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / countKey

Method countKey

Engine/source/console/arrayObject.cpp:275–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273//-----------------------------------------------------------------------------
274
275S32 ArrayObject::countKey( const String &key) const
276{
277 S32 count = 0;
278 for ( S32 i = 0; i < mArray.size(); i++ )
279 {
280 if ( isEqual( mArray[i].key, key ) )
281 count++;
282 }
283
284 return count;
285}
286
287//-----------------------------------------------------------------------------
288

Callers 1

arrayObject.cppFile · 0.80

Calls 2

isEqualFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected