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::StringDataTemplate< CharType > Class Template Reference

#include <string_data_template.h>

Collaboration diagram for fxcrt::StringDataTemplate< CharType >:

Public Member Functions

void Retain ()
void Release ()
bool CanOperateInPlace (size_t nTotalLen) const
void CopyContents (const StringDataTemplate &other)
void CopyContents (pdfium::span< const CharType > str)
void CopyContentsAt (size_t offset, pdfium::span< const CharType > str)
pdfium::span< CharTypespan ()
pdfium::span< const CharTypespan () const
pdfium::span< const CharTypespan_with_terminator () const
pdfium::span< CharTypealloc_span ()
pdfium::span< const CharTypealloc_span () const
pdfium::span< CharTypecapacity_span ()
pdfium::span< const CharTypecapacity_span () const
size_t GetStringLength () const
CharType Front () const
CharType Back () const

Static Public Member Functions

static RetainPtr< StringDataTemplateCreate (size_t nLen)
static RetainPtr< StringDataTemplateCreate (pdfium::span< const CharType > str)

Public Attributes

intptr_t m_nRefs = 0
size_t m_nDataLength
const size_t m_nAllocLength
CharType m_String [1]

Detailed Description

template<typename CharType>
class fxcrt::StringDataTemplate< CharType >

Definition at line 21 of file string_data_template.h.

Member Function Documentation

◆ alloc_span() [1/2]

template<typename CharType>
pdfium::span< CharType > fxcrt::StringDataTemplate< CharType >::alloc_span ( )
inline

Definition at line 53 of file string_data_template.h.

◆ alloc_span() [2/2]

template<typename CharType>
pdfium::span< const CharType > fxcrt::StringDataTemplate< CharType >::alloc_span ( ) const
inline

Definition at line 57 of file string_data_template.h.

◆ Back()

template<typename CharType>
CharType fxcrt::StringDataTemplate< CharType >::Back ( ) const
inline

Definition at line 83 of file string_data_template.h.

◆ CanOperateInPlace()

template<typename CharType>
bool fxcrt::StringDataTemplate< CharType >::CanOperateInPlace ( size_t nTotalLen) const
inline

Definition at line 29 of file string_data_template.h.

◆ capacity_span() [1/2]

template<typename CharType>
pdfium::span< CharType > fxcrt::StringDataTemplate< CharType >::capacity_span ( )
inline

Definition at line 63 of file string_data_template.h.

◆ capacity_span() [2/2]

template<typename CharType>
pdfium::span< const CharType > fxcrt::StringDataTemplate< CharType >::capacity_span ( ) const
inline

Definition at line 67 of file string_data_template.h.

◆ CopyContents() [1/2]

template<typename CharType>
void fxcrt::StringDataTemplate< CharType >::CopyContents ( const StringDataTemplate< CharType > & other)

Definition at line 64 of file string_data_template.cpp.

◆ CopyContents() [2/2]

template<typename CharType>
void fxcrt::StringDataTemplate< CharType >::CopyContents ( pdfium::span< const CharType > str)

Definition at line 71 of file string_data_template.cpp.

◆ CopyContentsAt()

template<typename CharType>
void fxcrt::StringDataTemplate< CharType >::CopyContentsAt ( size_t offset,
pdfium::span< const CharType > str )

Definition at line 78 of file string_data_template.cpp.

◆ Create() [1/2]

template<typename CharType>
RetainPtr< StringDataTemplate< CharType > > fxcrt::StringDataTemplate< CharType >::Create ( pdfium::span< const CharType > str)
static

Definition at line 50 of file string_data_template.cpp.

◆ Create() [2/2]

template<typename CharType>
RetainPtr< StringDataTemplate< CharType > > fxcrt::StringDataTemplate< CharType >::Create ( size_t nLen)
static

Definition at line 23 of file string_data_template.cpp.

◆ Front()

template<typename CharType>
CharType fxcrt::StringDataTemplate< CharType >::Front ( ) const
inline

Definition at line 79 of file string_data_template.h.

◆ GetStringLength()

template<typename CharType>
size_t fxcrt::StringDataTemplate< CharType >::GetStringLength ( ) const
inline

Definition at line 73 of file string_data_template.h.

◆ Release()

template<typename CharType>
void fxcrt::StringDataTemplate< CharType >::Release ( )

Definition at line 58 of file string_data_template.cpp.

References m_nRefs, and pdfium::internal::StringDealloc().

Here is the call graph for this function:

◆ Retain()

template<typename CharType>
void fxcrt::StringDataTemplate< CharType >::Retain ( )
inline

Definition at line 26 of file string_data_template.h.

◆ span() [1/2]

Definition at line 37 of file string_data_template.h.

◆ span() [2/2]

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

Definition at line 41 of file string_data_template.h.

◆ span_with_terminator()

template<typename CharType>
pdfium::span< const CharType > fxcrt::StringDataTemplate< CharType >::span_with_terminator ( ) const
inline

Definition at line 47 of file string_data_template.h.

Member Data Documentation

◆ m_nAllocLength

template<typename CharType>
const size_t fxcrt::StringDataTemplate< CharType >::m_nAllocLength

Definition at line 96 of file string_data_template.h.

◆ m_nDataLength

template<typename CharType>
size_t fxcrt::StringDataTemplate< CharType >::m_nDataLength

Definition at line 95 of file string_data_template.h.

◆ m_nRefs

template<typename CharType>
intptr_t fxcrt::StringDataTemplate< CharType >::m_nRefs = 0

Definition at line 90 of file string_data_template.h.

Referenced by Release(), and fxcrt::StringDataTemplate< T >::Retain().

◆ m_String

template<typename CharType>
CharType fxcrt::StringDataTemplate< CharType >::m_String[1]

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