5 |
|
#include <QDir> |
6 |
|
#include <QString> |
7 |
|
#include <QStringList> |
8 |
+ |
#include <QRegExp> |
9 |
|
#include <iostream> // cout, cin etc. |
10 |
|
|
11 |
|
namespace GlobalVars{ |
50 |
|
return QString::fromStdString(myString); |
51 |
|
} |
52 |
|
|
53 |
+ |
inline QStringList QStringToArgsArray(const QString &args){ |
54 |
+ |
QStringList result; |
55 |
+ |
result=Util::substring(args," "); |
56 |
+ |
|
57 |
+ |
for(int i=0; i<result.size(); i++){ |
58 |
+ |
result[i].remove('"'); // remove quotes, they are not necessary as we had already splited the spaces |
59 |
+ |
} |
60 |
+ |
|
61 |
+ |
return result; |
62 |
+ |
} |
63 |
+ |
|
64 |
|
} |
65 |
|
|
66 |
|
#endif // UTIL_H |