We can read and modify existing simple .xlsx file now
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include <QPoint>
|
||||
#include <QRegularExpression>
|
||||
#include <QMap>
|
||||
#include <QStringList>
|
||||
|
||||
namespace QXlsx {
|
||||
|
||||
@@ -41,6 +42,15 @@ int intPow(int x, int p)
|
||||
else return x * tmp * tmp;
|
||||
}
|
||||
|
||||
QStringList splitPath(const QString &path)
|
||||
{
|
||||
int idx = path.lastIndexOf(QLatin1Char('/'));
|
||||
if (idx == -1)
|
||||
return QStringList()<<QStringLiteral(".")<<path;
|
||||
|
||||
return QStringList()<<path.left(idx)<<path.mid(idx+1);
|
||||
}
|
||||
|
||||
QPoint xl_cell_to_rowcol(const QString &cell_str)
|
||||
{
|
||||
if (cell_str.isEmpty())
|
||||
|
||||
Reference in New Issue
Block a user