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

Method countKey

Engine/source/console/arrayObject.cpp:281–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279//-----------------------------------------------------------------------------
280
281S32 ArrayObject::countKey( const String &key) const
282{
283 S32 count = 0;
284 for ( S32 i = 0; i < mArray.size(); i++ )
285 {
286 if ( isEqual( mArray[i].key, key ) )
287 count++;
288 }
289
290 return count;
291}
292
293//-----------------------------------------------------------------------------
294

Callers 1

arrayObject.cppFile · 0.80

Calls 2

isEqualFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected