301 #endif // QT3_SUPPORT 330 for (
int i = 0; i < that->
size(); ++i)
352 for (
int i = 0; i < that->
size(); ++i) {
354 if (
string.length() == str.
length() && str.
compare(
string, cs) == 0)
375 for (
int i = 0; i < that->
size(); ++i)
403 for (
int i = 0; i < that->
size(); ++i)
404 (*that)[i].replace(before, after, cs);
436 for (
int i = 0; i < that->
size(); ++i)
437 (*that)[i].replace(rx, after);
456 const int size = that->
size();
458 for (
int i = 0; i < size; ++i)
459 totalLength += that->
at(i).
size();
462 totalLength += sep.
size() * (size - 1);
465 if (totalLength == 0)
468 for (
int i = 0; i < that->
size(); ++i) {
512 #ifndef QT_NO_DATASTREAM 537 #endif // QT_NO_DATASTREAM 610 from =
qMax(from + that->
size(), 0);
611 for (
int i = from; i < that->
size(); ++i) {
621 from += that->
size();
622 else if (from >= that->
size())
623 from = that->
size() - 1;
624 for (
int i = from; i >= 0; --i) {
767 int n = that->
size();
771 for (
int i = 0; i < n; ++i) {
QBool contains(QChar c, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
void Q_CORE_EXPORT QStringList_sort(QStringList *that)
int Q_CORE_EXPORT QStringList_indexOf(const QStringList *that, const QRegExp &rx, int from)
#define QT_END_NAMESPACE
This macro expands to.
The QRegExp class provides pattern matching using regular expressions.
QBool Q_CORE_EXPORT QStringList_contains(const QStringList *that, const QString &str, Qt::CaseSensitivity cs)
static int lastIndexOfMutating(const QStringList *that, QRegExp &rx, int from)
int length() const
Returns the number of characters in this string.
iterator begin()
Returns an STL-style iterator pointing to the first item in the list.
void Q_CORE_EXPORT QStringList_replaceInStrings(QStringList *that, const QString &before, const QString &after, Qt::CaseSensitivity cs)
The QString class provides a Unicode character string.
The QStringMatcher class holds a sequence of characters that can be quickly matched in a Unicode stri...
Q_DECL_CONSTEXPR const T & qMax(const T &a, const T &b)
QStringList Q_CORE_EXPORT QStringList_filter(const QStringList *that, const QString &str, Qt::CaseSensitivity cs)
void reserve(int size)
Attempts to allocate memory for at least size characters.
int Q_CORE_EXPORT QStringList_removeDuplicates(QStringList *that)
#define QT_BEGIN_NAMESPACE
This macro expands to.
static int indexOfMutating(const QStringList *that, QRegExp &rx, int from)
bool contains(const T &value) const
int size() const
Returns the number of characters in this string.
iterator end()
Returns an STL-style iterator pointing to the imaginary item after the last item in the list...
const T & at(int i) const
Returns the item at index position i in the list.
QString Q_CORE_EXPORT QStringList_join(const QStringList *that, const QString &sep)
The QStringList class provides a list of strings.
const_iterator insert(const T &value)
void qSort(RandomAccessIterator start, RandomAccessIterator end)
iterator erase(iterator pos)
Removes the item associated with the iterator pos from the list, and returns an iterator to the next ...
int compare(const QString &s) const
int size() const
Returns the number of items in the list.
int indexIn(const QString &str, int from=0) const
Searches the string str from character position from (default 0, i.e.
int Q_CORE_EXPORT QStringList_lastIndexOf(const QStringList *that, const QRegExp &rx, int from)
bool exactMatch(const QString &str) const
Returns true if str is matched exactly by this regular expression; otherwise returns false...