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 >
 QList (DataPointer dd) noexcept
 
constexpr QList () noexcept=default
 
 QList (qsizetype size)
 
 QList (qsizetype size, parameter_type t)
 
 QList (std::initializer_list< ProString > args)
 
 QList (InputIterator i1, InputIterator i2)
 
 QList (const String &str)
 
 QList (qsizetype size, Qt::Initialization)
 
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))
 
qsizetype size () const noexcept
 
qsizetype count () const noexcept
 
qsizetype count (const AT &t) const noexcept
 
qsizetype length () const noexcept
 
bool isEmpty () const noexcept
 
void resize (qsizetype size)
 
void resize (qsizetype size, parameter_type c)
 
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 data () const noexcept
 
const_pointer constData () const noexcept
 
void clear ()
 
const_reference at (qsizetype i) const noexcept
 
reference operator[] (qsizetype i)
 
const_reference operator[] (qsizetype i) const noexcept
 
void append (parameter_type t)
 
void append (const_iterator i1, const_iterator i2)
 
void append (rvalue_ref t)
 
void append (const QList< ProString > &l)
 
void append (QList< ProString > &&l)
 
void prepend (rvalue_ref t)
 
void prepend (parameter_type t)
 
reference emplaceBack (Args &&... args)
 
reference emplaceFront (Args &&... args)
 
iterator insert (qsizetype i, parameter_type t)
 
iterator insert (qsizetype i, qsizetype n, parameter_type t)
 
iterator insert (const_iterator before, parameter_type t)
 
iterator insert (const_iterator before, qsizetype n, parameter_type t)
 
iterator insert (const_iterator before, rvalue_ref t)
 
iterator insert (qsizetype i, rvalue_ref t)
 
QListassign (qsizetype n, parameter_type t)
 
QListassign (InputIterator first, InputIterator last)
 
QListassign (std::initializer_list< ProString > l)
 
iterator emplace (const_iterator before, Args &&... args)
 
iterator emplace (qsizetype i, Args &&... args)
 
void replace (qsizetype i, parameter_type t)
 
void replace (qsizetype i, rvalue_ref 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 ()
 
const_iterator begin () const noexcept
 
iterator end ()
 
const_iterator end () const noexcept
 
const_iterator cbegin () const noexcept
 
const_iterator cend () const noexcept
 
const_iterator constBegin () const noexcept
 
const_iterator constEnd () const noexcept
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const noexcept
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const noexcept
 
const_reverse_iterator crbegin () const noexcept
 
const_reverse_iterator crend () const noexcept
 
iterator erase (const_iterator begin, const_iterator end)
 
iterator erase (const_iterator pos)
 
ProStringfirst ()
 
const ProStringfirst () const noexcept
 
QList< ProStringfirst (qsizetype n) const
 
const ProStringconstFirst () const noexcept
 
ProStringlast ()
 
const ProStringlast () const noexcept
 
QList< ProStringlast (qsizetype n) const
 
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
 
QList< ProStringsliced (qsizetype pos, qsizetype n) const
 
ProString value (qsizetype i) const
 
ProString value (qsizetype i, parameter_type defaultValue) const
 
void swapItemsAt (qsizetype i, qsizetype j)
 
void push_back (parameter_type t)
 
void push_back (rvalue_ref t)
 
void push_front (rvalue_ref t)
 
void push_front (parameter_type t)
 
void pop_back () noexcept
 
void pop_front () noexcept
 
reference emplace_back (Args &&... args)
 
bool empty () const noexcept
 
reference front ()
 
const_reference front () const noexcept
 
reference back ()
 
const_reference back () const noexcept
 
void shrink_to_fit ()
 
constexpr qsizetype max_size () const noexcept
 
QList< ProString > & operator+= (const QList< ProString > &l)
 
QList< ProString > & operator+= (QList< ProString > &&l)
 
QList< ProString > & operator+= (parameter_type t)
 
QList< ProString > & operator+= (rvalue_ref t)
 
QList< ProStringoperator+ (const QList< ProString > &l) const &
 
QList< ProStringoperator+ (const QList< ProString > &l) &&
 
QList< ProStringoperator+ (QList< ProString > &&l) const &
 
QList< ProStringoperator+ (QList< ProString > &&l) &&
 
QList< ProString > & operator<< (parameter_type t)
 
QList< ProString > & operator<< (const QList< ProString > &l)
 
QList< ProString > & operator<< (QList< ProString > &&l)
 
QList< ProString > & operator<< (rvalue_ref 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 ()
 
const Selfself () const
 

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.

Referenced by testing.tools.encode_pdf_filter._PngIdatPdfStream::write().

+ Here is the caller graph for this function:

◆ 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: