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
fxcrt::StringViewTemplate< T > Class Template Reference

#include <string_view_template.h>

+ Collaboration diagram for fxcrt::StringViewTemplate< T >:

Public Types

using CharType = T
 
using UnsignedType = typename std::make_unsigned<CharType>::type
 
using const_iterator = const CharType*
 
using const_reverse_iterator = std::reverse_iterator<const_iterator>
 

Public Member Functions

constexpr StringViewTemplate () noexcept=default
 
constexpr StringViewTemplate (const StringViewTemplate &src) noexcept=default
 
 StringViewTemplate (const CharType *ptr) noexcept
 
constexpr StringViewTemplate (const CharType *ptr, size_t size) noexcept
 
template<typename E = typename std::enable_if< !std::is_same<UnsignedType, CharType>::value>::type>
constexpr StringViewTemplate (const UnsignedType *ptr, size_t size) noexcept
 
constexpr StringViewTemplate (const pdfium::span< const CharType > &other) noexcept
 
template<typename E = typename std::enable_if< !std::is_same<UnsignedType, CharType>::value>::type>
constexpr StringViewTemplate (const pdfium::span< const UnsignedType > &other) noexcept
 
constexpr StringViewTemplate (const CharType &ch) noexcept
 
StringViewTemplateoperator= (const CharType *src)
 
StringViewTemplateoperator= (const StringViewTemplate &src)
 
const_iterator begin () const
 
const_iterator end () const
 
const_reverse_iterator rbegin () const
 
const_reverse_iterator rend () const
 
bool operator== (const StringViewTemplate &other) const
 
bool operator== (const CharType *ptr) const
 
bool operator!= (const CharType *ptr) const
 
bool operator!= (const StringViewTemplate &other) const
 
bool IsASCII () const
 
bool EqualsASCII (const StringViewTemplate< char > &that) const
 
bool EqualsASCIINoCase (const StringViewTemplate< char > &that) const
 
uint32_t GetID () const
 
pdfium::span< const UnsignedTyperaw_span () const
 
pdfium::span< const CharTypespan () const
 
const UnsignedTyperaw_str () const
 
const CharTypeunterminated_c_str () const
 
size_t GetLength () const
 
bool IsEmpty () const
 
bool IsValidIndex (size_t index) const
 
bool IsValidLength (size_t length) const
 
const UnsignedTypeoperator[] (const size_t index) const
 
UnsignedType Front () const
 
UnsignedType Back () const
 
CharType CharAt (const size_t index) const
 
absl::optional< size_t > Find (CharType ch) const
 
bool Contains (CharType ch) const
 
StringViewTemplate Substr (size_t offset) const
 
StringViewTemplate Substr (size_t first, size_t count) const
 
StringViewTemplate First (size_t count) const
 
StringViewTemplate Last (size_t count) const
 
StringViewTemplate TrimmedRight (CharType ch) const
 
bool operator< (const StringViewTemplate &that) const
 
bool operator> (const StringViewTemplate &that) const
 

Protected Attributes

pdfium::span< const UnsignedTypem_Span
 

Detailed Description

template<typename T>
class fxcrt::StringViewTemplate< T >

Definition at line 35 of file string_view_template.h.

Member Typedef Documentation

◆ CharType

template<typename T >
using fxcrt::StringViewTemplate< T >::CharType = T

Definition at line 37 of file string_view_template.h.

◆ const_iterator

template<typename T >
using fxcrt::StringViewTemplate< T >::const_iterator = const CharType*

Definition at line 39 of file string_view_template.h.

◆ const_reverse_iterator

template<typename T >
using fxcrt::StringViewTemplate< T >::const_reverse_iterator = std::reverse_iterator<const_iterator>

Definition at line 40 of file string_view_template.h.

◆ UnsignedType

template<typename T >
using fxcrt::StringViewTemplate< T >::UnsignedType = typename std::make_unsigned<CharType>::type

Definition at line 38 of file string_view_template.h.

Constructor & Destructor Documentation

◆ StringViewTemplate() [1/8]

template<typename T >
fxcrt::StringViewTemplate< T >::StringViewTemplate ( )
constexprdefaultnoexcept

◆ StringViewTemplate() [2/8]

template<typename T >
fxcrt::StringViewTemplate< T >::StringViewTemplate ( const StringViewTemplate< T > & src)
constexprdefaultnoexcept

◆ StringViewTemplate() [3/8]

template<typename T >
fxcrt::StringViewTemplate< T >::StringViewTemplate ( const CharType * ptr)
inlinenoexcept

Definition at line 48 of file string_view_template.h.

References fxcrt::StringViewTemplate< T >::StringViewTemplate().

Referenced by fxcrt::StringViewTemplate< T >::StringViewTemplate().

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

◆ StringViewTemplate() [4/8]

template<typename T >
fxcrt::StringViewTemplate< T >::StringViewTemplate ( const CharType * ptr,
size_t size )
inlineconstexprnoexcept

Definition at line 52 of file string_view_template.h.

References fxcrt::StringViewTemplate< T >::m_Span.

◆ StringViewTemplate() [5/8]

template<typename T >
template<typename E = typename std::enable_if< !std::is_same<UnsignedType, CharType>::value>::type>
fxcrt::StringViewTemplate< T >::StringViewTemplate ( const UnsignedType * ptr,
size_t size )
inlineconstexprnoexcept

Definition at line 57 of file string_view_template.h.

References fxcrt::StringViewTemplate< T >::m_Span.

◆ StringViewTemplate() [6/8]

template<typename T >
fxcrt::StringViewTemplate< T >::StringViewTemplate ( const pdfium::span< const CharType > & other)
inlineexplicitconstexprnoexcept

Definition at line 60 of file string_view_template.h.

References fxcrt::StringViewTemplate< T >::m_Span.

◆ StringViewTemplate() [7/8]

template<typename T >
template<typename E = typename std::enable_if< !std::is_same<UnsignedType, CharType>::value>::type>
fxcrt::StringViewTemplate< T >::StringViewTemplate ( const pdfium::span< const UnsignedType > & other)
inlineconstexprnoexcept

Definition at line 69 of file string_view_template.h.

References fxcrt::StringViewTemplate< T >::m_Span.

◆ StringViewTemplate() [8/8]

template<typename T >
fxcrt::StringViewTemplate< T >::StringViewTemplate ( const CharType & ch)
inlineconstexprnoexcept

Definition at line 76 of file string_view_template.h.

References fxcrt::StringViewTemplate< T >::m_Span.

Member Function Documentation

◆ Back()

template<typename T >
UnsignedType fxcrt::StringViewTemplate< T >::Back ( ) const
inline

Definition at line 182 of file string_view_template.h.

References fxcrt::StringViewTemplate< T >::m_Span.

◆ begin()

template<typename T >
const_iterator fxcrt::StringViewTemplate< T >::begin ( ) const
inline

Definition at line 90 of file string_view_template.h.

References fxcrt::StringViewTemplate< T >::m_Span.

Referenced by fxcrt::StringViewTemplate< T >::rend().

+ Here is the caller graph for this function:

◆ CharAt()

template<typename T >
CharType fxcrt::StringViewTemplate< T >::CharAt ( const size_t index) const
inline

Definition at line 186 of file string_view_template.h.

References fxcrt::StringViewTemplate< T >::m_Span.

◆ Contains()

template<typename T >
bool fxcrt::StringViewTemplate< T >::Contains ( CharType ch) const
inline

Definition at line 198 of file string_view_template.h.

◆ end()

template<typename T >
const_iterator fxcrt::StringViewTemplate< T >::end ( ) const
inline

Definition at line 93 of file string_view_template.h.

References fxcrt::StringViewTemplate< T >::m_Span.

Referenced by fxcrt::StringViewTemplate< T >::rbegin().

+ Here is the caller graph for this function:

◆ EqualsASCII()

template<typename T >
bool fxcrt::StringViewTemplate< T >::EqualsASCII ( const StringViewTemplate< char > & that) const
inline

Definition at line 124 of file string_view_template.h.

◆ EqualsASCIINoCase()

template<typename T >
bool fxcrt::StringViewTemplate< T >::EqualsASCIINoCase ( const StringViewTemplate< char > & that) const
inline

Definition at line 137 of file string_view_template.h.

◆ Find()

template<typename T >
absl::optional< size_t > fxcrt::StringViewTemplate< T >::Find ( CharType ch) const
inline

Definition at line 190 of file string_view_template.h.

◆ First()

template<typename T >
StringViewTemplate fxcrt::StringViewTemplate< T >::First ( size_t count) const
inline

Definition at line 222 of file string_view_template.h.

◆ Front()

template<typename T >
UnsignedType fxcrt::StringViewTemplate< T >::Front ( ) const
inline

Definition at line 181 of file string_view_template.h.

References fxcrt::StringViewTemplate< T >::m_Span.

◆ GetID()

template<typename T >
uint32_t fxcrt::StringViewTemplate< T >::GetID ( ) const
inline

Definition at line 150 of file string_view_template.h.

References fxcrt::StringViewTemplate< T >::m_Span.

◆ GetLength()

template<typename T >
size_t fxcrt::StringViewTemplate< T >::GetLength ( ) const
inline

Definition at line 172 of file string_view_template.h.

References fxcrt::StringViewTemplate< T >::m_Span.

◆ IsASCII()

template<typename T >
bool fxcrt::StringViewTemplate< T >::IsASCII ( ) const
inline

Definition at line 116 of file string_view_template.h.

◆ IsEmpty()

template<typename T >
bool fxcrt::StringViewTemplate< T >::IsEmpty ( ) const
inline

Definition at line 173 of file string_view_template.h.

References fxcrt::StringViewTemplate< T >::m_Span.

Referenced by fxcrt::StringViewTemplate< T >::TrimmedRight().

+ Here is the caller graph for this function:

◆ IsValidIndex()

template<typename T >
bool fxcrt::StringViewTemplate< T >::IsValidIndex ( size_t index) const
inline

Definition at line 174 of file string_view_template.h.

References fxcrt::StringViewTemplate< T >::m_Span.

◆ IsValidLength()

template<typename T >
bool fxcrt::StringViewTemplate< T >::IsValidLength ( size_t length) const
inline

Definition at line 175 of file string_view_template.h.

References fxcrt::StringViewTemplate< T >::m_Span.

◆ Last()

template<typename T >
StringViewTemplate fxcrt::StringViewTemplate< T >::Last ( size_t count) const
inline

Definition at line 226 of file string_view_template.h.

◆ operator!=() [1/2]

template<typename T >
bool fxcrt::StringViewTemplate< T >::operator!= ( const CharType * ptr) const
inline

Definition at line 111 of file string_view_template.h.

◆ operator!=() [2/2]

template<typename T >
bool fxcrt::StringViewTemplate< T >::operator!= ( const StringViewTemplate< T > & other) const
inline

Definition at line 112 of file string_view_template.h.

◆ operator<()

template<typename T >
bool fxcrt::StringViewTemplate< T >::operator< ( const StringViewTemplate< T > & that) const
inline

Definition at line 246 of file string_view_template.h.

References fxcrt::StringViewTemplate< T >::m_Span.

◆ operator=() [1/2]

template<typename T >
StringViewTemplate & fxcrt::StringViewTemplate< T >::operator= ( const CharType * src)
inline

Definition at line 79 of file string_view_template.h.

◆ operator=() [2/2]

template<typename T >
StringViewTemplate & fxcrt::StringViewTemplate< T >::operator= ( const StringViewTemplate< T > & src)
inline

Definition at line 85 of file string_view_template.h.

References fxcrt::StringViewTemplate< T >::m_Span.

◆ operator==() [1/2]

template<typename T >
bool fxcrt::StringViewTemplate< T >::operator== ( const CharType * ptr) const
inline

Definition at line 107 of file string_view_template.h.

◆ operator==() [2/2]

template<typename T >
bool fxcrt::StringViewTemplate< T >::operator== ( const StringViewTemplate< T > & other) const
inline

Definition at line 103 of file string_view_template.h.

References fxcrt::StringViewTemplate< T >::m_Span.

◆ operator>()

template<typename T >
bool fxcrt::StringViewTemplate< T >::operator> ( const StringViewTemplate< T > & that) const
inline

Definition at line 254 of file string_view_template.h.

References fxcrt::StringViewTemplate< T >::m_Span.

◆ operator[]()

template<typename T >
const UnsignedType & fxcrt::StringViewTemplate< T >::operator[] ( const size_t index) const
inline

Definition at line 177 of file string_view_template.h.

References fxcrt::StringViewTemplate< T >::m_Span.

◆ raw_span()

template<typename T >
pdfium::span< const UnsignedType > fxcrt::StringViewTemplate< T >::raw_span ( ) const
inline

Definition at line 162 of file string_view_template.h.

References fxcrt::StringViewTemplate< T >::m_Span.

◆ raw_str()

template<typename T >
const UnsignedType * fxcrt::StringViewTemplate< T >::raw_str ( ) const
inline

Definition at line 167 of file string_view_template.h.

References fxcrt::StringViewTemplate< T >::m_Span.

◆ rbegin()

template<typename T >
const_reverse_iterator fxcrt::StringViewTemplate< T >::rbegin ( ) const
inline

Definition at line 96 of file string_view_template.h.

References fxcrt::StringViewTemplate< T >::end().

+ Here is the call graph for this function:

◆ rend()

template<typename T >
const_reverse_iterator fxcrt::StringViewTemplate< T >::rend ( ) const
inline

Definition at line 99 of file string_view_template.h.

References fxcrt::StringViewTemplate< T >::begin().

+ Here is the call graph for this function:

◆ span()

template<typename T >
pdfium::span< const CharType > fxcrt::StringViewTemplate< T >::span ( ) const
inline

Definition at line 163 of file string_view_template.h.

References fxcrt::StringViewTemplate< T >::m_Span.

◆ Substr() [1/2]

template<typename T >
StringViewTemplate fxcrt::StringViewTemplate< T >::Substr ( size_t first,
size_t count ) const
inline

Definition at line 206 of file string_view_template.h.

References fxcrt::StringViewTemplate< T >::m_Span.

◆ Substr() [2/2]

template<typename T >
StringViewTemplate fxcrt::StringViewTemplate< T >::Substr ( size_t offset) const
inline

Definition at line 200 of file string_view_template.h.

◆ TrimmedRight()

template<typename T >
StringViewTemplate fxcrt::StringViewTemplate< T >::TrimmedRight ( CharType ch) const
inline

Definition at line 232 of file string_view_template.h.

References fxcrt::StringViewTemplate< T >::IsEmpty(), and fxcrt::StringViewTemplate< T >::m_Span.

+ Here is the call graph for this function:

◆ unterminated_c_str()

template<typename T >
const CharType * fxcrt::StringViewTemplate< T >::unterminated_c_str ( ) const
inline

Definition at line 168 of file string_view_template.h.

References fxcrt::StringViewTemplate< T >::m_Span.

Member Data Documentation

◆ m_Span


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