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 (const CharType *pStr, size_t nLen)
 
void CopyContentsAt (size_t offset, const CharType *pStr, size_t nLen)
 

Static Public Member Functions

static StringDataTemplateCreate (size_t nLen)
 
static StringDataTemplateCreate (const CharType *pStr, size_t nLen)
 

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 16 of file string_data_template.h.

Member Function Documentation

◆ CanOperateInPlace()

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

Definition at line 24 of file string_data_template.h.

◆ CopyContents() [1/2]

template<typename CharType >
void fxcrt::StringDataTemplate< CharType >::CopyContents ( const CharType * pStr,
size_t nLen )

◆ CopyContents() [2/2]

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

◆ CopyContentsAt()

template<typename CharType >
void fxcrt::StringDataTemplate< CharType >::CopyContentsAt ( size_t offset,
const CharType * pStr,
size_t nLen )

◆ Create() [1/2]

template<typename CharType >
StringDataTemplate< CharType > * fxcrt::StringDataTemplate< CharType >::Create ( const CharType * pStr,
size_t nLen )
static

Definition at line 50 of file string_data_template.cpp.

◆ Create() [2/2]

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

Definition at line 23 of file string_data_template.cpp.

◆ Release()

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

Definition at line 59 of file string_data_template.cpp.

References fxcrt::StringDataTemplate< CharType >::m_nRefs, and pdfium::internal::StringDealloc().

+ Here is the call graph for this function:

◆ Retain()

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

Member Data Documentation

◆ m_nAllocLength

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

Definition at line 43 of file string_data_template.h.

◆ m_nDataLength

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

Definition at line 42 of file string_data_template.h.

◆ m_nRefs

◆ m_String


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