QtBase  v6.3.1
Public Member Functions | List of all members
ProStringList Class Reference

#include <proitems.h>

Inheritance diagram for ProStringList:
Inheritance graph
[legend]
Collaboration diagram for ProStringList:
Collaboration graph
[legend]

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
 
 QList ()=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< ProString > & operator= (std::initializer_list< ProString > args)
 
void swap (QList &other) noexcept
 
QTypeTraits::compare_eq_result_container< QList, Uoperator== (const QList &other) const
 
QTypeTraits::compare_eq_result_container< QList, Uoperator!= (const QList &other) const
 
QTypeTraits::compare_lt_result_container< QList, Uoperator< (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, Uoperator> (const QList &other) const noexcept(noexcept(other< std::declval< QList< U >>()))
 
QTypeTraits::compare_lt_result_container< QList, Uoperator<= (const QList &other) const noexcept(noexcept(other< std::declval< QList< U >>()))
 
QTypeTraits::compare_lt_result_container< QList, Uoperator>= (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)
 
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)
 
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 ()
 
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+ (QList< ProString > &&l) const
 
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< T >
template<typename AT = T>
qsizetype indexOf (const AT &t, qsizetype from=0) const noexcept
 
template<typename AT = T>
qsizetype lastIndexOf (const AT &t, qsizetype from=-1) const noexcept
 
template<typename AT = T>
bool contains (const AT &t) const noexcept
 

Additional Inherited Members

- Public Types inherited from QList< ProString >
using Type = ProString
 
using value_type = ProString
 
using pointer = ProString *
 
using const_pointer = const ProString *
 
using reference = ProString &
 
using const_reference = const ProString &
 
using size_type = qsizetype
 
using difference_type = qptrdiff
 
using parameter_type = typename DataPointer::parameter_type
 
using rvalue_ref = typename std::conditional< DataPointer::pass_parameter_by_value, DisableRValueRefs, ProString && >::type
 
using Iterator = iterator
 
using ConstIterator = const_iterator
 
using reverse_iterator = std::reverse_iterator< iterator >
 
using const_reverse_iterator = std::reverse_iterator< const_iterator >
 
- Static Public Member Functions inherited from QList< ProString >
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< T >
using Self = QList< T >
 
- Protected Member Functions inherited from QListSpecialMethods< ProString >
 ~QListSpecialMethods ()=default
 
- Protected Member Functions inherited from QListSpecialMethodsBase< T >
 ~QListSpecialMethodsBase ()=default
 
Selfself ()
 
const Selfself () const
 

Detailed Description

Definition at line 317 of file proitems.h.

Constructor & Destructor Documentation

◆ ProStringList() [1/3]

ProStringList::ProStringList ( )
inline

Definition at line 319 of file proitems.h.

◆ ProStringList() [2/3]

ProStringList::ProStringList ( const ProString str)
inline

Definition at line 320 of file proitems.h.

◆ ProStringList() [3/3]

ProStringList::ProStringList ( const QStringList list)
explicit

Definition at line 418 of file proitems.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ contains() [1/4]

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

Definition at line 450 of file proitems.cpp.

Here is the call graph for this function:

◆ contains() [2/4]

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

Definition at line 434 of file proitems.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ contains() [3/4]

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

Definition at line 346 of file proitems.h.

Here is the call graph for this function:

◆ contains() [4/4]

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

Definition at line 442 of file proitems.cpp.

Here is the call graph for this function:

◆ insertUnique()

void ProStringList::insertUnique ( const ProStringList value)

Definition at line 411 of file proitems.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ join() [1/4]

QString ProStringList::join ( const ProString sep) const

Definition at line 359 of file proitems.cpp.

Here is the caller graph for this function:

◆ join() [2/4]

QString ProStringList::join ( const QString sep) const

Definition at line 364 of file proitems.cpp.

◆ join() [3/4]

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

Definition at line 333 of file proitems.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ join() [4/4]

QString ProStringList::join ( QChar  sep) const

Definition at line 369 of file proitems.cpp.

◆ length()

int ProStringList::length ( ) const
inline

Definition at line 327 of file proitems.h.

Here is the call graph for this function:

◆ operator<<()

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

Definition at line 324 of file proitems.h.

Here is the call graph for this function:

◆ removeAll() [1/2]

void ProStringList::removeAll ( const char *  str)

Definition at line 381 of file proitems.cpp.

Here is the call graph for this function:

◆ removeAll() [2/2]

void ProStringList::removeAll ( const ProString str)

Definition at line 374 of file proitems.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ removeAt()

void ProStringList::removeAt ( int  idx)
inline

Definition at line 340 of file proitems.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ removeDuplicates()

void ProStringList::removeDuplicates ( )

Definition at line 405 of file proitems.cpp.

Here is the call graph for this function:

◆ removeEach()

void ProStringList::removeEach ( const ProStringList value)

Definition at line 388 of file proitems.cpp.

Here is the call graph for this function:

◆ removeEmpty()

void ProStringList::removeEmpty ( )

Definition at line 398 of file proitems.cpp.

Here is the call graph for this function:

◆ toQStringList()

QStringList ProStringList::toQStringList ( ) const

Definition at line 425 of file proitems.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

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