| 103 | } |
| 104 | |
| 105 | QList<int> GcodePreprocessorUtils::parseGCodes(QString command) |
| 106 | { |
| 107 | static QRegExp re("[Gg]0*(\\d+)"); |
| 108 | |
| 109 | QList<int> codes; |
| 110 | int pos = 0; |
| 111 | |
| 112 | while ((pos = re.indexIn(command, pos)) != -1) { |
| 113 | codes.append(re.cap(1).toInt()); |
| 114 | pos += re.matchedLength(); |
| 115 | } |
| 116 | |
| 117 | return codes; |
| 118 | } |
| 119 | |
| 120 | QList<int> GcodePreprocessorUtils::parseMCodes(QString command) |
| 121 | { |
nothing calls this directly
no outgoing calls
no test coverage detected