5#include <QtCore/qlist.h>
10#include <QtCore/qalgorithms.h>
11#include <QtCore/qcontainertools_impl.h>
12#include <QtCore/qstring.h>
13#include <QtCore/qstringmatcher.h>
18class QRegularExpression;
20#if !defined(QT_NO_JAVA_STYLE_ITERATORS)
21using QStringListIterator = QListIterator<QString>;
22using QMutableStringListIterator = QMutableListIterator<QString>;
56#if QT_CONFIG(regularexpression)
65class QStringList :
public QList<QString>
67template <>
struct QListSpecialMethods<QString> : QListSpecialMethodsBase<QString>
72 using QList<QString>::QList;
73 QStringList(
const QString &str);
74 QStringList(
const QList<QString> &other);
75 QStringList(QList<QString> &&other);
77 QStringList &operator=(
const QList<QString> &other);
78 QStringList &operator=(QList<QString> &&other);
79 QStringList operator+(
const QStringList &other)
const;
80 QStringList &operator<<(
const QString &str);
81 QStringList &operator<<(
const QStringList &other);
82 QStringList &operator<<(
const QList<QString> &other);
88 { QtPrivate::QStringList_sort(self(), cs); }
90 {
return QtPrivate::QStringList_removeDuplicates(self()); }
93 {
return QtPrivate::QStringList_join(self(), sep); }
95 {
return QtPrivate::QStringList_join(*self(), sep); }
97 {
return QtPrivate::QStringList_join(self(), &sep, 1); }
100 {
return QtPrivate::QStringList_filter(*self(), matcher); }
102 {
return QtPrivate::QStringList_filter(*self(), matcher); }
105 {
return QtPrivate::QStringList_filter(*self(), needle, cs); }
107 {
return QtPrivate::QStringList_filter(self(), str, cs); }
110 QtPrivate::QStringList_replaceInStrings(self(), before, after, cs);
115 {
return QtPrivate::QStringList_join(self(), sep.constData(), sep.size()); }
117 {
return QtPrivate::QStringList_filter(self(), str, cs); }
120 QtPrivate::QStringList_replaceInStrings(self(), before, after, cs);
125 QtPrivate::QStringList_replaceInStrings(self(), before, after, cs);
130 QtPrivate::QStringList_replaceInStrings(self(), before, after, cs);
133 using QListSpecialMethodsBase<QString>::contains;
134 using QListSpecialMethodsBase<QString>::indexOf;
135 using QListSpecialMethodsBase<QString>::lastIndexOf;
138 {
return QtPrivate::QStringList_contains(self(), str, cs); }
140 {
return QtPrivate::QStringList_contains(self(), str, cs); }
143 {
return QtPrivate::QStringList_contains(self(), str, cs); }
147 {
return indexOf(QStringView(str), from, cs); }
150 {
return QtPrivate::QStringList_indexOf(*self(), needle, from, cs); }
153 {
return QtPrivate::QStringList_indexOf(*self(), needle, from, cs); }
157 {
return lastIndexOf(QStringView(str), from, cs); }
160 {
return QtPrivate::QStringList_lastIndexOf(*self(), str, from, cs); }
163 {
return QtPrivate::QStringList_lastIndexOf(*self(), needle, from, cs); }
165#if QT_CONFIG(regularexpression)
166 inline QStringList filter(
const QRegularExpression &re)
const
167 {
return QtPrivate::QStringList_filter(self(), re); }
168 inline QStringList &replaceInStrings(
const QRegularExpression &re,
const QString &after)
170 QtPrivate::QStringList_replaceInStrings(self(), re, after);
173 inline qsizetype indexOf(
const QRegularExpression &re, qsizetype from = 0)
const
174 {
return QtPrivate::QStringList_indexOf(self(), re, from); }
175 inline qsizetype lastIndexOf(
const QRegularExpression &re, qsizetype from = -1)
const
176 {
return QtPrivate::QStringList_lastIndexOf(self(), re, from); }
Combined button and popup list for selecting options.
static const char * qt_build_string() noexcept
static QString getPrefix(QLibraryInfoPrivate::UsageMode usageMode)
static QString prefixFromAppDirHelper()
static bool keepQtBuildDefaults()
bool contains(QLatin1StringView str, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
qsizetype indexOf(const QString &str, qsizetype from=0, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
bool contains(const QString &str, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
QStringList filter(const QLatin1StringMatcher &matcher) const
void sort(Qt::CaseSensitivity cs=Qt::CaseSensitive)
QString join(const QString &sep) const
qsizetype indexOf(QStringView needle, qsizetype from=0, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
QStringList & replaceInStrings(const QString &before, const QString &after, Qt::CaseSensitivity cs=Qt::CaseSensitive)
QString join(QStringView sep) const
qsizetype lastIndexOf(QStringView str, qsizetype from=-1, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
QStringList filter(QLatin1StringView needle, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
qsizetype removeDuplicates()
QStringList filter(const QString &str, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
QStringList & replaceInStrings(QStringView before, const QString &after, Qt::CaseSensitivity cs=Qt::CaseSensitive)
QStringList & replaceInStrings(QStringView before, QStringView after, Qt::CaseSensitivity cs=Qt::CaseSensitive)
QStringList & replaceInStrings(const QString &before, QStringView after, Qt::CaseSensitivity cs=Qt::CaseSensitive)
QStringList filter(const QStringMatcher &matcher) const
qsizetype lastIndexOf(const QString &str, qsizetype from=-1, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept