Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QtPrivate::XmlStringRef Class Reference

#include <qxmlstream_p.h>

+ Collaboration diagram for QtPrivate::XmlStringRef:

Public Types

using value_type = QStringView::value_type
 
using size_type = QStringView::size_type
 
using difference_type = QStringView::difference_type
 
using pointer = QStringView::pointer
 
using const_pointer = QStringView::const_pointer
 
using reference = QStringView::reference
 
using const_reference = QStringView::const_reference
 
using iterator = QStringView::iterator
 
using const_iterator = QStringView::const_iterator
 
using reverse_iterator = QStringView::reverse_iterator
 
using const_reverse_iterator = QStringView::const_reverse_iterator
 

Public Member Functions

constexpr XmlStringRef ()=default
 
constexpr XmlStringRef (const QString *string, qsizetype pos, qsizetype length)
 
 XmlStringRef (const QString *string)
 
 operator QXmlString () const
 
void clear ()
 
QStringView view () const
 
bool isEmpty () const
 
bool isNull () const
 
QString toString () const
 

Public Attributes

const QStringm_string = nullptr
 
qsizetype m_pos = 0
 
qsizetype m_size = 0
 

Detailed Description

Definition at line 33 of file qxmlstream_p.h.

Member Typedef Documentation

◆ const_iterator

◆ const_pointer

◆ const_reference

◆ const_reverse_iterator

◆ difference_type

◆ iterator

◆ pointer

◆ reference

◆ reverse_iterator

◆ size_type

◆ value_type

Constructor & Destructor Documentation

◆ XmlStringRef() [1/3]

constexpr QtPrivate::XmlStringRef::XmlStringRef ( )
constexprdefault

◆ XmlStringRef() [2/3]

constexpr QtPrivate::XmlStringRef::XmlStringRef ( const QString * string,
qsizetype pos,
qsizetype length )
inlineconstexpr

Definition at line 41 of file qxmlstream_p.h.

◆ XmlStringRef() [3/3]

QtPrivate::XmlStringRef::XmlStringRef ( const QString * string)
inline

Definition at line 45 of file qxmlstream_p.h.

Member Function Documentation

◆ clear()

void QtPrivate::XmlStringRef::clear ( )
inline

Definition at line 59 of file qxmlstream_p.h.

References m_pos, m_size, and m_string.

Referenced by QXmlStreamReaderPrivate::EntityDeclaration::clear().

+ Here is the caller graph for this function:

◆ isEmpty()

bool QtPrivate::XmlStringRef::isEmpty ( ) const
inline

Definition at line 61 of file qxmlstream_p.h.

References m_size.

◆ isNull()

bool QtPrivate::XmlStringRef::isNull ( ) const
inline

Definition at line 62 of file qxmlstream_p.h.

References m_string.

◆ operator QXmlString()

QtPrivate::XmlStringRef::operator QXmlString ( ) const
inline

Definition at line 50 of file qxmlstream_p.h.

References d, QString::data_ptr(), m_pos, m_size, m_string, and QArrayDataPointer< T >::setBegin().

+ Here is the call graph for this function:

◆ toString()

QString QtPrivate::XmlStringRef::toString ( ) const
inline

Definition at line 63 of file qxmlstream_p.h.

References QStringView::toString(), and view().

+ Here is the call graph for this function:

◆ view()

QStringView QtPrivate::XmlStringRef::view ( ) const
inline

Definition at line 60 of file qxmlstream_p.h.

References QString::data(), m_pos, m_size, and m_string.

Referenced by toString().

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

Member Data Documentation

◆ m_pos

qsizetype QtPrivate::XmlStringRef::m_pos = 0

Definition at line 37 of file qxmlstream_p.h.

Referenced by clear(), operator QXmlString(), and view().

◆ m_size

qsizetype QtPrivate::XmlStringRef::m_size = 0

Definition at line 38 of file qxmlstream_p.h.

Referenced by clear(), isEmpty(), operator QXmlString(), and view().

◆ m_string

const QString* QtPrivate::XmlStringRef::m_string = nullptr

Definition at line 36 of file qxmlstream_p.h.

Referenced by clear(), isNull(), operator QXmlString(), and view().


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