MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / Find

Method Find

cpp/src/Options.cpp:574–587  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Find an option by name -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

572// Find an option by name
573//-----------------------------------------------------------------------------
574Options::Option* Options::Find
575(
576 string const& _name
577)
578{
579 string lowername = ToLower( _name );
580 map<string,Option*>::iterator it = m_options.find( lowername );
581 if( it != m_options.end() )
582 {
583 return it->second;
584 }
585
586 return NULL;
587}
588
589//-----------------------------------------------------------------------------
590// <Options::Option::SetValueFromString>

Callers

nothing calls this directly

Calls 3

ToLowerFunction · 0.85
findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected