浏览该文件的文档.
9 #define GROW_AMOUNT 1024*4
47 m_len = std::exchange(other.m_len,0);
48 m_pos = std::exchange(other.m_pos,0);
49 m_str = std::exchange(other.m_str,(
char*)0);
uint length() const
Returns the length of the string, not counting the 0-terminator.
bool isEmpty() const
Returns TRUE iff the string is empty
void addStr(const QCString &s)
void addStr(const char *s, uint n)
void addStr(const char *s)
GrowBuf(const GrowBuf &other)
Class representing a string buffer optimised for growing.
GrowBuf & operator=(const GrowBuf &other)
GrowBuf & operator=(GrowBuf &&other)
GrowBuf(uint initialSize)
const char * data() const
Returns a pointer to the contents of the string in the form of a 0-terminated C string
void addStr(const std::string &s)
This is an alternative implementation of QCString.