MCPcopy Create free account
hub / github.com/XRay3D/GERBER_X3 / bracket

Method bracket

file_plugins/gerber/mathparser.cpp:73–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73Result MathParser::bracket(QString s) //throws Exception
74{
75 QChar zeroChar = s.at(0);
76 if (zeroChar == '(') {
77 Result r = plusMinus(s.mid(1));
78 if (!r.rest.isEmpty() && r.rest.at(0) == ')')
79 r.rest = r.rest.mid(1);
80 else
81 qWarning() << "Error: not close bracket";
82 return r;
83 }
84 return functionVariable(s);
85}
86
87Result MathParser::functionVariable(QString s) //throws Exception
88{

Callers

nothing calls this directly

Calls 2

midMethod · 0.80
isEmptyMethod · 0.80

Tested by

no test coverage detected