18 #ifndef _DECAF_LANG_ABSTRACTSTRINGBUILDER_H_
19 #define _DECAF_LANG_ABSTRACTSTRINGBUILDER_H_
29 class AbstractStringBuilderImpl;
47 AbstractStringBuilderImpl* impl;
72 virtual int capacity()
const;
82 virtual char charAt(
int index)
const;
96 virtual void ensureCapacity(
int minCapacity);
120 virtual void getChars(
int start,
int end,
char* dst,
int dstSize,
int dstStart)
const;
130 virtual int indexOf(
const String& value)
const;
143 virtual int indexOf(
const String& value,
int start)
const;
154 virtual int lastIndexOf(
const String& value)
const;
168 virtual int lastIndexOf(
const String& value,
int start)
const;
175 virtual int length()
const;
189 virtual void setLength(
int length);
201 virtual void setCharAt(
int index,
char value);
216 virtual String substring(
int start)
const;
234 virtual String substring(
int start,
int end)
const;
253 virtual CharSequence* subSequence(
int start,
int end)
const;
260 virtual String toString()
const;
269 virtual void trimToSize();
284 void doAppend(
const char value);
294 void doAppend(
const char* value);
311 void doAppend(
const char* value,
int offset,
int length);
338 void doAppend(
const CharSequence* value,
int offset,
int length);
346 void doAppend(
const std::string& value);
354 void doAppend(
const String& value);
372 void doDeleteRange(
int start,
int end);
380 void doDeleteCharAt(
int index);
390 void doInsert(
int index,
char value);
400 void doInsert(
int index,
const char* value);
410 void doInsert(
int index,
const String& value);
420 void doInsert(
int index,
const std::string& value);
439 void doInsert(
int index,
const char* value,
int offset,
int length);
472 void doInsert(
int index,
const CharSequence* value,
int start,
int end);
490 void doReplace(
int start,
int end,
const String& value);
static const int INITIAL_CAPACITY
Definition: AbstractStringBuilder.h:43
A CharSequence is a readable sequence of char values.
Definition: CharSequence.h:36
A convenience class used by some Decaf classes to implement the Synchronizable interface when there i...
Definition: SynchronizableImpl.h:36
A modifiable sequence of characters for use in creating and modifying Strings.
Definition: AbstractStringBuilder.h:40
An immutable sequence of characters.
Definition: String.h:57
#define DECAF_API
Definition: Config.h:29