![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <string_template.h>
Public Types | |
using | CharType = T |
using | UnsignedType = typename std::make_unsigned<CharType>::type |
using | StringView = StringViewTemplate<T> |
using | const_iterator = T* |
using | const_reverse_iterator = std::reverse_iterator<const_iterator> |
Public Member Functions | |
bool | IsEmpty () const |
size_t | GetLength () const |
size_t | GetStringLength () const |
const UnsignedType * | unsigned_str () const |
StringView | AsStringView () const |
const CharType * | c_str () const |
pdfium::span< const CharType > | span () const |
pdfium::span< const UnsignedType > | unsigned_span () const |
pdfium::span< const CharType > | span_with_terminator () const |
pdfium::span< const UnsignedType > | unsigned_span_with_terminator () const |
const_iterator | begin () const |
const_iterator | end () const |
const_reverse_iterator | rbegin () const |
const_reverse_iterator | rend () const |
bool | IsValidIndex (size_t index) const |
bool | IsValidLength (size_t length) const |
CharType | operator[] (const size_t index) const |
CharType | Front () const |
CharType | Back () const |
void | clear () |
pdfium::span< T > | GetBuffer (size_t nMinBufLength) |
void | ReleaseBuffer (size_t nNewLength) |
size_t | Insert (size_t index, T ch) |
size_t | InsertAtFront (T ch) |
size_t | InsertAtBack (T ch) |
size_t | Remove (T ch) |
size_t | Delete (size_t index, size_t count=1) |
std::optional< size_t > | Find (StringView str, size_t start=0) const |
std::optional< size_t > | Find (T ch, size_t start=0) const |
std::optional< size_t > | ReverseFind (T ch) const |
bool | Contains (StringView str, size_t start=0) const |
bool | Contains (T ch, size_t start=0) const |
size_t | Replace (StringView oldstr, StringView newstr) |
void | SetAt (size_t index, T ch) |
void | Reserve (size_t len) |
void | Trim (T ch) |
void | TrimFront (T ch) |
void | TrimBack (T ch) |
void | Trim (StringView targets) |
void | TrimFront (StringView targets) |
void | TrimBack (StringView targets) |
Protected Types | |
using | StringData = StringDataTemplate<T> |
Protected Member Functions | |
StringTemplate ()=default | |
StringTemplate (const StringTemplate &other)=default | |
StringTemplate (StringTemplate &&other) noexcept=default | |
~StringTemplate ()=default | |
void | ReallocBeforeWrite (size_t nNewLen) |
void | AllocBeforeWrite (size_t nNewLen) |
void | AssignCopy (const T *pSrcData, size_t nSrcLen) |
void | Concat (const T *pSrcData, size_t nSrcLen) |
Protected Attributes | |
RetainPtr< StringData > | m_pData |
Definition at line 32 of file string_template.h.
using fxcrt::StringTemplate< T >::CharType = T |
Definition at line 34 of file string_template.h.
using fxcrt::StringTemplate< T >::const_iterator = T* |
Definition at line 37 of file string_template.h.
using fxcrt::StringTemplate< T >::const_reverse_iterator = std::reverse_iterator<const_iterator> |
Definition at line 38 of file string_template.h.
|
protected |
Definition at line 189 of file string_template.h.
using fxcrt::StringTemplate< T >::StringView = StringViewTemplate<T> |
Definition at line 36 of file string_template.h.
using fxcrt::StringTemplate< T >::UnsignedType = typename std::make_unsigned<CharType>::type |
Definition at line 35 of file string_template.h.
|
protecteddefault |
|
protecteddefault |
|
protecteddefaultnoexcept |
|
protecteddefault |
|
protected |
Definition at line 324 of file string_template.cpp.
References clear(), and m_pData.
|
protected |
Definition at line 336 of file string_template.cpp.
References m_pData.
|
inline |
Definition at line 57 of file string_template.h.
|
inline |
Definition at line 130 of file string_template.h.
References m_pData.
|
inline |
Definition at line 100 of file string_template.h.
References m_pData.
Referenced by rend().
|
inline |
Definition at line 62 of file string_template.h.
References m_pData.
void fxcrt::StringTemplate< T >::clear | ( | ) |
Definition at line 371 of file string_template.cpp.
References m_pData.
Referenced by AllocBeforeWrite(), ReallocBeforeWrite(), and ReleaseBuffer().
|
protected |
Definition at line 344 of file string_template.cpp.
References m_pData.
|
inline |
Definition at line 163 of file string_template.h.
|
inline |
Definition at line 166 of file string_template.h.
size_t fxcrt::StringTemplate< T >::Delete | ( | size_t | index, |
size_t | count = 1 ) |
Definition at line 104 of file string_template.cpp.
References m_pData.
|
inline |
Definition at line 103 of file string_template.h.
References m_pData.
Referenced by rbegin().
std::optional< size_t > fxcrt::StringTemplate< T >::Find | ( | StringView | str, |
size_t | start = 0 ) const |
Definition at line 139 of file string_template.cpp.
std::optional< size_t > fxcrt::StringTemplate< T >::Find | ( | T | ch, |
size_t | start = 0 ) const |
Definition at line 134 of file string_template.cpp.
|
inline |
Definition at line 126 of file string_template.h.
References m_pData.
pdfium::span< T > fxcrt::StringTemplate< T >::GetBuffer | ( | size_t | nMinBufLength | ) |
Definition at line 21 of file string_template.cpp.
References m_pData.
|
inline |
Definition at line 41 of file string_template.h.
References m_pData.
|
inline |
Definition at line 44 of file string_template.h.
References m_pData.
size_t fxcrt::StringTemplate< T >::Insert | ( | size_t | index, |
T | ch ) |
Definition at line 89 of file string_template.cpp.
References m_pData.
|
inline |
Definition at line 150 of file string_template.h.
|
inline |
Definition at line 149 of file string_template.h.
|
inline |
Definition at line 40 of file string_template.h.
|
inline |
Definition at line 115 of file string_template.h.
|
inline |
Definition at line 116 of file string_template.h.
|
inline |
Definition at line 119 of file string_template.h.
References m_pData.
|
inline |
Definition at line 108 of file string_template.h.
References end().
|
protected |
Definition at line 301 of file string_template.cpp.
References clear(), and m_pData.
void fxcrt::StringTemplate< T >::ReleaseBuffer | ( | size_t | nNewLength | ) |
Definition at line 46 of file string_template.cpp.
References clear(), and m_pData.
size_t fxcrt::StringTemplate< T >::Remove | ( | T | ch | ) |
Definition at line 67 of file string_template.cpp.
References m_pData.
|
inline |
Definition at line 111 of file string_template.h.
References begin().
size_t fxcrt::StringTemplate< T >::Replace | ( | StringView | oldstr, |
StringView | newstr ) |
Definition at line 170 of file string_template.cpp.
|
inline |
Definition at line 176 of file string_template.h.
std::optional< size_t > fxcrt::StringTemplate< T >::ReverseFind | ( | T | ch | ) | const |
Definition at line 156 of file string_template.cpp.
void fxcrt::StringTemplate< T >::SetAt | ( | size_t | index, |
T | ch ) |
Definition at line 127 of file string_template.cpp.
References m_pData.
|
inline |
Definition at line 69 of file string_template.h.
|
inline |
Definition at line 83 of file string_template.h.
References m_pData.
void fxcrt::StringTemplate< T >::Trim | ( | StringView | targets | ) |
Definition at line 231 of file string_template.cpp.
void fxcrt::StringTemplate< T >::Trim | ( | T | ch | ) |
Definition at line 215 of file string_template.cpp.
void fxcrt::StringTemplate< T >::TrimBack | ( | StringView | targets | ) |
Definition at line 272 of file string_template.cpp.
References m_pData.
void fxcrt::StringTemplate< T >::TrimBack | ( | T | ch | ) |
Definition at line 226 of file string_template.cpp.
void fxcrt::StringTemplate< T >::TrimFront | ( | StringView | targets | ) |
Definition at line 237 of file string_template.cpp.
References m_pData.
void fxcrt::StringTemplate< T >::TrimFront | ( | T | ch | ) |
Definition at line 221 of file string_template.cpp.
|
inline |
Definition at line 75 of file string_template.h.
|
inline |
Definition at line 95 of file string_template.h.
|
inline |
Definition at line 50 of file string_template.h.
References m_pData.
|
protected |
Definition at line 204 of file string_template.h.
Referenced by AllocBeforeWrite(), AssignCopy(), Back(), begin(), c_str(), clear(), Concat(), Delete(), fxcrt::StringTemplate< char >::Delete(), end(), Front(), GetBuffer(), GetLength(), GetStringLength(), Insert(), operator[](), ReallocBeforeWrite(), ReleaseBuffer(), Remove(), fxcrt::StringTemplate< char >::ReverseFind(), SetAt(), span_with_terminator(), TrimBack(), TrimFront(), and unsigned_str().