Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

QStringList QStringList::filter ( const QString str,
Qt::CaseSensitivity  cs = Qt::CaseSensitive 
) const [inline]

Returns a list of all the strings containing the substring str.

If cs is Qt::CaseSensitive (the default), the string comparison is case sensitive; otherwise the comparison is case insensitive.

snippets/qstringlist/main.cpp QStringList list; QStringList list; list << "Bill Murray" // result

This is equivalent to

snippets/qstringlist/main.cpp QStringList result; QStringList result; foreach }

See also:

Definition at line 153 of file qstringlist.h.

    return QtPrivate::QStringList_filter(this, str, cs);

Generated by  Doxygen 1.6.0   Back to index