| 1465 | QiFunc_csv_cols() : QiFunc(1) {} |
| 1466 | QiVar exec(const std::vector<QiVar>& args, QiScriptInterpreter*) const override |
| 1467 | { |
| 1468 | return CsvTool::cols(args[0].toString()); |
| 1469 | } |
| 1470 | }; |
| 1471 | struct QiFunc_csv_read : public QiFunc |
| 1472 | { |
| 1473 | QiFunc_csv_read() : QiFunc(3) {} |
| 1474 | QiVar exec(const std::vector<QiVar>& args, QiScriptInterpreter*) const override |
| 1475 | { |
| 1476 | return CsvTool::read(args[0].toString(), args[1].toInteger(), args[2].toInteger()); |
| 1477 | } |
| 1478 | }; |
| 1479 | struct QiFunc_csv_write : public QiFunc |
| 1480 | { |
| 1481 | QiFunc_csv_write() : QiFunc(4) {} |
| 1482 | QiVar exec(const std::vector<QiVar>& args, QiScriptInterpreter*) const override |
| 1483 | { |
| 1484 | long long row = args[1].toInteger(); |
| 1485 | long long col = args[2].toInteger(); |
| 1486 | if (row < 0 || col < 0) return {}; |
| 1487 | return CsvTool::write(args[0].toString(), row, col, args[3].toString()); |
| 1488 | } |
| 1489 | }; |
| 1490 | |
| 1491 | struct QiFunc_clip_read : public QiFunc |
| 1492 | { |
| 1493 | QiFunc_clip_read() : QiFunc(0) {} |
nothing calls this directly
no test coverage detected