6#if QT_CONFIG(regularexpression)
9#include <private/qduplicatetracker_p.h>
212 std::sort(that->begin(), that->end());
214 auto CISCompare = [](
const auto &
s1,
const auto &
s2) {
217 std::sort(that->begin(), that->end(), CISCompare);
240template <
typename String>
244 for (
const auto &
s : that) {
245 if (
s.contains(needle, cs))
282 for (
const auto &
s : that) {
358#if QT_CONFIG(regularexpression)
370 for (
const auto &
str : *that) {
418 if (that->at(
j).contains(before, cs)) {
426 for (;
i < that->size(); ++
i)
427 (*that)[
i].replace(before.
data(), before.
size(), after.data(), after.size(), cs);
430#if QT_CONFIG(regularexpression)
460 if (that->at(
j).contains(re)) {
468 for (;
i < that->size(); ++
i)
469 (*that)[
i].replace(re, after);
477 for (
const auto &e :
list)
478 result += e.size() + seplen;
505 if (totalLength == 0)
529 while (++
it !=
end) {
605template <
typename String>
610 from =
qMax(from + that.size(), 0);
612 if (from >= that.size())
616 if (needle.compare(that.at(
i), cs) == 0)
651template <
typename String>
657 else if (from >= that.size())
658 from = that.size() - 1;
661 if (needle.compare(that.at(
i), cs) == 0)
680#if QT_CONFIG(regularexpression)
723 from += that->size();
724 else if (from >= that->size())
725 from = that->size() - 1;
752 QDuplicateTracker<QString> seen(that->size());
753 return that->removeIf([&](
const QString &
s) {
return seen.hasSeen(
s); });
bool isEmpty() const noexcept
\inmodule QtCore \reentrant
\inmodule QtCore \reentrant
static QString anchoredPattern(const QString &expression)
constexpr qsizetype size() const noexcept
Returns the size of this string view, in UTF-16 code units (that is, surrogate pairs count as two for...
const_pointer data() const noexcept
\macro QT_RESTRICTED_CAST_FROM_ASCII
void reserve(qsizetype size)
Ensures the string has space for at least size characters.
qsizetype size() const noexcept
Returns the number of characters in this string.
bool contains(QChar c, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
QSet< QString >::iterator it
Combined button and popup list for selecting options.
void Q_CORE_EXPORT QStringList_replaceInStrings(QStringList *that, QStringView before, QStringView after, Qt::CaseSensitivity cs)
bool Q_CORE_EXPORT QStringList_contains(const QStringList *that, QStringView str, Qt::CaseSensitivity cs)
qsizetype Q_CORE_EXPORT QStringList_indexOf(const QStringList &that, QStringView str, qsizetype from, Qt::CaseSensitivity cs)
QString Q_CORE_EXPORT QStringList_join(const QStringList *that, QStringView sep)
qsizetype Q_CORE_EXPORT QStringList_removeDuplicates(QStringList *that)
QStringList Q_CORE_EXPORT QStringList_filter(const QStringList *that, QStringView str, Qt::CaseSensitivity cs)
void Q_CORE_EXPORT QStringList_sort(QStringList *that, Qt::CaseSensitivity cs)
Q_CORE_EXPORT qsizetype QStringList_lastIndexOf(const QStringList &that, QStringView str, qsizetype from, Qt::CaseSensitivity cs)
constexpr const T & qMax(const T &a, const T &b)
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat s1
static constexpr QChar sep
qsizetype indexOf_helper(const QStringList &that, String needle, qsizetype from, Qt::CaseSensitivity cs)
static QStringList filter_helper(const QStringList &that, const String &needle, Qt::CaseSensitivity cs)
qsizetype lastIndexof_helper(const QStringList &that, String needle, qsizetype from, Qt::CaseSensitivity cs)
static bool stringList_contains(const QStringList &stringList, const T &str, Qt::CaseSensitivity cs)
static qsizetype accumulatedSize(const QStringList &list, qsizetype seplen)
static const auto matcher
[0]