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

Method findFunction

Externals/MathMLSolver/src/MathMLSymbolTable.cpp:273–296  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

271 }
272 //-----------------------------------------------------------------------
273 SymbolTable::FunctionMap::const_iterator SymbolTable::findFunction( const String& name )const
274 {
275 FunctionMap::const_iterator it = mFunctions.find( name );
276
277 if ( it != mFunctions.end() )
278 {
279 return it;
280 }
281
282 for(it = mFunctions.begin();it != mFunctions.end(); ++it)
283 {
284 String key = it->first;
285 if(key == name)
286 {
287 return it;
288 }
289 else if(strcmp(key.c_str(), name.c_str()) == 0)
290 {
291 return it;
292 }
293 }
294
295 return mFunctions.end();
296 }
297 //-----------------------------------------------------------------------
298 SymbolTable::FunctionMap::iterator SymbolTable::findFunction( const String& name )
299 {

Callers

nothing calls this directly

Calls 3

c_strMethod · 0.80
endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected