|
|
@ -33,9 +33,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
class QByteArray; |
|
|
|
class QByteArray; |
|
|
|
|
|
|
|
|
|
|
|
namespace Utils |
|
|
|
namespace Utils::ByteArray |
|
|
|
{ |
|
|
|
|
|
|
|
namespace ByteArray |
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
// Mimic QString::splitRef(sep, behavior)
|
|
|
|
// Mimic QString::splitRef(sep, behavior)
|
|
|
|
QVector<QByteArray> splitToViews(const QByteArray &in, const QByteArray &sep, const QString::SplitBehavior behavior = QString::KeepEmptyParts); |
|
|
|
QVector<QByteArray> splitToViews(const QByteArray &in, const QByteArray &sep, const QString::SplitBehavior behavior = QString::KeepEmptyParts); |
|
|
@ -44,4 +42,3 @@ namespace Utils |
|
|
|
// we only return a partial view
|
|
|
|
// we only return a partial view
|
|
|
|
const QByteArray midView(const QByteArray &in, int pos, int len = -1); |
|
|
|
const QByteArray midView(const QByteArray &in, int pos, int len = -1); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|