#include <StringBuffer.hpp>
Public Member Functions | |
| StringBuffer (size_t allocSize=BLOCXX_DEFAULT_ALLOCATION_UNIT) | |
| StringBuffer (const char *arg) | |
| StringBuffer (const String &arg) | |
| StringBuffer (const StringBuffer &arg) | |
| ~StringBuffer () | |
| StringBuffer & | operator= (const StringBuffer &arg) |
| StringBuffer & | operator= (const String &arg) |
| StringBuffer & | operator= (const char *str) |
| void | swap (StringBuffer &x) |
| StringBuffer & | append (char c) |
| StringBuffer & | append (const char *str) |
| StringBuffer & | append (const char *str, const size_t len) |
| StringBuffer & | append (const String &arg) |
| StringBuffer & | append (const StringBuffer &arg) |
| StringBuffer & | operator+= (char c) |
| StringBuffer & | operator+= (Char16 c) |
| StringBuffer & | operator+= (const char *str) |
| StringBuffer & | operator+= (const String &arg) |
| StringBuffer & | operator+= (Bool v) |
| StringBuffer & | operator+= (UInt8 v) |
| StringBuffer & | operator+= (Int8 v) |
| StringBuffer & | operator+= (UInt16 v) |
| StringBuffer & | operator+= (Int16 v) |
| StringBuffer & | operator+= (UInt32 v) |
| StringBuffer & | operator+= (Int32 v) |
| StringBuffer & | operator+= (UInt64 v) |
| StringBuffer & | operator+= (Int64 v) |
| StringBuffer & | operator+= (Real32 v) |
| StringBuffer & | operator+= (Real64 v) |
| StringBuffer & | operator+= (const StringBuffer &arg) |
| char | operator[] (size_t ndx) const |
| String | toString () const |
| String | releaseString () |
| size_t | length () const |
| void | truncate (size_t index) |
| Truncate the string at the given index. | |
| const char * | getLine (std::istream &is, bool resetBuffer=true) |
| Fill this StringBuffer object with the next line from the given input stream. | |
| bool | endsWith (char ch) const |
| bool | startsWith (char ch) const |
| void | chop () |
| void | trim () |
| size_t | allocated () const |
| void | reset () |
| const char * | c_str () const |
| bool | equals (const char *arg) const |
| bool | equals (const StringBuffer &arg) const |
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 | |
| std::ostream & | operator<< (std::ostream &ostr, const StringBuffer &b) |
Definition at line 50 of file StringBuffer.hpp.
|
|
Definition at line 61 of file StringBuffer.cpp. References m_bfr. Referenced by operator=(). |
|
|
Definition at line 69 of file StringBuffer.cpp. References m_bfr. |
|
|
Definition at line 77 of file StringBuffer.cpp. References BLOCXX_NAMESPACE::String::c_str(), and m_bfr. |
|
|
Definition at line 85 of file StringBuffer.cpp. |
|
|
Definition at line 62 of file StringBuffer.hpp. |
|
|
Definition at line 147 of file StringBuffer.hpp. |
|
|
Definition at line 85 of file StringBuffer.hpp. |
|
|
Definition at line 83 of file StringBuffer.hpp. References BLOCXX_NAMESPACE::String::c_str(), and BLOCXX_NAMESPACE::String::length(). |
|
||||||||||||
|
Definition at line 266 of file StringBuffer.cpp. References checkAvail(), m_bfr, and m_len. |
|
|
Definition at line 74 of file StringBuffer.hpp. |
|
|
Definition at line 67 of file StringBuffer.hpp. Referenced by BLOCXX_NAMESPACE::OStringStreamBuf::buffer_to_device(), BLOCXX_NAMESPACE::LogMessagePatternFormatter::Converter::formatMessage(), getLine(), and operator+=(). |
|
|
Definition at line 149 of file StringBuffer.hpp. Referenced by append(), BLOCXX_NAMESPACE::OStringStreamBuf::c_str(), BLOCXX_NAMESPACE::operator<<(), and BLOCXX_NAMESPACE::operator==(). |
|
|
Definition at line 154 of file StringBuffer.hpp. Referenced by append(). |
|
|
Definition at line 304 of file StringBuffer.cpp. References m_len, and truncate(). |
|
|
Definition at line 290 of file StringBuffer.cpp. |
|
|
Definition at line 283 of file StringBuffer.cpp. References m_bfr. |
|
|
Definition at line 276 of file StringBuffer.cpp. References m_bfr. Referenced by BLOCXX_NAMESPACE::operator==(). |
|
||||||||||||
|
Fill this StringBuffer object with the next line from the given input stream.
Definition at line 344 of file StringBuffer.cpp. References append(), m_bfr, reset(), and truncate(). |
|
|
Definition at line 122 of file StringBuffer.hpp. Referenced by append(), BLOCXX_NAMESPACE::LogMessagePatternFormatter::Converter::formatMessage(), BLOCXX_NAMESPACE::CmdLineParser::getUsage(), BLOCXX_NAMESPACE::OStringStreamBuf::length(), and BLOCXX_NAMESPACE::operator<<(). |
|
|
Definition at line 108 of file StringBuffer.hpp. |
|
|
Definition at line 247 of file StringBuffer.cpp. References append(). |
|
|
Definition at line 231 of file StringBuffer.cpp. References append(). |
|
|
Definition at line 218 of file StringBuffer.cpp. References append(). |
|
|
Definition at line 206 of file StringBuffer.cpp. References append(). |
|
|
Definition at line 198 of file StringBuffer.cpp. References append(). |
|
|
Definition at line 190 of file StringBuffer.cpp. References append(). |
|
|
Definition at line 182 of file StringBuffer.cpp. References append(). |
|
|
Definition at line 174 of file StringBuffer.cpp. References append(). |
|
|
Definition at line 166 of file StringBuffer.cpp. References append(). |
|
|
Definition at line 158 of file StringBuffer.cpp. References append(). |
|
|
Definition at line 148 of file StringBuffer.cpp. References append(), and BLOCXX_NAMESPACE::Bool::toString(). |
|
|
Definition at line 95 of file StringBuffer.hpp. |
|
|
Definition at line 93 of file StringBuffer.hpp. |
|
|
Definition at line 91 of file StringBuffer.hpp. References BLOCXX_NAMESPACE::Char16::toString(). |
|
|
Definition at line 89 of file StringBuffer.hpp. |
|
|
Definition at line 100 of file StringBuffer.cpp. References StringBuffer(). |
|
|
Definition at line 93 of file StringBuffer.cpp. References StringBuffer(). |
|
|
Definition at line 107 of file StringBuffer.cpp. References StringBuffer(). |
|
|
Definition at line 141 of file StringBuffer.cpp. |
|
|
|
Definition at line 122 of file StringBuffer.cpp. Referenced by getLine(), and BLOCXX_NAMESPACE::OStringStreamBuf::reset(). |
|
|
Definition at line 297 of file StringBuffer.cpp. |
|
|
Definition at line 114 of file StringBuffer.cpp. References m_allocated, m_bfr, m_len, and BLOCXX_NAMESPACE::swap(). |
|
|
Definition at line 113 of file StringBuffer.hpp. Referenced by BLOCXX_NAMESPACE::CmdLineParser::getUsage(), and BLOCXX_NAMESPACE::OStringStreamBuf::toString(). |
|
|
Definition at line 314 of file StringBuffer.cpp. |
|
|
Truncate the string at the given index. This doesn't change anything before the given index and does not free up any memory.
Definition at line 130 of file StringBuffer.cpp. Referenced by chop(), BLOCXX_NAMESPACE::LogMessagePatternFormatter::Converter::formatMessage(), and getLine(). |
|
||||||||||||
|
Definition at line 387 of file StringBuffer.cpp. |
|
|
Definition at line 56 of file StringBuffer.hpp. |
|
|
Definition at line 169 of file StringBuffer.hpp. Referenced by swap(). |
|
|
Definition at line 170 of file StringBuffer.hpp. Referenced by append(), endsWith(), equals(), getLine(), operator[](), reset(), startsWith(), StringBuffer(), swap(), trim(), and truncate(). |
|
|
Definition at line 168 of file StringBuffer.hpp. Referenced by append(), chop(), endsWith(), operator[](), reset(), startsWith(), StringBuffer(), swap(), trim(), and truncate(). |
1.4.4