MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCOLLADA / findVariable

Method findVariable

Externals/MathMLSolver/src/MathMLSymbolTable.cpp:223–246  ·  view source on GitHub ↗

-----------------------------------------------------------------------

Source from the content-addressed store, hash-verified

221 }
222 //-----------------------------------------------------------------------
223 SymbolTable::VariableMap::const_iterator SymbolTable::findVariable( const String& name )const
224 {
225 VariableMap::const_iterator it = mVariables.find( name );
226
227 if ( it != mVariables.end() )
228 {
229 return it;
230 }
231
232 for(it = mVariables.begin();it != mVariables.end(); ++it)
233 {
234 String key = it->first;
235 if(key == name)
236 {
237 return it;
238 }
239 else if(strcmp(key.c_str(), name.c_str()) == 0)
240 {
241 return it;
242 }
243 }
244
245 return mVariables.end();
246 }
247 //-----------------------------------------------------------------------
248 SymbolTable::VariableMap::iterator SymbolTable::findVariable( const String& name )
249 {

Callers

nothing calls this directly

Calls 3

c_strMethod · 0.80
endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected