| 169 | // |
| 170 | //***************************************************************************** |
| 171 | bool IIniFileSection::FindProperty( const char * p_name, const CIniFileProperty ** p_property ) const |
| 172 | { |
| 173 | PropertyVec::const_iterator it( std::lower_bound( mProperties.begin(), mProperties.end(), p_name, SCompareProperties() ) ); |
| 174 | if( it != mProperties.end() && strcmp( (*it)->mName.c_str(), p_name ) == 0 ) |
| 175 | { |
| 176 | *p_property = *it; |
| 177 | return true; |
| 178 | } |
| 179 | else |
| 180 | { |
| 181 | *p_property = NULL; |
| 182 | return false; |
| 183 | } |
| 184 | } |
| 185 | |
| 186 | //***************************************************************************** |
| 187 | // Once added, this class takes responsibility for deleting the property |
no test coverage detected