Doxygen
|
Class representing a string buffer optimized for growing. More...
#include <src/growbuf.h>
Public Member Functions | |
GrowBuf () | |
GrowBuf (size_t initialSize) | |
~GrowBuf () | |
GrowBuf (const GrowBuf &other) | |
GrowBuf & | operator= (const GrowBuf &other) |
GrowBuf (GrowBuf &&other) | |
GrowBuf & | operator= (GrowBuf &&other) |
void | reserve (size_t size) |
void | clear () |
void | addChar (char c) |
void | addStr (const QCString &s) |
void | addStr (const std::string &s) |
void | addStr (const char *s) |
void | addStr (const char *s, size_t n) |
void | addInt (const char *fmt, int value) |
char * | get () |
const char * | get () const |
size_t | getPos () const |
void | setPos (size_t newPos) |
const char & | at (size_t i) const |
bool | empty () const |
Private Attributes | |
char * | m_str |
size_t | m_pos |
size_t | m_len |
|
inline |
Definition at line 30 of file growbuf.h.
References m_len, m_pos, and m_str.
Referenced by GrowBuf(), GrowBuf(), operator=(), and operator=().
|
inline |
|
inline |
|
inline |
|
inline |
|
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().
|
inline |
Definition at line 109 of file growbuf.h.
References addStr().
Referenced by formatDateTime().
|
inline |
|
inline |
|
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().
|
inline |
|
inline |
|
inline |
Definition at line 68 of file growbuf.h.
References m_pos.
Referenced by filterId(), and CitationManager::getFormulas().
|
inline |
|
inline |
Definition at line 114 of file growbuf.h.
References 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().
|
inline |
|
inline |
Definition at line 116 of file growbuf.h.
References m_pos.
Referenced by SearchIndexExternal::addWord(), filter2008VhdlComment(), and DocParser::processCopyDoc().
|
inline |
|
inline |
Definition at line 117 of file growbuf.h.
References m_pos.
Referenced by filter2008VhdlComment().
|
private |
|
private |
|
private |