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

Method countValue

Engine/source/console/arrayObject.cpp:267–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265//-----------------------------------------------------------------------------
266
267S32 ArrayObject::countValue( const String &value ) const
268{
269 S32 count = 0;
270 for ( S32 i = 0; i < mArray.size(); i++ )
271 {
272 if ( isEqual( mArray[i].value, value ) )
273 count++;
274 }
275
276 return count;
277}
278
279//-----------------------------------------------------------------------------
280

Callers 1

arrayObject.cppFile · 0.80

Calls 2

isEqualFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected