Loading...
Searching...
No Matches
String.hpp
1#pragma once
2#include <QDebug>
3#include <QString>
4
5#include <score_lib_base_export.h>
6
7#include <string>
8
9#if QT_VERSION < QT_VERSION_CHECK(6, 5, 0)
10#include <string_view>
11SCORE_LIB_BASE_EXPORT
12QDebug operator<<(QDebug debug, const std::string& obj);
13SCORE_LIB_BASE_EXPORT
14QDebug operator<<(QDebug debug, std::string_view obj);
15#endif
16
17inline QStringList splitWithoutEmptyParts(const QString& src, const QString& sep)
18{
19 return src.split(sep, Qt::SkipEmptyParts);
20}