|
blocxx
|
#include <StringBuffer.hpp>
Static Public Attributes | |
| static const size_t | BLOCXX_DEFAULT_ALLOCATION_UNIT = 128 |
Private Member Functions | |
| void | checkAvail (size_t len=1) |
Private Attributes | |
| size_t | m_len |
| size_t | m_allocated |
| char * | m_bfr |
Friends | |
| BLOCXX_COMMON_API std::ostream & | operator<< (std::ostream &ostr, const StringBuffer &b) |
Definition at line 51 of file StringBuffer.hpp.
| BLOCXX_NAMESPACE::StringBuffer::StringBuffer | ( | size_t | allocSize = BLOCXX_DEFAULT_ALLOCATION_UNIT | ) |
Definition at line 62 of file StringBuffer.cpp.
Referenced by operator=(), operator=(), and operator=().
Definition at line 70 of file StringBuffer.cpp.
References m_bfr, and BLOCXX_NAMESPACE::operator==().
Definition at line 78 of file StringBuffer.cpp.
References m_bfr, and BLOCXX_NAMESPACE::operator==().
| BLOCXX_NAMESPACE::StringBuffer::StringBuffer | ( | const StringBuffer & | arg | ) |
Definition at line 86 of file StringBuffer.cpp.
References m_bfr, and BLOCXX_NAMESPACE::operator==().
|
inline |
Definition at line 63 of file StringBuffer.hpp.
|
inline |
Definition at line 152 of file StringBuffer.hpp.
|
inline |
Definition at line 68 of file StringBuffer.hpp.
References BLOCXX_NAMESPACE::operator==().
Referenced by BLOCXX_NAMESPACE::OStringStreamBuf::buffer_to_device(), BLOCXX_NAMESPACE::SafeCString::fget_string(), getLine(), operator+=(), operator+=(), operator+=(), operator+=(), operator+=(), operator+=(), operator+=(), operator+=(), operator+=(), operator+=(), and operator+=().
|
inline |
Definition at line 75 of file StringBuffer.hpp.
References BLOCXX_NAMESPACE::operator==().
| StringBuffer & BLOCXX_NAMESPACE::StringBuffer::append | ( | const char * | str, |
| const size_t | len ) |
Definition at line 284 of file StringBuffer.cpp.
References checkAvail(), m_bfr, m_len, and BLOCXX_NAMESPACE::operator==().
|
inline |
Definition at line 84 of file StringBuffer.hpp.
References BLOCXX_NAMESPACE::operator==().
|
inline |
Definition at line 86 of file StringBuffer.hpp.
References BLOCXX_NAMESPACE::operator==().
Definition at line 154 of file StringBuffer.hpp.
Referenced by BLOCXX_NAMESPACE::OStringStreamBuf::c_str().
Definition at line 159 of file StringBuffer.hpp.
References BLOCXX_NAMESPACE::operator==().
Referenced by append().
| void BLOCXX_NAMESPACE::StringBuffer::chop | ( | ) |
Definition at line 322 of file StringBuffer.cpp.
References m_len, and truncate().
Definition at line 308 of file StringBuffer.cpp.
References m_bfr, m_len, and BLOCXX_NAMESPACE::operator==().
Definition at line 294 of file StringBuffer.cpp.
References m_bfr, and BLOCXX_NAMESPACE::operator==().
| bool BLOCXX_NAMESPACE::StringBuffer::equals | ( | const StringBuffer & | arg | ) | const |
Definition at line 301 of file StringBuffer.cpp.
References m_bfr, and BLOCXX_NAMESPACE::operator==().
Fill this StringBuffer object with the next line from the given input stream.
| is | The input stream to retrieve the next line from |
Definition at line 362 of file StringBuffer.cpp.
References append(), m_bfr, BLOCXX_NAMESPACE::operator==(), reset(), and truncate().
|
inline |
Definition at line 128 of file StringBuffer.hpp.
Referenced by BLOCXX_NAMESPACE::OStringStreamBuf::length().
| StringBuffer & BLOCXX_NAMESPACE::StringBuffer::operator+= | ( | Bool | v | ) |
Definition at line 149 of file StringBuffer.cpp.
References append(), and BLOCXX_NAMESPACE::operator==().
|
inline |
Definition at line 90 of file StringBuffer.hpp.
References BLOCXX_NAMESPACE::operator==().
|
inline |
Definition at line 92 of file StringBuffer.hpp.
References BLOCXX_NAMESPACE::operator==().
|
inline |
Definition at line 94 of file StringBuffer.hpp.
References BLOCXX_NAMESPACE::operator==().
|
inline |
Definition at line 96 of file StringBuffer.hpp.
References BLOCXX_NAMESPACE::operator==().
|
inline |
Definition at line 114 of file StringBuffer.hpp.
References BLOCXX_NAMESPACE::operator==().
| StringBuffer & BLOCXX_NAMESPACE::StringBuffer::operator+= | ( | Int16 | v | ) |
Definition at line 182 of file StringBuffer.cpp.
References append(), and BLOCXX_NAMESPACE::operator==().
| StringBuffer & BLOCXX_NAMESPACE::StringBuffer::operator+= | ( | Int32 | v | ) |
Definition at line 198 of file StringBuffer.cpp.
References append(), and BLOCXX_NAMESPACE::operator==().
| StringBuffer & BLOCXX_NAMESPACE::StringBuffer::operator+= | ( | Int64 | v | ) |
Definition at line 236 of file StringBuffer.cpp.
References append(), and BLOCXX_NAMESPACE::operator==().
| StringBuffer & BLOCXX_NAMESPACE::StringBuffer::operator+= | ( | Int8 | v | ) |
Definition at line 166 of file StringBuffer.cpp.
References append(), and BLOCXX_NAMESPACE::operator==().
| StringBuffer & BLOCXX_NAMESPACE::StringBuffer::operator+= | ( | Real32 | v | ) |
Definition at line 249 of file StringBuffer.cpp.
References append(), and BLOCXX_NAMESPACE::operator==().
| StringBuffer & BLOCXX_NAMESPACE::StringBuffer::operator+= | ( | Real64 | v | ) |
Definition at line 265 of file StringBuffer.cpp.
References append(), and BLOCXX_NAMESPACE::operator==().
| StringBuffer & BLOCXX_NAMESPACE::StringBuffer::operator+= | ( | UInt16 | v | ) |
Definition at line 174 of file StringBuffer.cpp.
References append(), and BLOCXX_NAMESPACE::operator==().
| StringBuffer & BLOCXX_NAMESPACE::StringBuffer::operator+= | ( | UInt32 | v | ) |
Definition at line 190 of file StringBuffer.cpp.
References append(), and BLOCXX_NAMESPACE::operator==().
| StringBuffer & BLOCXX_NAMESPACE::StringBuffer::operator+= | ( | UInt64 | v | ) |
Definition at line 224 of file StringBuffer.cpp.
References append(), and BLOCXX_NAMESPACE::operator==().
| StringBuffer & BLOCXX_NAMESPACE::StringBuffer::operator+= | ( | UInt8 | v | ) |
Definition at line 158 of file StringBuffer.cpp.
References append(), and BLOCXX_NAMESPACE::operator==().
| StringBuffer & BLOCXX_NAMESPACE::StringBuffer::operator= | ( | const char * | str | ) |
Definition at line 101 of file StringBuffer.cpp.
References BLOCXX_NAMESPACE::operator==(), StringBuffer(), and swap().
| StringBuffer & BLOCXX_NAMESPACE::StringBuffer::operator= | ( | const String & | arg | ) |
Definition at line 94 of file StringBuffer.cpp.
References BLOCXX_NAMESPACE::operator==(), StringBuffer(), and swap().
| StringBuffer & BLOCXX_NAMESPACE::StringBuffer::operator= | ( | const StringBuffer & | arg | ) |
Definition at line 108 of file StringBuffer.cpp.
References BLOCXX_NAMESPACE::operator==(), StringBuffer(), and swap().
Definition at line 142 of file StringBuffer.cpp.
References m_bfr, m_len, and BLOCXX_NAMESPACE::operator==().
|
inline |
Definition at line 122 of file StringBuffer.hpp.
References BLOCXX_NAMESPACE::String::E_TAKE_OWNERSHIP, and BLOCXX_NAMESPACE::operator==().
Referenced by BLOCXX_NAMESPACE::CmdLineParser::getUsage(), and BLOCXX_NAMESPACE::OStringStreamBuf::releaseString().
| void BLOCXX_NAMESPACE::StringBuffer::reset | ( | ) |
Definition at line 123 of file StringBuffer.cpp.
Referenced by getLine(), and BLOCXX_NAMESPACE::OStringStreamBuf::reset().
Definition at line 315 of file StringBuffer.cpp.
References m_bfr, m_len, and BLOCXX_NAMESPACE::operator==().
| void BLOCXX_NAMESPACE::StringBuffer::swap | ( | StringBuffer & | x | ) |
Definition at line 115 of file StringBuffer.cpp.
References m_allocated, m_bfr, m_len, and BLOCXX_NAMESPACE::operator==().
Referenced by operator=(), operator=(), and operator=().
|
inline |
Definition at line 119 of file StringBuffer.hpp.
Referenced by BLOCXX_NAMESPACE::OStringStreamBuf::toString().
| void BLOCXX_NAMESPACE::StringBuffer::trim | ( | ) |
Definition at line 332 of file StringBuffer.cpp.
References m_bfr, m_len, and BLOCXX_NAMESPACE::operator==().
Truncate the string at the given index.
This doesn't change anything before the given index and does not free up any memory.
| index | The index to truncate the string buffer at. If this value is greater than the current length of the StringBuffer, then nothing is done. |
Definition at line 131 of file StringBuffer.cpp.
References m_bfr, m_len, and BLOCXX_NAMESPACE::operator==().
|
friend |
Definition at line 405 of file StringBuffer.cpp.
Definition at line 57 of file StringBuffer.hpp.
|
private |
Definition at line 174 of file StringBuffer.hpp.
Referenced by swap().
|
private |
Definition at line 175 of file StringBuffer.hpp.
Referenced by append(), endsWith(), equals(), equals(), getLine(), operator[](), reset(), startsWith(), StringBuffer(), StringBuffer(), StringBuffer(), swap(), trim(), and truncate().
|
private |
Definition at line 173 of file StringBuffer.hpp.
Referenced by append(), chop(), endsWith(), operator[](), reset(), startsWith(), swap(), trim(), and truncate().