MCPcopy Create free account
hub / github.com/Panzerschrek/Chasm-Reverse / IsNumber

Method IsNumber

PanzerChasm/settings.cpp:208–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208bool Settings::IsNumber( const char* const name ) const
209{
210 const auto it = map_.find( SettingsStringContainer(name) );
211 if( it == map_.cend() )
212 return false;
213
214 float f;
215 return StrToFloat( (*it).second.data(), &f );
216}
217
218const char* Settings::GetString( const char* const name, const char* const default_value ) const
219{

Callers

nothing calls this directly

Calls 2

StrToFloatFunction · 0.85

Tested by

no test coverage detected