.
|
Public Member Functions |
| StringBuffer () |
| StringBuffer (size_t cap) |
| StringBuffer (IN(RString) str) |
virtual | ~StringBuffer () |
bool | isCChar () |
bool | isUc2Char () |
bool | isUc4Char () |
RString | toString () |
| return a string representation of this object Object::toString() return getName() by default
|
int | length () |
| return the length of the byte chars
|
void | reset () |
| API: ACDK
resets the internal string, without freeing internal buffer.
Note: if internal buffer is shared with another String, internally _unshare will be called.
|
uc2char | charAt (int idx) |
| returns the char at byte char position
|
void | setCharAt (int idx, char c) |
| set char at index position
|
void | setCharAt (int idx, uc2char c) |
RStringBuffer | set (IN(RString) str) |
| replace current buffer with given argument.
|
void | getChars (int srcBegin, int srcEnd, IN(RcharArray) dst, int dstBegin, IN(acdk::locale::REncoder) enc) |
| Kopiert die Zeichen ab der Position srcBegin bis zur Position srcEnd in den Puffer dst, wobei srcEnd die Position hinter dem letzten zu kopierenden Zeichen ist.
|
RStringBuffer | reverse () |
| API: JDK
reverse this buffer.
|
RStringBuffer | append (const char *cptr, int len=-1) |
| API: ACDK.
|
RStringBuffer | append (const uc2char *cptr, int len=-1) |
RStringBuffer | append (IN(RString) c) |
RStringBuffer | append (const String &str) |
RStringBuffer | append (String::iterator begin, String::iterator end) |
RStringBuffer | append (char c) |
| API: JDK
Status: Basic Tests.
|
RStringBuffer | append (uc2char c) |
RStringBuffer | append (bool b) |
RStringBuffer | append (int b) |
RStringBuffer | append (jlong b) |
RStringBuffer | append (float b) |
RStringBuffer | append (double b) |
RStringBuffer | append (IN(RObject) b) |
int | capacity () |
void | ensureCapacity (int mincap) |
| ensure capacity of mincap chars
|
void | setLength (int newLength) throw ( RIndexOutOfBoundsException ) |
RStringBuffer | deleteRegion (int start, int end) throw ( RIndexOutOfBoundsException ) |
| API: like JDK.
|
RStringBuffer | deleteCharAt (int index) throw ( RIndexOutOfBoundsException ) |
| API: like JDK.
|
RStringBuffer | replace (int start, int end, IN(RString) str) throw ( RIndexOutOfBoundsException ) |
RString | substring (int start, int end=-1) throw ( RIndexOutOfBoundsException ) |
RStringBuffer | insert (int index, const String &str) |
RStringBuffer | insert (int index, const char *str) |
RStringBuffer | insert (int index, const uc2char *str) |
RStringBuffer | insert (int index, const char *str, int offset, int len) |
RStringBuffer | insert (int index, const uc2char *str, int offset, int len) |
RStringBuffer | insert (int offset, IN(RString) str) throw ( RIndexOutOfBoundsException ) |
RStringBuffer | insert (int offset, char ch) throw ( RIndexOutOfBoundsException ) |
RStringBuffer | insert (int offset, uc2char ch) throw ( RIndexOutOfBoundsException ) |
RStringBuffer | insert (int offset, IN(RObject) obj) throw ( RIndexOutOfBoundsException ) |
RStringBuffer | insert (int offset, int b) throw ( RIndexOutOfBoundsException ) |
RStringBuffer | insert (int offset, jlong l) throw ( RIndexOutOfBoundsException ) |
RStringBuffer | insert (int offset, double d) throw ( RIndexOutOfBoundsException ) |
RStringBuffer | insert (int offset, float f) throw ( RIndexOutOfBoundsException ) |
RStringBuffer | insert (int offset, bool b) throw ( RIndexOutOfBoundsException ) |
RStringBuffer | append (int offset, int b) throw ( RIndexOutOfBoundsException ) |
RStringBuffer | operator+= (IN(RString) other) |
| mainly used via DMI
|
RStringBuffer | operator+= (IN(RObject) other) |
| mainly used via DMI
|
RStringBuffer | operator+= (bool other) |
| mainly used via DMI
|
RStringBuffer | operator+= (char other) |
| mainly used via DMI
|
RStringBuffer | operator+= (uc2char other) |
RStringBuffer | operator+= (byte other) |
| mainly used via DMI
|
RStringBuffer | operator+= (short other) |
| mainly used via DMI
|
RStringBuffer | operator+= (int other) |
| mainly used via DMI
|
RStringBuffer | operator+= (jlong other) |
| mainly used via DMI
|
RStringBuffer | operator+= (float other) |
| mainly used via DMI
|
RStringBuffer | operator+= (double other) |
| mainly used via DMI
|
RStringBuffer | operator_lt_lt (IN(RString) other) |
| mainly used via DMI
|
RStringBuffer | operator_lt_lt (IN(RObject) other) |
| mainly used via DMI
|
RStringBuffer | operator_lt_lt (bool other) |
| mainly used via DMI
|
RStringBuffer | operator_lt_lt (char other) |
| mainly used via DMI
|
RStringBuffer | operator_lt_lt (uc2char other) |
RStringBuffer | operator_lt_lt (byte other) |
| mainly used via DMI
|
RStringBuffer | operator_lt_lt (short other) |
| mainly used via DMI
|
RStringBuffer | operator_lt_lt (int other) |
| mainly used via DMI
|
RStringBuffer | operator_lt_lt (jlong other) |
| mainly used via DMI
|
RStringBuffer | operator_lt_lt (float other) |
| mainly used via DMI
|
RStringBuffer | operator_lt_lt (double other) |
| mainly used via DMI
|
bool | equals (IN(RObject) o) |
| API: extended Checks if o is StringBuffer or String and tests strcmp.
|
RObject | clone (sys::Allocator *alc) |
| reimplemented from Object
|
RObject | clone () |
| reimplemented from Object
|
const char * | c_str () |
| API: ACDK.
|
Static Public Member Functions |
RObject | create_instance () |
Private Member Functions |
void | _unShare (int mincap=0) |
void | _unShare2 (int mincap) |
Private Attributes |
RString | _str |
bool | _shared |