LibreOffice Module xmlreader (master) 1
Public Member Functions | Public Attributes | List of all members
xmlreader::Span Struct Reference

#include <span.hxx>

Public Member Functions

 Span ()
 
 Span (char const *theBegin, sal_Int32 theLength)
 
template<std::size_t N>
 Span (char const (&literal)[N])
 
void clear () noexcept
 
bool is () const
 
bool operator== (Span const &text) const
 
bool operator!= (Span const &text) const
 
bool equals (char const *textBegin, sal_Int32 textLength) const
 
template<std::size_t N>
bool operator== (char const (&literal)[N]) const
 
template<std::size_t N>
bool operator!= (char const (&literal)[N]) const
 
rtl::OUString convertFromUtf8 () const
 

Public Attributes

char const * begin
 
sal_Int32 length
 

Detailed Description

Definition at line 34 of file span.hxx.

Constructor & Destructor Documentation

◆ Span() [1/3]

xmlreader::Span::Span ( )
inline

Definition at line 38 of file span.hxx.

References begin, and length.

◆ Span() [2/3]

xmlreader::Span::Span ( char const *  theBegin,
sal_Int32  theLength 
)
inline

Definition at line 41 of file span.hxx.

References begin, and length.

◆ Span() [3/3]

template<std::size_t N>
xmlreader::Span::Span ( char const (&)  literal[N])
inlineexplicit

Definition at line 44 of file span.hxx.

References begin, length, and N.

Member Function Documentation

◆ clear()

void xmlreader::Span::clear ( )
inlinenoexcept

Definition at line 48 of file span.hxx.

References begin.

Referenced by xmlreader::Pad::clear(), and xmlreader::Pad::flushSpan().

◆ convertFromUtf8()

OUString xmlreader::Span::convertFromUtf8 ( ) const

Definition at line 34 of file span.cxx.

References begin, is(), and length.

◆ equals()

bool xmlreader::Span::equals ( char const *  textBegin,
sal_Int32  textLength 
) const
inline

Definition at line 61 of file span.hxx.

References operator==().

◆ is()

bool xmlreader::Span::is ( ) const
inline

◆ operator!=() [1/2]

template<std::size_t N>
bool xmlreader::Span::operator!= ( char const (&)  literal[N]) const
inline

Definition at line 71 of file span.hxx.

References N, and operator!=().

◆ operator!=() [2/2]

bool xmlreader::Span::operator!= ( Span const &  text) const
inline

Definition at line 57 of file span.hxx.

References operator==(), and text().

◆ operator==() [1/2]

template<std::size_t N>
bool xmlreader::Span::operator== ( char const (&)  literal[N]) const
inline

Definition at line 65 of file span.hxx.

References N, and operator==().

◆ operator==() [2/2]

bool xmlreader::Span::operator== ( Span const &  text) const
inline

Definition at line 52 of file span.hxx.

References begin, length, and text().

Member Data Documentation

◆ begin

char const* xmlreader::Span::begin

Definition at line 35 of file span.hxx.

Referenced by convertFromUtf8(), and xmlreader::Pad::flushSpan().

◆ length

sal_Int32 xmlreader::Span::length

Definition at line 36 of file span.hxx.

Referenced by convertFromUtf8(), and xmlreader::Pad::flushSpan().


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