Minsky
MathDAG::anonymous_namespace{node_matlab.cc} Namespace Reference

Classes

struct  InvalidChar
 

Functions

string validMatlabIdentifier (string name)
 

Function Documentation

◆ validMatlabIdentifier()

string MathDAG::anonymous_namespace{node_matlab.cc}::validMatlabIdentifier ( string  name)

Definition at line 35 of file node_matlab.cc.

Referenced by MathDAG::VariableDAG::matlab().

36  {
37  name.erase(remove_if(name.begin(), name.end(), InvalidChar()), name.end());
38  if (name.empty() || isdigit(name[0]))
39  name="_"+name;
40  return name;
41  }
Here is the caller graph for this function: