MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / GetSectionByName

Method GetSectionByName

Source/Utility/IniFile.cpp:420–432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

418//
419//*****************************************************************************
420const CIniFileSection * IIniFile::GetSectionByName( const char * section_name ) const
421{
422 // TODO: Could use a map for this if it starts to prove expensive
423 for( u32 i = 0; i < mSections.size(); ++i )
424 {
425 if( strcmp( mSections[ i ]->GetName(), section_name ) == 0 )
426 {
427 return mSections[ i ];
428 }
429 }
430
431 return NULL;
432}

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.80
GetNameMethod · 0.45

Tested by

no test coverage detected