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

Method countValue

Engine/source/console/arrayObject.cpp:261–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259//-----------------------------------------------------------------------------
260
261S32 ArrayObject::countValue( const String &value ) const
262{
263 S32 count = 0;
264 for ( S32 i = 0; i < mArray.size(); i++ )
265 {
266 if ( isEqual( mArray[i].value, value ) )
267 count++;
268 }
269
270 return count;
271}
272
273//-----------------------------------------------------------------------------
274

Callers 1

arrayObject.cppFile · 0.80

Calls 2

isEqualFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected