#include <QCoreApplication>
#include <QDebug>
#include <xmlconfig.h>
#include <xmlprojectmanager.h>
#include <QDebug>

#include "opstream.h"

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    QRegExp exp("(/[^/]+)+");
    QString path_string = "/asldfijk/aldkfjalk/zcjfadflkj/zakdfli中文";

    auto offset = -1;
    while ((offset = exp.indexIn(path_string, offset + 1)) != -1) {
        qDebug() << exp.cap(1);
    }

    return a.exec();
}
