The GrowBuf
Class Reference
Class representing a string buffer optimized for growing. More...
Declaration
class GrowBuf { ... }
Public Constructors Index
Public Destructor Index
Public Operators Index
Public Member Functions Index
Private Member Attributes Index
Description
Class representing a string buffer optimized for growing.
Definition at line 27 of file growbuf.h.
Public Constructors
GrowBuf()
GrowBuf()
GrowBuf::GrowBuf (size_t initialSize) |
|
inline
|
GrowBuf()
GrowBuf::GrowBuf (const GrowBuf & other) |
|
inline
|
GrowBuf()
GrowBuf::GrowBuf (GrowBuf && other) |
|
inline
|
Public Destructor
~GrowBuf()
Public Operators
operator=()
GrowBuf & GrowBuf::operator= (const GrowBuf & other) |
|
inline
|
operator=()
GrowBuf & GrowBuf::operator= (GrowBuf && other) |
|
inline
|
Definition at line 58 of file growbuf.h.
59 {
60 if (this==&other)
61 return *this;
62 m_len = std::exchange(other.m_len,0);
63 m_pos = std::exchange(other.m_pos,0);
64 m_str = std::exchange(other.m_str,static_cast<char*>(nullptr));
65 return *this;
66 }
References GrowBuf, m_len, m_pos and m_str.
Public Member Functions
addChar()
void GrowBuf::addChar (char c) |
|
inline
|
Definition at line 69 of file growbuf.h.
References GROW_AMOUNT, m_len, m_pos and m_str.
Referenced by SearchIndexExternal::addWord, convertCharEntitiesToUTF8, convertToDocBook, convertToHtml, convertToId, convertToJSString, convertToPSString, convertToXML, detab, escapeCharsInString, filter2008VhdlComment, filterId, HtmlDocVisitor::filterQuotedCdataAttr, formatDateTime, getConvertLatexMacro, CitationManager::getFormulas, DocParser::processCopyDoc and replaceVariables.
addInt()
void GrowBuf::addInt (const char * fmt, int value) |
|
inline
|
addStr()
void GrowBuf::addStr (const QCString & s) |
|
inline
|
Definition at line 72 of file growbuf.h.
References QCString::data, GROW_AMOUNT, QCString::isEmpty, QCString::length, m_len, m_pos and m_str.
Referenced by addInt, SearchIndexExternal::addWord, convertCharEntitiesToUTF8, convertToDocBook, convertToHtml, convertToId, convertToJSString, convertToPSString, convertToXML, detab, escapeCharsInString, filterId, HtmlDocVisitor::filterQuotedCdataAttr, formatDateTime, getConvertLatexMacro, CitationManager::getFormulas, DocParser::processCopyDoc and replaceVariables.
addStr()
void GrowBuf::addStr (const std::string & s) |
|
inline
|
addStr()
void GrowBuf::addStr (const char * s) |
|
inline
|
addStr()
void GrowBuf::addStr (const char * s, size_t n) |
|
inline
|
at()
const char & GrowBuf::at (size_t i) |
|
inline
|
clear()
empty()
get()
Definition at line 114 of file growbuf.h.
Reference m_str.
Referenced by convertCharEntitiesToUTF8, convertToDocBook, convertToHtml, convertToId, convertToJSString, convertToPSString, convertToXML, detab, escapeCharsInString, filter2008VhdlComment, filterId, HtmlDocVisitor::filterQuotedCdataAttr, formatDateTime, getConvertLatexMacro, CitationManager::getFormulas, DocParser::processCopyDoc and replaceVariables.
get()
const char * GrowBuf::get () |
|
inline
|
getPos()
size_t GrowBuf::getPos () |
|
inline
|
reserve()
void GrowBuf::reserve (size_t size) |
|
inline
|
setPos()
void GrowBuf::setPos (size_t newPos) |
|
inline
|
Private Member Attributes
m_len
Definition at line 123 of file growbuf.h.
Referenced by addChar, addStr, addStr, addStr, addStr, GrowBuf, GrowBuf, GrowBuf, GrowBuf, operator=, operator= and reserve.
m_pos
Definition at line 122 of file growbuf.h.
Referenced by addChar, addStr, addStr, addStr, addStr, clear, empty, getPos, GrowBuf, GrowBuf, GrowBuf, GrowBuf, operator=, operator= and setPos.
m_str
Definition at line 121 of file growbuf.h.
Referenced by addChar, addStr, addStr, addStr, addStr, at, get, get, GrowBuf, GrowBuf, GrowBuf, GrowBuf, operator=, operator=, reserve and ~GrowBuf.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus by Doxygen 1.14.0.