44 #ifndef Included_RexxMutableBuffer
45 #define Included_RexxMutableBuffer
57 void *
operator new(
size_t size,
void *ptr) {
return ptr; };
64 inline void *
operator new(
size_t size,
void *ptr){
return ptr;};
65 void *
operator new(
size_t size,
RexxClass *bufferClass);
66 void *
operator new(
size_t size);
131 inline void openGap(
size_t offset,
size_t _size,
size_t tailSize) {
data->
openGap(offset, _size, tailSize); }
132 inline void closeGap(
size_t offset,
size_t _size,
size_t tailSize) {
data->
closeGap(offset, _size, tailSize); }
171 return previousEncoding;
RexxInteger * new_integer(wholenumber_t v)
#define STRING_ISASCII_CHECKED
void setData(size_t offset, char character, size_t l)
void closeGap(size_t offset, size_t _size, size_t tailSize)
void openGap(size_t offset, size_t _size, size_t tailSize)
void setDataLength(size_t l)
void copyData(size_t offset, const char *string, size_t l)
void adjustGap(size_t offset, size_t _size, size_t _newSize)
RexxMutableBuffer * newRexx(RexxObject **, size_t, size_t)
RexxMutableBufferClass(RESTORETYPE restoreType)
RexxInteger * isASCIIRexx()
RexxInteger * caselessLastPos(RexxString *needle, RexxInteger *_start, RexxInteger *_range)
RexxMutableBuffer * caselessChangeStr(RexxString *needle, RexxString *newNeedle, RexxInteger *countArg)
RexxMutableBuffer * translate(RexxString *tableo, RexxString *tablei, RexxString *pad, RexxInteger *, RexxInteger *)
RexxMutableBuffer * appendCstring(const char *, size_t blength)
void closeGap(size_t offset, size_t _size, size_t tailSize)
bool primitiveCaselessMatch(stringsize_t start, RexxString *other, stringsize_t offset, stringsize_t len)
RexxString * subchar(RexxInteger *startPosition)
void setData(size_t offset, codepoint_t character, size_t l)
void openGap(size_t offset, size_t _size, size_t tailSize)
void setIsASCII(bool value=true)
RexxMutableBuffer * mydelete(RexxObject *, RexxObject *)
RexxArray * subWords(RexxInteger *, RexxInteger *)
RexxObject * setEncodingRexx(RexxObject *e)
RexxMutableBuffer * changeStr(RexxString *needle, RexxString *newNeedle, RexxInteger *countArg)
void liveGeneral(int reason)
RexxObject * getEncoding()
RexxInteger * verify(RexxString *, RexxString *, RexxInteger *, RexxInteger *)
RexxMutableBuffer * lower(RexxInteger *_start, RexxInteger *_length)
static void createInstance()
void flatten(RexxEnvelope *envelope)
const char * getStringData()
RexxMutableBuffer * append(RexxObject *)
RexxInteger * posRexx(RexxString *needle, RexxInteger *_start, RexxInteger *_range)
RexxMutableBuffer(RESTORETYPE restoreType)
RexxMutableBuffer * space(RexxInteger *space_count, RexxString *pad)
RexxMutableBuffer * delWord(RexxInteger *position, RexxInteger *plength)
RexxInteger * wordPos(RexxString *, RexxInteger *)
bool primitiveMatch(stringsize_t start, RexxString *other, stringsize_t offset, stringsize_t len)
void setEncoding(RexxObject *e)
void setIsASCIIChecked(bool value=true)
size_t setDataLength(size_t l)
RexxInteger * caselessWordPos(RexxString *, RexxInteger *)
RexxObject * setBufferLength(size_t)
RexxInteger * caselessMatch(RexxInteger *start_, RexxString *other, RexxInteger *offset_, RexxInteger *len_)
RexxMutableBuffer * upper(RexxInteger *_start, RexxInteger *_length)
RexxInteger * countStrRexx(RexxString *needle)
RexxInteger * matchChar(RexxInteger *position_, RexxString *matchSet)
void copyData(size_t offset, const char *string, size_t l)
RexxString * makeString()
void adjustGap(size_t offset, size_t _size, size_t _newSize)
RexxObject * lengthRexx()
RexxInteger * caselessCountStrRexx(RexxString *needle)
RexxInteger * getBufferSize()
RexxInteger * wordLength(RexxInteger *)
RexxInteger * wordIndex(RexxInteger *)
RexxObject * setBufferSize(RexxInteger *)
static RexxClass * classInstance
void ensureCapacity(size_t addedLength)
RexxInteger * lastPos(RexxString *needle, RexxInteger *_start, RexxInteger *_range)
RexxMutableBuffer * overlay(RexxObject *, RexxObject *, RexxObject *, RexxObject *)
RexxInteger * caselessMatchChar(RexxInteger *position_, RexxString *matchSet)
char * setCapacity(size_t newLength)
RexxMutableBuffer * replaceAt(RexxObject *str, RexxObject *pos, RexxObject *len, RexxObject *pad)
char getCharB(size_t offset)
RexxString * subWord(RexxInteger *, RexxInteger *)
RexxString * primitiveMakeString()
RexxInteger * match(RexxInteger *start_, RexxString *other, RexxInteger *offset_, RexxInteger *len_)
RexxInteger * caselessPos(RexxString *needle, RexxInteger *_start, RexxInteger *_range)
RexxString * word(RexxInteger *)
RexxString * substr(RexxInteger *startPosition, RexxInteger *len, RexxString *pad)
RexxMutableBuffer * insert(RexxObject *, RexxObject *, RexxObject *, RexxObject *)
RexxMessage * start(RexxObject **, size_t, size_t)
RexxObject * makeArrayRexx()