MCPcopy Create free account
hub / github.com/Schildkroet/Candle2 / parseCodes

Method parseCodes

src/parser/gcodepreprocessorutils.cpp:94–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94QList<float> GcodePreprocessorUtils::parseCodes(const QStringList &args, char code)
95{
96 QList<float> l;
97
98 foreach (QString s, args) {
99 if (s.length() > 0 && s[0].toUpper() == code) l.append(s.mid(1).toDouble());
100 }
101
102 return l;
103}
104
105QList<int> GcodePreprocessorUtils::parseGCodes(QString command)
106{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected