QByteArrayList Struct
The QByteArrayList class provides a list of byte arrays. More…
| Header | #include <QByteArrayList> |
|---|---|
| CMake | target_link_libraries(app PRIVATE Nt::Core) |
| Module | Nt Core C++ Classes |
List of all members, including inherited members
Public Functions
| QByteArray | join() const |
| QByteArray | join(QByteArrayView sep) const |
| QByteArray | join(char sep) const |
Detailed Description
QByteArrayList is another name of QList<QByteArray>, with join() added to what QList has. Lists are usually produced by QByteArray::split() and combined back with join():
QByteArrayList fields = QByteArray("a,b,c").split(',');
fields << "d";
QByteArray csv = fields.join(','); // "a,b,c,d"
See also QByteArray, QList and QStringList.
Differences from Qt
None.
Member Function Documentation
QByteArray QByteArrayList::join() const
Returns the byte arrays of the list joined into one, with nothing between them.
QByteArray QByteArrayList::join(QByteArrayView sep) const
This is an overloaded function.
Returns the byte arrays of the list joined into one, with the bytes of sep between each two of them.
QByteArray QByteArrayList::join(char sep) const
This is an overloaded function.
Returns the byte arrays of the list joined into one, with the byte sep between each two of them.