TODO: Replace everything that uses this with a loop that loops through the string and creates a hash with all the values.
| 308 | // TODO: Replace everything that uses this with a loop that loops through |
| 309 | // the string and creates a hash with all the values. |
| 310 | double GcodePreprocessorUtils::parseCoord(QStringList argList, char c) |
| 311 | { |
| 312 | // int n = argList.length(); |
| 313 | |
| 314 | // for (int i = 0; i < n; i++) { |
| 315 | // if (argList[i].length() > 0 && argList[i][0].toUpper() == c) return argList[i].mid(1).toDouble(); |
| 316 | // } |
| 317 | |
| 318 | foreach (QString t, argList) |
| 319 | { |
| 320 | if (t.length() > 0 && t[0].toUpper() == c) return t.mid(1).toDouble(); |
| 321 | } |
| 322 | return qQNaN(); |
| 323 | } |
| 324 | |
| 325 | //static public List<String> convertArcsToLines(Point3d start, Point3d end) { |
| 326 | // List<String> l = new ArrayList<String>(); |
nothing calls this directly
no outgoing calls
no test coverage detected