Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
ProStringList Class Reference

#include <proitems.h>

Inheritance diagram for ProStringList:
Collaboration diagram for ProStringList:

Public Member Functions

 ProStringList ()
 ProStringList (const ProString &str)
 ProStringList (const QStringList &list)
QStringList toQStringList () const
ProStringListoperator<< (const ProString &str)
int length () const
QString join (const ProString &sep) const
QString join (const QString &sep) const
QString join (QChar sep) const
template<typename A, typename B>
QString join (const QStringBuilder< A, B > &str)
void insertUnique (const ProStringList &value)
void removeAll (const ProString &str)
void removeAll (const char *str)
void removeEach (const ProStringList &value)
void removeAt (int idx)
void removeEmpty ()
void removeDuplicates ()
bool contains (const ProString &str, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
bool contains (QStringView str, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
bool contains (const QString &str, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
bool contains (const char *str, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Public Member Functions inherited from QList< ProString >
DataPointerdata_ptr () &
 QList (DataPointer dd) noexcept
QList< ProString > & operator= (std::initializer_list< ProString > args)
void swap (QList &other) noexcept
QTypeTraits::compare_eq_result_container< QList, U > operator== (const QList &other) const
QTypeTraits::compare_eq_result_container< QList, U > operator!= (const QList &other) const
QTypeTraits::compare_lt_result_container< QList, U > operator< (const QList &other) const noexcept(noexcept(std::lexicographical_compare< typename QList< U >::const_iterator, typename QList::const_iterator >(std::declval< QList< U > >().begin(), std::declval< QList< U > >().end(), other.begin(), other.end())))
QTypeTraits::compare_lt_result_container< QList, U > operator> (const QList &other) const noexcept(noexcept(other< std::declval< QList< U > >()))
QTypeTraits::compare_lt_result_container< QList, U > operator<= (const QList &other) const noexcept(noexcept(other< std::declval< QList< U > >()))
QTypeTraits::compare_lt_result_container< QList, U > operator>= (const QList &other) const noexcept(noexcept(std::declval< QList< U > >()< other))
constexpr qsizetype size () const noexcept
constexpr qsizetype count () const noexcept
constexpr qsizetype length () const noexcept
constexpr bool isEmpty () const noexcept
void resize (qsizetype size)
void resizeForOverwrite (qsizetype size)
qsizetype capacity () const
void reserve (qsizetype size)
void squeeze ()
void detach ()
bool isDetached () const noexcept
bool isSharedWith (const QList< ProString > &other) const
pointer data ()
const_pointer constData () const noexcept
void clear ()
const_reference at (qsizetype i) const noexcept
reference operator[] (qsizetype i)
void append (parameter_type t)
void prepend (rvalue_ref t)
reference emplaceBack (Args &&... args)
reference emplaceFront (Args &&... args)
iterator insert (qsizetype i, parameter_type t)
QListassign (qsizetype n, parameter_type t)
iterator emplace (const_iterator before, Args &&... args)
void replace (qsizetype i, parameter_type t)
void remove (qsizetype i, qsizetype n=1)
void removeFirst () noexcept
void removeLast () noexcept
value_type takeFirst ()
value_type takeLast ()
QList< ProString > & fill (parameter_type t, qsizetype size=-1)
void removeAt (qsizetype i)
qsizetype removeAll (const AT &t)
bool removeOne (const AT &t)
qsizetype removeIf (Predicate pred)
ProString takeAt (qsizetype i)
void move (qsizetype from, qsizetype to)
iterator begin ()
iterator end ()
const_iterator cbegin () const noexcept
const_iterator cend () const noexcept
const_iterator constBegin () const noexcept
const_iterator constEnd () const noexcept
reverse_iterator rbegin ()
reverse_iterator rend ()
const_reverse_iterator crbegin () const noexcept
const_reverse_iterator crend () const noexcept
iterator erase (const_iterator begin, const_iterator end)
ProStringfirst ()
const ProStringconstFirst () const noexcept
ProStringlast ()
const ProStringconstLast () const noexcept
bool startsWith (parameter_type t) const
bool endsWith (parameter_type t) const
QList< ProStringmid (qsizetype pos, qsizetype len=-1) const
QList< ProStringsliced (qsizetype pos) const
ProString value (qsizetype i) const
void swapItemsAt (qsizetype i, qsizetype j)
void push_back (parameter_type t)
void push_front (rvalue_ref t)
void pop_back () noexcept
void pop_front () noexcept
reference emplace_back (Args &&... args)
bool empty () const noexcept
reference front ()
reference back ()
void shrink_to_fit ()
constexpr qsizetype max_size () const noexcept
QList< ProString > & operator+= (const QList< ProString > &l)
QList< ProStringoperator+ (const QList< ProString > &l) const &
QList< ProString > & operator<< (parameter_type t)
QList< ProStringtoList () const noexcept
QList< ProStringtoVector () const noexcept
Public Member Functions inherited from QListSpecialMethodsBase< ProString >
qsizetype indexOf (const AT &t, qsizetype from=0) const noexcept
qsizetype lastIndexOf (const AT &t, qsizetype from=-1) const noexcept
bool contains (const AT &t) const noexcept

Additional Inherited Members

Public Types inherited from QList< ProString >
using Type
using value_type
using pointer
using const_pointer
using reference
using const_reference
using size_type
using difference_type
using parameter_type
using rvalue_ref
using Iterator
using ConstIterator
using reverse_iterator
using const_reverse_iterator
Static Public Member Functions inherited from QList< ProString >
static constexpr qsizetype maxSize ()
static QList< ProStringfromList (const QList< ProString > &list) noexcept
static QList< ProStringfromVector (const QList< ProString > &vector) noexcept
static QList< ProStringfromReadOnlyData (const ProString(&t)[N]) noexcept
Protected Types inherited from QListSpecialMethodsBase< ProString >
using Self
Protected Member Functions inherited from QListSpecialMethods< ProString >
 QListSpecialMethods ()=default
Protected Member Functions inherited from QListSpecialMethodsBase< ProString >
 QListSpecialMethodsBase ()=default
Selfself ()

Detailed Description

Definition at line 292 of file proitems.h.

Constructor & Destructor Documentation

◆ ProStringList() [1/3]

ProStringList::ProStringList ( )
inline

Definition at line 294 of file proitems.h.

Referenced by QMakeEvaluator::evaluateBuiltinConditional(), and QMakeEvaluator::values().

Here is the caller graph for this function:

◆ ProStringList() [2/3]

ProStringList::ProStringList ( const ProString & str)
inline

Definition at line 295 of file proitems.h.

◆ ProStringList() [3/3]

ProStringList::ProStringList ( const QStringList & list)
explicit

Definition at line 388 of file proitems.cpp.

Member Function Documentation

◆ contains() [1/4]

bool ProStringList::contains ( const char * str,
Qt::CaseSensitivity cs = Qt::CaseSensitive ) const

Definition at line 420 of file proitems.cpp.

◆ contains() [2/4]

bool ProStringList::contains ( const ProString & str,
Qt::CaseSensitivity cs = Qt::CaseSensitive ) const

Definition at line 404 of file proitems.cpp.

◆ contains() [3/4]

bool ProStringList::contains ( const QString & str,
Qt::CaseSensitivity cs = Qt::CaseSensitive ) const
inline

Definition at line 321 of file proitems.h.

◆ contains() [4/4]

bool ProStringList::contains ( QStringView str,
Qt::CaseSensitivity cs = Qt::CaseSensitive ) const

Definition at line 412 of file proitems.cpp.

◆ insertUnique()

void ProStringList::insertUnique ( const ProStringList & value)

Definition at line 381 of file proitems.cpp.

Referenced by QMakeEvaluator::visitProVariable().

Here is the caller graph for this function:

◆ join() [1/4]

QString ProStringList::join ( const ProString & sep) const

Definition at line 329 of file proitems.cpp.

Referenced by QMakeEvaluator::evaluateBuiltinExpand().

Here is the caller graph for this function:

◆ join() [2/4]

QString ProStringList::join ( const QString & sep) const

Definition at line 334 of file proitems.cpp.

Referenced by join().

Here is the caller graph for this function:

◆ join() [3/4]

template<typename A, typename B>
QString ProStringList::join ( const QStringBuilder< A, B > & str)
inline

Definition at line 308 of file proitems.h.

References join().

Here is the call graph for this function:

◆ join() [4/4]

QString ProStringList::join ( QChar sep) const

Definition at line 339 of file proitems.cpp.

◆ length()

int ProStringList::length ( ) const
inline

Definition at line 302 of file proitems.h.

◆ operator<<()

ProStringList & ProStringList::operator<< ( const ProString & str)
inline

Definition at line 299 of file proitems.h.

◆ removeAll() [1/2]

void ProStringList::removeAll ( const char * str)

Definition at line 351 of file proitems.cpp.

◆ removeAll() [2/2]

void ProStringList::removeAll ( const ProString & str)

Definition at line 344 of file proitems.cpp.

◆ removeAt()

void ProStringList::removeAt ( int idx)
inline

Definition at line 315 of file proitems.h.

Referenced by QMakeEvaluator::evaluateBuiltinConditional().

Here is the caller graph for this function:

◆ removeDuplicates()

void ProStringList::removeDuplicates ( )

Definition at line 375 of file proitems.cpp.

Referenced by QMakeEvaluator::evaluateBuiltinExpand().

Here is the caller graph for this function:

◆ removeEach()

void ProStringList::removeEach ( const ProStringList & value)

Definition at line 358 of file proitems.cpp.

Referenced by QMakeEvaluator::visitProVariable().

Here is the caller graph for this function:

◆ removeEmpty()

void ProStringList::removeEmpty ( )

Definition at line 368 of file proitems.cpp.

Referenced by QMakeEvaluator::visitProVariable().

Here is the caller graph for this function:

◆ toQStringList()

QStringList ProStringList::toQStringList ( ) const

Definition at line 395 of file proitems.cpp.


The documentation for this class was generated from the following files: