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 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
UNSAFE_BUFFER_USAGE constexpr StringViewTemplate (const CharType *ptr, size_t size) noexcept
template<typename E = typename std::enable_if< !std::is_same<UnsignedType, CharType>::value>::type>
UNSAFE_BUFFER_USAGE constexpr StringViewTemplate (const UnsignedType *ptr, size_t size) 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 UnsignedTypeunsigned_span () const
pdfium::span< const CharTypespan () const
const UnsignedTypeunterminated_unsigned_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
CharType CharAt (const size_t index) const
UnsignedType Front () const
UnsignedType Back () const
std::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 38 of file string_view_template.h.

Member Typedef Documentation

◆ CharType

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

Definition at line 40 of file string_view_template.h.

◆ const_iterator

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

Definition at line 42 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 43 of file string_view_template.h.

◆ UnsignedType

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

Definition at line 41 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 51 of file string_view_template.h.

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

Here is the caller graph for this function:

◆ StringViewTemplate() [4/8]

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

Definition at line 57 of file string_view_template.h.

◆ 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 pdfium::span< const UnsignedType > & other)
inlineexplicitconstexprnoexcept

Definition at line 66 of file string_view_template.h.

◆ StringViewTemplate() [6/8]

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

Definition at line 76 of file string_view_template.h.

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

Here is the caller graph for this function:

◆ StringViewTemplate() [7/8]

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

Definition at line 81 of file string_view_template.h.

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

Here is the caller graph for this function:

◆ StringViewTemplate() [8/8]

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

Definition at line 89 of file string_view_template.h.

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

Here is the caller graph for this function:

Member Function Documentation

◆ Back()

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

Definition at line 211 of file string_view_template.h.

◆ begin()

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

Definition at line 107 of file string_view_template.h.

Referenced by fxcrt::StringViewTemplate< char >::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 201 of file string_view_template.h.

◆ Contains()

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

Definition at line 222 of file string_view_template.h.

◆ end()

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

Definition at line 110 of file string_view_template.h.

Referenced by fxcrt::StringViewTemplate< char >::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 141 of file string_view_template.h.

◆ EqualsASCIINoCase()

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

Definition at line 154 of file string_view_template.h.

◆ Find()

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

Definition at line 213 of file string_view_template.h.

◆ First()

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

Definition at line 247 of file string_view_template.h.

◆ Front()

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

Definition at line 207 of file string_view_template.h.

◆ GetID()

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

Definition at line 167 of file string_view_template.h.

◆ GetLength()

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

Definition at line 190 of file string_view_template.h.

◆ IsASCII()

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

Definition at line 133 of file string_view_template.h.

◆ IsEmpty()

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

Definition at line 191 of file string_view_template.h.

Referenced by fxcrt::StringViewTemplate< char >::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 192 of file string_view_template.h.

◆ IsValidLength()

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

Definition at line 193 of file string_view_template.h.

◆ Last()

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

Definition at line 251 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 128 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 129 of file string_view_template.h.

◆ operator<()

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

Definition at line 272 of file string_view_template.h.

◆ operator=() [1/2]

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

Definition at line 94 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 102 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 124 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 120 of file string_view_template.h.

◆ operator>()

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

Definition at line 283 of file string_view_template.h.

◆ operator[]()

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

Definition at line 196 of file string_view_template.h.

◆ rbegin()

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

Definition at line 113 of file string_view_template.h.

◆ rend()

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

Definition at line 116 of file string_view_template.h.

◆ span()

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

Definition at line 180 of file string_view_template.h.

◆ Substr() [1/2]

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

Definition at line 230 of file string_view_template.h.

◆ Substr() [2/2]

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

Definition at line 224 of file string_view_template.h.

◆ TrimmedRight()

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

Definition at line 257 of file string_view_template.h.

◆ unsigned_span()

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

Definition at line 179 of file string_view_template.h.

◆ unterminated_c_str()

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

Definition at line 186 of file string_view_template.h.

◆ unterminated_unsigned_str()

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

Definition at line 183 of file string_view_template.h.

Member Data Documentation

◆ m_Span

template<typename T>
pdfium::span<const UnsignedType> fxcrt::StringViewTemplate< T >::m_Span
protected

Definition at line 298 of file string_view_template.h.


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