40 #ifndef QT_NO_STRINGLIST 167 int i = str.
find( sep, j );
171 lst << str.
mid( j, i - j );
172 else if ( allowEmptyEntries )
175 i = str.
find( sep, j );
179 if ( str.
mid( j, l - j + 1 ).
length() > 0 )
180 lst << str.
mid( j, l - j + 1 );
181 else if ( allowEmptyEntries )
212 int i = sep.
match( str.
data(), j, &len );
216 lst << str.
mid( j, i - j );
217 else if ( allowEmptyEntries )
224 if ( str.
mid( j, l - j + 1 ).
length() > 0 )
225 lst << str.
mid( j, l - j + 1 );
226 else if ( allowEmptyEntries )
242 if ( (*it).contains( str, cs ) )
257 if ( (*it).contains( expr ) )
283 #ifndef QT_NO_DATASTREAM 291 return s << (const QValueList<QString>&)l;
307 #endif //QT_NO_STRINGLIST
The QRegExp class provides pattern matching using regular expressions or wildcards.
QStringList grep(const QString &str, bool cs=TRUE) const
QString mid(uint index, uint len=0xffffffff) const
static QStringList fromStrList(const QStrList &)
The QString class provides an abstraction of Unicode text and the classic C null-terminated char arra...
The QChar class provides a light-weight Unicode character.
const char * data() const
void qHeapSort(InputIterator b, InputIterator e)
QValueList< QString > & operator<<(const QString &x)
const char * data() const
int match(const QCString &str, int index=0, int *len=0, bool indexIsStart=TRUE) const
int find(QChar c, int index=0, bool cs=TRUE) const
QString join(const QString &sep) const
The QDataStream class provides serialization of binary data to a QIODevice.
static QStringList split(const QString &sep, const QString &str, bool allowEmptyEntries=FALSE)
Q_EXPORT QDataStream & operator>>(QDataStream &s, QStringList &l)