#include <StringBuffer.h>
StringBuffer::StringBuffer |
( |
size_t |
page_size = PAGE_SIZE | ) |
|
StringBuffer::StringBuffer |
( |
const char * |
s, |
|
|
size_t |
page_size = PAGE_SIZE |
|
) |
| |
- Parameters
-
s | initial content |
page_size | |
StringBuffer::StringBuffer |
( |
const StringBuffer & |
s, |
|
|
size_t |
page_size |
|
) |
| |
StringBuffer::~StringBuffer |
( |
| ) |
|
size_t StringBuffer::add_size |
( |
size_t |
size | ) |
|
size_t StringBuffer::append |
( |
char |
c | ) |
|
Append a character to current text
size_t StringBuffer::append |
( |
const char * |
s | ) |
|
Append a null terminated string to current text
Append a text to current text
char * StringBuffer::append |
( |
| ) |
|
Append a character to current text
- Returns
- pointer to appened character
- Returns
- a const character iterator on text begin
iterator commore::StringBuffer::begin |
( |
| ) |
|
|
inline |
- Returns
- a character iterator on text begin
const char * StringBuffer::c_str |
( |
char * |
s, |
|
|
size_t |
size |
|
) |
| const |
Copy current text to null terminated string
const char * StringBuffer::c_str |
( |
AString & |
s | ) |
const |
Copy current text to string
const char * StringBuffer::c_str |
( |
const AString & |
s = AString() | ) |
const |
Get a cbegin const iterator cbegin is identical to the const version of begin() but it ensures, in any context, to be recognized by the compiler as returning a const_iterator
void StringBuffer::clear |
( |
| ) |
|
int commore::StringBuffer::compare |
( |
const char * |
s | ) |
const |
size_t commore::StringBuffer::get_page_size |
( |
| ) |
const |
|
inline |
size_t commore::StringBuffer::get_size |
( |
| ) |
const |
|
inline |
Append a character to current text
StringBuffer& commore::StringBuffer::operator+= |
( |
const char * |
s | ) |
|
|
inline |
Append a null terminated string to current text
Append a text to current text
Append a text to current text
bool commore::StringBuffer::operator< |
( |
const StringBuffer & |
s | ) |
const |
|
inline |
bool commore::StringBuffer::operator< |
( |
const char * |
s | ) |
const |
|
inline |
Append a character to current text
StringBuffer& commore::StringBuffer::operator<< |
( |
const char * |
s | ) |
|
|
inline |
Append a null terminated string to current text
Append a text to current text
Append a text to current text
StringBuffer& commore::StringBuffer::operator= |
( |
const char * |
s | ) |
|
|
inline |
bool commore::StringBuffer::operator== |
( |
const StringBuffer & |
s | ) |
const |
|
inline |
bool commore::StringBuffer::operator== |
( |
const char * |
s | ) |
const |
|
inline |
bool commore::StringBuffer::operator> |
( |
const StringBuffer & |
s | ) |
const |
|
inline |
bool commore::StringBuffer::operator> |
( |
const char * |
s | ) |
const |
|
inline |
long StringBuffer::read |
( |
const CommBuffer & |
buffer | ) |
|
Read a text from a communcation buffer
long commore::StringBuffer::read |
( |
IBStream & |
i | ) |
|
long commore::StringBuffer::read |
( |
IBStream & |
i, |
|
|
const char * |
delimitor |
|
) |
| |
long StringBuffer::read |
( |
const Path & |
fileName | ) |
|
long commore::StringBuffer::read_xml |
( |
IBStream & |
i | ) |
|
size_t commore::StringBuffer::size |
( |
| ) |
const |
|
inline |
Replace current text with x text content
long StringBuffer::write |
( |
CommBuffer & |
buffer | ) |
const |
Write text to a communication buffer
long StringBuffer::write |
( |
OBStream & |
o | ) |
const |
Write text to stream (raw)
long commore::StringBuffer::write |
( |
OBStream & |
o, |
|
|
const char * |
delimitor |
|
) |
| const |
Write text to a text stream with a delimitor
long StringBuffer::write |
( |
const Path & |
file_name, |
|
|
bool |
check = false |
|
) |
| const |
Write text to file
- Parameters
-
file_name | |
check | if true do not write in file when file content is already identical to StringBuffer text (optimization) |
long commore::StringBuffer::write_xml |
( |
OBStream & |
o | ) |
const |
Write text to stream as CDATA
The documentation for this class was generated from the following files: