#include <jem/base/StringBuffer.h>
|
virtual | ~Interface () |
| Empty destructor. More...
|
|
TextOutput & | operator<< (TextOutput &out, bool b) |
| Prints a boolean to a text output stream. More...
|
|
TextOutput & | operator<< (TextOutput &out, byte b) |
| Prints a byte to a text output stream. More...
|
|
TextOutput & | operator<< (TextOutput &out, char c) |
| Prints a character to a text output stream. More...
|
|
TextOutput & | operator<< (TextOutput &out, short i) |
| Prints a short integer to a text output stream. More...
|
|
TextOutput & | operator<< (TextOutput &out, int i) |
| Prints an integer to a text output stream. More...
|
|
TextOutput & | operator<< (TextOutput &out, long i) |
| Prints a long integer to a text output stream. More...
|
|
TextOutput & | operator<< (TextOutput &out, float f) |
| Prints a float to a text output stream. More...
|
|
TextOutput & | operator<< (TextOutput &out, double d) |
| Prints a double to a text output stream. More...
|
|
TextOutput & | operator<< (TextOutput &out, const char *s) |
| Prints a string to a text output stream. More...
|
|
TextOutput & | operator<< (TextOutput &out, TextOutput &(*manip)(TextOutput &)) |
| Applies a manipulator function to a text output stream. More...
|
|
TextOutput & | endl (TextOutput &out) |
| Writes a newline to a text output stream. More...
|
|
jem::StringBuffer::StringBuffer |
( |
| ) |
|
jem::StringBuffer::StringBuffer |
( |
idx_t |
size | ) |
|
|
explicit |
jem::StringBuffer::StringBuffer |
( |
const String & |
str | ) |
|
|
explicit |
jem::StringBuffer::StringBuffer |
( |
const Self & |
rhs | ) |
|
virtual void jem::StringBuffer::write |
( |
int |
c | ) |
|
|
virtual |
Writes the integer c, cast to an unsigned char
, to this output stream.
- Parameters
-
c | - the character to be written. |
- Exceptions
-
IOException | - if an I/O error occurs. |
Implements jem::io::TextOutput.
virtual void jem::StringBuffer::write |
( |
int |
c, |
|
|
idx_t |
n |
|
) |
| |
|
virtual |
virtual void jem::StringBuffer::write |
( |
const char * |
buf, |
|
|
idx_t |
len |
|
) |
| |
|
virtual |
virtual void jem::StringBuffer::printByte |
( |
byte |
b | ) |
|
|
virtual |
Prints the byte b, converted to a character string, to this output stream. You should normally not call this function directly, but use one of the overloaded print operators.
- Parameters
-
b | - the byte to be printed. |
- Exceptions
-
IOException | - if an I/O error occurs. |
- See also
operator << ( TextOutput&, byte )
Implements jem::io::TextOutput.
virtual void jem::StringBuffer::printBool |
( |
bool |
b | ) |
|
|
virtual |
Prints the bool b, converted to a character string, to this output stream. You should normally not call this function directly, but use one of the overloaded print operators.
- Parameters
-
b | - the bool to be printed. |
- Exceptions
-
IOException | - if an I/O error occurs. |
- See also
operator << ( TextOutput&, bool )
Implements jem::io::TextOutput.
virtual void jem::StringBuffer::printInt |
( |
lint |
i | ) |
|
|
virtual |
virtual void jem::StringBuffer::printFloat |
( |
double |
d | ) |
|
|
virtual |
Prints the double d, converted to a character string, to this output stream. You should normally not call this function directly, but use one of the overloaded print operators.
- Parameters
-
d | - the double to be printed. |
- Exceptions
-
IOException | - if an I/O error occurs. |
- See also
operator << ( TextOutput&, double )
Implements jem::io::TextOutput.
Self& jem::StringBuffer::operator= |
( |
const Self & |
rhs | ) |
|
Self& jem::StringBuffer::operator= |
( |
const String & |
rhs | ) |
|
template<class T >
Self& jem::StringBuffer::operator+= |
( |
const T & |
rhs | ) |
|
Self& jem::StringBuffer::operator+= |
( |
const String & |
rhs | ) |
|
Self& jem::StringBuffer::operator+= |
( |
char |
rhs | ) |
|
char & jem::StringBuffer::operator[] |
( |
idx_t |
i | ) |
|
char jem::StringBuffer::operator[] |
( |
idx_t |
i | ) |
const |
String jem::StringBuffer::operator[] |
( |
const Slice & |
s | ) |
const |
idx_t jem::StringBuffer::size |
( |
| ) |
const |
idx_t jem::StringBuffer::capacity |
( |
| ) |
const |
char * jem::StringBuffer::begin |
( |
| ) |
|
const char * jem::StringBuffer::begin |
( |
| ) |
const |
char * jem::StringBuffer::end |
( |
| ) |
|
const char * jem::StringBuffer::end |
( |
| ) |
const |
char & jem::StringBuffer::front |
( |
| ) |
|
char jem::StringBuffer::front |
( |
| ) |
const |
char & jem::StringBuffer::back |
( |
| ) |
|
char jem::StringBuffer::back |
( |
| ) |
const |
char * jem::StringBuffer::addr |
( |
| ) |
|
const char * jem::StringBuffer::addr |
( |
| ) |
const |
void jem::StringBuffer::swap |
( |
Self & |
rhs | ) |
|
void jem::StringBuffer::clear |
( |
| ) |
|
void jem::StringBuffer::resize |
( |
idx_t |
size | ) |
|
char * jem::StringBuffer::expand |
( |
idx_t |
len | ) |
|
char * jem::StringBuffer::xalloc |
( |
idx_t |
len | ) |
|
void jem::StringBuffer::commit |
( |
idx_t |
len | ) |
|
void jem::StringBuffer::reserve |
( |
idx_t |
cap | ) |
|
String jem::StringBuffer::toString |
( |
| ) |
|
template<class T >
StringBuffer& jem::StringBuffer::operator+= |
( |
const T & |
rhs | ) |
|