#include <StringBuffer.h>
|
|
class | ConstPageIterator |
| |
|
class | ConstIterator |
| |
|
class | Iterator |
| |
| commore::StringBuffer::StringBuffer |
( |
size_t |
page_size = PAGE_SIZE | ) |
|
| commore::StringBuffer::StringBuffer |
( |
const char * |
s, |
|
|
size_t |
page_size = PAGE_SIZE |
|
) |
| |
- Parameters
-
| s | initial content |
| page_size | |
| size_t commore::StringBuffer::add_size |
( |
size_t |
size | ) |
|
| size_t commore::StringBuffer::append |
( |
char |
| ) |
|
Append a character to current text
| size_t commore::StringBuffer::append |
( |
const char * |
| ) |
|
Append a null terminated string to current text
| size_t commore::StringBuffer::append |
( |
const StringBuffer & |
| ) |
|
Append a text to current text
| char* commore::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* commore::StringBuffer::c_str |
( |
char * |
s, |
|
|
size_t |
size |
|
) |
| const |
Copy current text to null terminated string
| const char* commore::StringBuffer::c_str |
( |
AString & |
s | ) |
const |
Copy current text to string
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 commore::StringBuffer::clear |
( |
| ) |
|
| int commore::StringBuffer::compare |
( |
const StringBuffer & |
| ) |
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
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 |
| long commore::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 commore::StringBuffer::read |
( |
const Path & |
fileName | ) |
|
| long commore::StringBuffer::read_xml |
( |
IBStream & |
i | ) |
|
Replace current text with x text content
| long commore::StringBuffer::write |
( |
CommBuffer & |
buffer | ) |
const |
Write text to a communication buffer
| long commore::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 commore::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 file: