#include <MutableBufferClass.hpp>
Static Public Member Functions | |
static void | createInstance () |
Static Public Member Functions inherited from RexxObject | |
static void | decodeMessageName (RexxObject *target, RexxObject *message, RexxString *&messageName, RexxObject *&startScope) |
static void | createInstance () |
Static Public Member Functions inherited from RexxInternalObject | |
static size_t | getObjectHeaderSize () |
Static Public Attributes | |
static RexxClass * | classInstance = OREF_NULL |
Static Public Attributes inherited from RexxObject | |
static PCPPM | operatorMethods [] |
static RexxClass * | classInstance = OREF_NULL |
Protected Attributes | |
sizeB_t | bufferLength |
sizeB_t | defaultSize |
sizeB_t | dataBLength |
RexxBuffer * | data |
Friends | |
class | RexxMutableBufferClass |
Additional Inherited Members | |
Public Attributes inherited from RexxInternalObject | |
ObjectHeader | header |
RexxBehaviour * | behaviour |
Protected Member Functions inherited from RexxVirtualBase | |
virtual | ~RexxVirtualBase () |
virtual void | baseVirtual () |
Definition at line 61 of file MutableBufferClass.hpp.
RexxMutableBuffer::RexxMutableBuffer | ( | ) |
Default constructor.
Definition at line 127 of file MutableBufferClass.cpp.
References bufferLength, data, dataBLength, DEFAULT_BUFFER_LENGTH, defaultSize, new_buffer(), OREF_NULL, and RexxBufferBase::setDataLength().
Constructor with explicitly set size and default.
l | Initial length. |
d | The explicit default size. |
Definition at line 147 of file MutableBufferClass.cpp.
References bufferLength, data, defaultSize, new_buffer(), OREF_NULL, and setBLength().
|
inline |
Definition at line 69 of file MutableBufferClass.hpp.
Definition at line 133 of file MutableBufferClass.hpp.
References RexxBufferBase::adjustGap(), and data.
Referenced by replaceAt().
RexxMutableBuffer * RexxMutableBuffer::append | ( | RexxObject * | obj | ) |
Definition at line 333 of file MutableBufferClass.cpp.
References ARG_ONE, copyData(), dataBLength, ensureCapacity(), RexxString::getBLength(), RexxString::getStringData(), setBLength(), and stringArgument().
Referenced by RexxMemory::createImage(), and RexxArray::toString().
RexxMutableBuffer * RexxMutableBuffer::appendCstring | ( | const char * | _data, |
sizeB_t | blength | ||
) |
Definition at line 349 of file MutableBufferClass.cpp.
References RexxBufferBase::copyData(), data, dataBLength, ensureCapacity(), and setBLength().
RexxMutableBuffer * RexxMutableBuffer::caselessChangeStr | ( | RexxString * | needle, |
RexxString * | newNeedle, | ||
RexxInteger * | countArg | ||
) |
Do an inplace caseless changeStr operation on a mutablebuffer.
needle | The search needle. |
newNeedle | The replacement string. |
countArg | The number of occurrences to replace. |
Definition at line 977 of file MutableBufferClass.cpp.
References ARG_ONE, ARG_THREE, ARG_TWO, StringUtil::caselessCountStr(), StringUtil::caselessPos(), copyData(), ensureCapacity(), getBLength(), RexxString::getBLength(), getStringData(), RexxString::getStringData(), Numerics::MAX_WHOLENUMBER, openGap(), optionalPositive(), setBLength(), and stringArgument().
Referenced by RexxMemory::createImage().
RexxInteger * RexxMutableBuffer::caselessCountStrRexx | ( | RexxString * | needle | ) |
Definition at line 814 of file MutableBufferClass.cpp.
References ARG_ONE, StringUtil::caselessCountStr(), getBLength(), getStringData(), new_integer(), and stringArgument().
Referenced by RexxMemory::createImage().
RexxInteger * RexxMutableBuffer::caselessLastPos | ( | RexxString * | needle, |
RexxInteger * | pstart, | ||
RexxInteger * | range | ||
) |
Perform a caseless search for the last position of a string within the buffer.
needle | The search needle. |
pstart | the starting position. |
Definition at line 755 of file MutableBufferClass.cpp.
References ARG_ONE, ARG_THREE, ARG_TWO, StringUtil::caselessLastPos(), getBLength(), getStringData(), new_integer(), optionalLengthArgument(), optionalPositionArgument(), and stringArgument().
Referenced by RexxMemory::createImage().
RexxInteger * RexxMutableBuffer::caselessMatch | ( | RexxInteger * | start_, |
RexxString * | other, | ||
RexxInteger * | offset_, | ||
RexxInteger * | len_ | ||
) |
Test if regions within two strings match.
start_ | The starting compare position within the target string. This must be within the bounds of the string. |
other | The other compare string. |
offset_ | The starting offset of the compare string. This must be within the string bounds. The default start postion is 1. |
len_ | The length of the compare substring. The length and the offset must specify a valid substring of other. If not specified, this defaults to the substring from the offset to the end of the string. |
Definition at line 1326 of file MutableBufferClass.cpp.
References ARG_FOUR, ARG_ONE, ARG_THREE, ARG_TWO, Error_Incorrect_method_length, Error_Incorrect_method_position, getBLength(), RexxString::getBLength(), optionalLengthArgument(), optionalPositionArgument(), positionArgument(), primitiveCaselessMatch(), reportException(), size_v, stringArgument(), TheFalseObject, and TheTrueObject.
Referenced by RexxMemory::createImage().
RexxInteger * RexxMutableBuffer::caselessMatchChar | ( | RexxInteger * | position_, |
RexxString * | matchSet | ||
) |
Compare a single character at a give position against a set of characters to see if any of the characters is a match.
position_ | The character position |
matchSet | The set to compare against. |
Definition at line 1456 of file MutableBufferClass.cpp.
References ARG_ONE, ARG_TWO, Error_Incorrect_method_position, getBLength(), RexxString::getBLength(), getCharB(), RexxString::getCharB(), positionArgument(), reportException(), size_v, stringArgument(), TheFalseObject, and TheTrueObject.
Referenced by RexxMemory::createImage().
RexxInteger * RexxMutableBuffer::caselessPos | ( | RexxString * | needle, |
RexxInteger * | pstart, | ||
RexxInteger * | range | ||
) |
Perform a caseless search for a string within the buffer.
needle | The search needle. |
pstart | the starting position. |
Definition at line 729 of file MutableBufferClass.cpp.
References ARG_ONE, ARG_THREE, ARG_TWO, StringUtil::caselessPos(), getBLength(), getStringData(), new_integer(), optionalLengthArgument(), optionalPositionArgument(), and stringArgument().
Referenced by RexxMemory::createImage().
RexxInteger * RexxMutableBuffer::caselessWordPos | ( | RexxString * | phrase, |
RexxInteger * | pstart | ||
) |
Perform a caseless wordpos search on a string object.
phrase | The search phrase |
pstart | The starting search position. |
Definition at line 1616 of file MutableBufferClass.cpp.
References StringUtil::caselessWordPos(), getBLength(), and getStringData().
Referenced by RexxMemory::createImage().
RexxMutableBuffer * RexxMutableBuffer::changeStr | ( | RexxString * | needle, |
RexxString * | newNeedle, | ||
RexxInteger * | countArg | ||
) |
Do an inplace changeStr operation on a mutablebuffer.
needle | The search needle. |
newNeedle | The replacement string. |
countArg | The number of occurrences to replace. |
Definition at line 836 of file MutableBufferClass.cpp.
References ARG_ONE, ARG_THREE, ARG_TWO, copyData(), StringUtil::countStr(), ensureCapacity(), getBLength(), RexxString::getBLength(), getStringData(), RexxString::getStringData(), Numerics::MAX_WHOLENUMBER, openGap(), optionalPositive(), StringUtil::pos(), setBLength(), and stringArgument().
Referenced by RexxMemory::createImage().
Definition at line 132 of file MutableBufferClass.hpp.
References RexxBufferBase::closeGap(), and data.
Referenced by delWord(), and mydelete().
|
virtual |
Reimplemented from RexxInternalObject.
Definition at line 222 of file MutableBufferClass.cpp.
References bufferLength, RexxInternalObject::clone(), copyData(), data, dataBLength, defaultSize, RexxBuffer::getData(), new_buffer(), and setBLength().
Definition at line 130 of file MutableBufferClass.hpp.
References RexxBufferBase::copyData(), and data.
Referenced by append(), caselessChangeStr(), changeStr(), copy(), insert(), RexxMutableBufferClass::newRexx(), overlay(), replaceAt(), and space().
RexxInteger * RexxMutableBuffer::countStrRexx | ( | RexxString * | needle | ) |
Definition at line 801 of file MutableBufferClass.cpp.
References ARG_ONE, StringUtil::countStr(), getBLength(), getStringData(), new_integer(), and stringArgument().
Referenced by RexxMemory::createImage().
|
static |
Create initial class object at bootstrap time.
Definition at line 63 of file MutableBufferClass.cpp.
References CLASS_CREATE.
Referenced by RexxMemory::createImage().
RexxMutableBuffer * RexxMutableBuffer::delWord | ( | RexxInteger * | position, |
RexxInteger * | plength | ||
) |
Perform a delword operation on a mutable buffer
position | The position to delete. |
plength | The number of words to delete |
Definition at line 1631 of file MutableBufferClass.cpp.
References ARG_ONE, ARG_TWO, closeGap(), dataBLength, getBLength(), getStringData(), Numerics::MAX_WHOLENUMBER, StringUtil::nextWord(), optionalLengthArgument(), positionArgument(), setBLength(), sizeB_v, and StringUtil::skipBlanks().
Referenced by RexxMemory::createImage().
void RexxMutableBuffer::ensureCapacity | ( | sizeB_t | addedLength | ) |
Definition at line 241 of file MutableBufferClass.cpp.
References bufferLength, RexxBufferBase::copyData(), data, dataBLength, RexxBuffer::getData(), RexxBufferBase::getDataLength(), new_buffer(), OrefSet, and RexxBufferBase::setDataLength().
Referenced by append(), appendCstring(), caselessChangeStr(), changeStr(), insert(), overlay(), replaceAt(), setCapacity(), and space().
|
virtual |
Reimplemented from RexxVirtualBase.
Definition at line 209 of file MutableBufferClass.cpp.
References cleanUpFlatten, flatten_reference, and setUpFlatten.
|
inline |
Definition at line 125 of file MutableBufferClass.hpp.
References dataBLength.
Referenced by caselessChangeStr(), caselessCountStrRexx(), caselessLastPos(), caselessMatch(), caselessMatchChar(), caselessPos(), caselessWordPos(), changeStr(), countStrRexx(), delWord(), lastPos(), lengthRexx(), lower(), makeArrayRexx(), match(), matchChar(), posRexx(), primitiveCaselessMatch(), primitiveMatch(), setDataLength(), space(), subchar(), substr(), subWord(), subWords(), translate(), upper(), verify(), word(), wordIndex(), wordLength(), wordPos(), and words().
|
inline |
Definition at line 127 of file MutableBufferClass.hpp.
References bufferLength.
|
inline |
Definition at line 93 of file MutableBufferClass.hpp.
References bufferLength, and new_integer().
Referenced by RexxMemory::createImage().
|
inline |
Definition at line 137 of file MutableBufferClass.hpp.
References bufferLength.
Referenced by setDataLength().
|
inline |
Definition at line 135 of file MutableBufferClass.hpp.
References getData(), and size_v.
Referenced by caselessMatchChar(), and matchChar().
|
inline |
Definition at line 129 of file MutableBufferClass.hpp.
References data, and RexxBuffer::getData().
Referenced by getCharB(), lower(), setCapacity(), translate(), and upper().
|
inline |
Definition at line 124 of file MutableBufferClass.hpp.
References data, and RexxBuffer::getData().
Referenced by caselessChangeStr(), caselessCountStrRexx(), caselessLastPos(), caselessPos(), caselessWordPos(), changeStr(), countStrRexx(), delWord(), lastPos(), makeArrayRexx(), posRexx(), primitiveCaselessMatch(), primitiveMatch(), space(), subchar(), substr(), subWord(), subWords(), verify(), word(), wordIndex(), wordLength(), wordPos(), and words().
RexxMutableBuffer * RexxMutableBuffer::insert | ( | RexxObject * | str, |
RexxObject * | pos, | ||
RexxObject * | len, | ||
RexxObject * | pad | ||
) |
Definition at line 364 of file MutableBufferClass.cpp.
References ARG_FOUR, ARG_ONE, ARG_THREE, ARG_TWO, copyData(), dataBLength, ensureCapacity(), RexxString::getBLength(), RexxString::getStringData(), Numerics::minVal(), openGap(), optionalLengthArgument(), optionalNonNegative(), optionalPadArgument(), setBLength(), setData(), and stringArgument().
Referenced by RexxMemory::createImage().
RexxInteger * RexxMutableBuffer::lastPos | ( | RexxString * | needle, |
RexxInteger * | _start, | ||
RexxInteger * | _range | ||
) |
Perform a search for the last position of a string within the buffer.
needle | The search needle. |
pstart | the starting position. |
Definition at line 713 of file MutableBufferClass.cpp.
References getBLength(), getStringData(), and StringUtil::lastPosRexx().
Referenced by RexxMemory::createImage().
RexxObject * RexxMutableBuffer::lengthRexx | ( | ) |
Return the length of the data in the buffer currently.
Definition at line 326 of file MutableBufferClass.cpp.
References getBLength(), and new_integer().
Referenced by RexxMemory::createImage().
|
virtual |
Reimplemented from RexxVirtualBase.
Definition at line 190 of file MutableBufferClass.cpp.
References data, and memory_mark.
|
virtual |
Reimplemented from RexxVirtualBase.
Definition at line 199 of file MutableBufferClass.cpp.
References data, and memory_mark_general.
RexxMutableBuffer * RexxMutableBuffer::lower | ( | RexxInteger * | _start, |
RexxInteger * | _length | ||
) |
Rexx exported method stub for the lower() method.
start | The optional starting location. Defaults to the first character if not specified. |
length | The length to convert. Defaults to the segment from the start position to the end of the string. |
Definition at line 1119 of file MutableBufferClass.cpp.
References ARG_ONE, ARG_TWO, getBLength(), getData(), Numerics::minVal(), optionalLengthArgument(), and optionalPositionArgument().
Referenced by RexxMemory::createImage().
|
virtual |
Baseclass optimization for handling request array calls.
Reimplemented from RexxInternalObject.
Definition at line 650 of file MutableBufferClass.cpp.
References RexxObject::makeArrayRexx(), and OREF_NULL.
RexxArray * RexxMutableBuffer::makeArrayRexx | ( | RexxString * | div | ) |
Definition at line 791 of file MutableBufferClass.cpp.
References getBLength(), getStringData(), and StringUtil::makearray().
|
virtual |
Reimplemented from RexxInternalObject.
Definition at line 637 of file MutableBufferClass.cpp.
References data, RexxBuffer::getData(), and new_string().
Referenced by primitiveMakeString(), and RexxArray::toString().
RexxInteger * RexxMutableBuffer::match | ( | RexxInteger * | start_, |
RexxString * | other, | ||
RexxInteger * | offset_, | ||
RexxInteger * | len_ | ||
) |
Test if regions within two strings match.
start_ | The starting compare position within the target string. This must be within the bounds of the string. |
other | The other compare string. |
offset_ | The starting offset of the compare string. This must be within the string bounds. The default start postion is 1. |
len_ | The length of the compare substring. The length and the offset must specify a valid substring of other. If not specified, this defaults to the substring from the offset to the end of the string. |
Definition at line 1282 of file MutableBufferClass.cpp.
References ARG_FOUR, ARG_ONE, ARG_THREE, ARG_TWO, Error_Incorrect_method_length, Error_Incorrect_method_position, getBLength(), RexxString::getBLength(), optionalLengthArgument(), optionalPositionArgument(), positionArgument(), primitiveMatch(), reportException(), size_v, stringArgument(), TheFalseObject, and TheTrueObject.
Referenced by RexxMemory::createImage().
RexxInteger * RexxMutableBuffer::matchChar | ( | RexxInteger * | position_, |
RexxString * | matchSet | ||
) |
Compare a single character at a give position against a set of characters to see if any of the characters is a match.
position_ | The character position |
matchSet | The set to compare against. |
Definition at line 1419 of file MutableBufferClass.cpp.
References ARG_ONE, ARG_TWO, Error_Incorrect_method_position, getBLength(), RexxString::getBLength(), getCharB(), RexxString::getCharB(), positionArgument(), reportException(), size_v, stringArgument(), TheFalseObject, and TheTrueObject.
Referenced by RexxMemory::createImage().
RexxMutableBuffer * RexxMutableBuffer::mydelete | ( | RexxObject * | _start, |
RexxObject * | len | ||
) |
Definition at line 563 of file MutableBufferClass.cpp.
References ARG_ONE, ARG_TWO, closeGap(), dataBLength, optionalLengthArgument(), positionArgument(), and setBLength().
Referenced by RexxMemory::createImage().
Definition at line 131 of file MutableBufferClass.hpp.
References data, and RexxBufferBase::openGap().
Referenced by caselessChangeStr(), changeStr(), insert(), and space().
void * RexxMutableBuffer::operator new | ( | size_t | size | ) |
Create a new mutable buffer object from a potential subclass.
size | The size of the buffer object. |
Definition at line 167 of file MutableBufferClass.cpp.
References new_object(), and T_MutableBuffer.
void * RexxMutableBuffer::operator new | ( | size_t | size, |
RexxClass * | bufferClass | ||
) |
Create a new mutable buffer object from a potential subclass.
size | The size of the buffer object. |
bufferClass | The class of the buffer object. |
Definition at line 182 of file MutableBufferClass.cpp.
References new_object(), RexxInternalObject::setBehaviour(), and T_MutableBuffer.
|
inline |
Definition at line 64 of file MutableBufferClass.hpp.
RexxMutableBuffer * RexxMutableBuffer::overlay | ( | RexxObject * | str, |
RexxObject * | pos, | ||
RexxObject * | len, | ||
RexxObject * | pad | ||
) |
Definition at line 432 of file MutableBufferClass.cpp.
References ARG_FOUR, ARG_ONE, ARG_THREE, ARG_TWO, copyData(), dataBLength, ensureCapacity(), RexxString::getBLength(), RexxString::getStringData(), Numerics::minVal(), optionalLengthArgument(), optionalPadArgument(), optionalPositionArgument(), setBLength(), setData(), and stringArgument().
Referenced by RexxMemory::createImage().
RexxInteger * RexxMutableBuffer::posRexx | ( | RexxString * | needle, |
RexxInteger * | pstart, | ||
RexxInteger * | range | ||
) |
Perform a search for a string within the buffer.
needle | The search needle. |
pstart | the starting position. |
Definition at line 696 of file MutableBufferClass.cpp.
References getBLength(), getStringData(), and StringUtil::posRexx().
Referenced by RexxMemory::createImage().
bool RexxMutableBuffer::primitiveCaselessMatch | ( | stringsizeB_t | _start, |
RexxString * | other, | ||
stringsizeB_t | offset, | ||
stringsizeB_t | len | ||
) |
Perform a caselesee compare of regions of two string objects. Returns true if the two regions match, returns false for mismatches.
start | The starting offset within the target string. |
other | The source string for the compare. |
offset | The offset of the substring of the other string to use. |
len | The length of the substring to compare. |
Definition at line 1392 of file MutableBufferClass.cpp.
References StringUtil::caselessCompare(), getBLength(), getStringData(), and RexxString::getStringData().
Referenced by caselessMatch().
|
virtual |
Handle the primitive class makeString optimization. This is required because MutableBuffer implements a STRING method.
Reimplemented from RexxInternalObject.
Definition at line 663 of file MutableBufferClass.cpp.
References makeString().
bool RexxMutableBuffer::primitiveMatch | ( | stringsizeB_t | _start, |
RexxString * | other, | ||
stringsizeB_t | offset, | ||
stringsizeB_t | len | ||
) |
Perform a compare of regions of two string objects. Returns true if the two regions match, returns false for mismatches.
start | The starting offset within the target string. |
other | The source string for the compare. |
offset | The offset of the substring of the other string to use. |
len | The length of the substring to compare. |
Definition at line 1365 of file MutableBufferClass.cpp.
References getBLength(), getStringData(), and RexxString::getStringData().
Referenced by match().
RexxMutableBuffer * RexxMutableBuffer::replaceAt | ( | RexxObject * | str, |
RexxObject * | pos, | ||
RexxObject * | len, | ||
RexxObject * | pad | ||
) |
Replace a target substring within a string with a new string value. This is similar overlay, but replacing might cause the characters following the replacement position to be shifted to the left or right.
str | The replacement string. |
pos | The target position (required). |
len | The target length (optional). If not specified, the length of the replacement string is used, and this is essentially an overlay operation. |
pad | A padding character if padding is required. The default pad is a ' '. Padding only occurs if the replacement position is beyond the current data length. |
Definition at line 492 of file MutableBufferClass.cpp.
References adjustGap(), ARG_FOUR, ARG_ONE, ARG_THREE, ARG_TWO, copyData(), dataBLength, ensureCapacity(), RexxString::getStringData(), optionalLengthArgument(), optionalPadArgument(), positionArgument(), setBLength(), setData(), and stringArgument().
Referenced by RexxMemory::createImage().
|
inline |
Definition at line 126 of file MutableBufferClass.hpp.
References data, dataBLength, RexxBufferBase::setDataLength(), and size_v.
Referenced by append(), appendCstring(), caselessChangeStr(), changeStr(), copy(), delWord(), insert(), mydelete(), RexxMutableBufferClass::newRexx(), overlay(), replaceAt(), RexxMutableBuffer(), and setBufferLength().
RexxObject * RexxMutableBuffer::setBufferLength | ( | sizeB_t | newsize | ) |
Definition at line 591 of file MutableBufferClass.cpp.
References bufferLength, RexxBufferBase::copyData(), data, dataBLength, defaultSize, RexxBuffer::getData(), Numerics::minVal(), new_buffer(), OrefSet, and setBLength().
Referenced by setBufferSize().
RexxObject * RexxMutableBuffer::setBufferSize | ( | RexxInteger * | size | ) |
Definition at line 627 of file MutableBufferClass.cpp.
References ARG_ONE, lengthArgument(), and setBufferLength().
Referenced by RexxMemory::createImage().
char * RexxMutableBuffer::setCapacity | ( | sizeB_t | newLength | ) |
Set the capacity of the buffer.
newLength | The new buffer length |
Definition at line 307 of file MutableBufferClass.cpp.
References bufferLength, ensureCapacity(), and getData().
Definition at line 134 of file MutableBufferClass.hpp.
References data, and RexxBufferBase::setData().
Referenced by insert(), overlay(), replaceAt(), setDataLength(), and space().
Set the length of the data in the buffer. The limit is the current capacity of the buffer. If the length is extended beyond the current length, the extra characters of the buffer will be filled with nulls.
newLength | The new datalength. This is capped to the capacity of the buffer. |
Definition at line 279 of file MutableBufferClass.cpp.
References dataBLength, getBLength(), getCapacity(), and setData().
RexxMutableBuffer * RexxMutableBuffer::space | ( | RexxInteger * | space_count, |
RexxString * | pad | ||
) |
Do an inplace space() operation on a mutable buffer.
space_count | The number of pad characters between each word |
pad | The pad character |
Definition at line 1693 of file MutableBufferClass.cpp.
References ARG_ONE, ARG_TWO, copyData(), dataBLength, ensureCapacity(), getBLength(), getStringData(), StringUtil::nextWord(), openGap(), optionalLengthArgument(), optionalPadArgument(), and setData().
Referenced by RexxMemory::createImage().
RexxString * RexxMutableBuffer::subchar | ( | RexxInteger * | positionArg | ) |
Extract a single character from a string object. Returns a null string if the specified position is beyond the bounds of the string.
positionArg | The position of the target character. Must be a positive whole number. |
Definition at line 784 of file MutableBufferClass.cpp.
References getBLength(), getStringData(), and StringUtil::subchar().
Referenced by RexxMemory::createImage().
RexxString * RexxMutableBuffer::substr | ( | RexxInteger * | startPosition, |
RexxInteger * | len, | ||
RexxString * | pad | ||
) |
Definition at line 678 of file MutableBufferClass.cpp.
References getBLength(), getStringData(), and StringUtil::substr().
Referenced by RexxMemory::createImage().
RexxString * RexxMutableBuffer::subWord | ( | RexxInteger * | position, |
RexxInteger * | plength | ||
) |
Perform a subword extraction from a mutable buffer.
position | The first word to be extracted. |
plength | The number of words to extract. |
Definition at line 1509 of file MutableBufferClass.cpp.
References getBLength(), getStringData(), and StringUtil::subWord().
Referenced by RexxMemory::createImage().
RexxArray * RexxMutableBuffer::subWords | ( | RexxInteger * | position, |
RexxInteger * | plength | ||
) |
Returns an array of all words contained in the given range of the string, using the same extraction rules used for subWord() and word().
position | The optional starting position. If not provided, extraction starts with the first word. |
plength | The number of words to extract. If omitted, will extract from the starting postion to the end of the string. |
Definition at line 1529 of file MutableBufferClass.cpp.
References getBLength(), getStringData(), and StringUtil::subWords().
Referenced by RexxMemory::createImage().
RexxMutableBuffer * RexxMutableBuffer::translate | ( | RexxString * | tableo, |
RexxString * | tablei, | ||
RexxString * | pad, | ||
RexxInteger * | _start, | ||
RexxInteger * | _range | ||
) |
translate characters in the buffer using a translation table.
tableo | The output table specification |
tablei | The input table specification |
pad | An optional padding character (default is a space). |
_start | The starting position to translate. |
_range | The length to translate |
Definition at line 1202 of file MutableBufferClass.cpp.
References ARG_FOUR, ARG_ONE, ARG_THREE, ARG_TWO, getBLength(), RexxString::getBLength(), getData(), RexxString::getStringData(), StringUtil::memPos(), Numerics::minVal(), optionalLengthArgument(), optionalPadArgument(), optionalPositionArgument(), optionalStringArgument(), OREF_NULL, and upper().
Referenced by RexxMemory::createImage().
RexxMutableBuffer * RexxMutableBuffer::upper | ( | RexxInteger * | _start, |
RexxInteger * | _length | ||
) |
Rexx exported method stub for the upper() method.
start | The optional starting location. Defaults to the first character if not specified. |
length | The length to convert. Defaults to the segment from the start position to the end of the string. |
Definition at line 1160 of file MutableBufferClass.cpp.
References ARG_ONE, ARG_TWO, getBLength(), getData(), Numerics::minVal(), optionalLengthArgument(), and optionalPositionArgument().
Referenced by RexxMemory::createImage(), and translate().
RexxInteger * RexxMutableBuffer::verify | ( | RexxString * | ref, |
RexxString * | option, | ||
RexxInteger * | _start, | ||
RexxInteger * | range | ||
) |
Perform a character verify operation on a mutable buffer.
ref | The reference string. |
option | The match/nomatch option. |
_start | The start position for the verify. |
range | The range to search |
Definition at line 1494 of file MutableBufferClass.cpp.
References getBLength(), getStringData(), and StringUtil::verify().
Referenced by RexxMemory::createImage().
RexxString * RexxMutableBuffer::word | ( | RexxInteger * | position | ) |
Extract a given word from a mutable buffer.
position | The target word position. |
Definition at line 1543 of file MutableBufferClass.cpp.
References getBLength(), getStringData(), and StringUtil::word().
Referenced by RexxMemory::createImage().
RexxInteger * RexxMutableBuffer::wordIndex | ( | RexxInteger * | position | ) |
return the index of a given word position in a mutable buffer
position | The target word position. |
Definition at line 1558 of file MutableBufferClass.cpp.
References getBLength(), getStringData(), and StringUtil::wordIndex().
Referenced by RexxMemory::createImage().
RexxInteger * RexxMutableBuffer::wordLength | ( | RexxInteger * | position | ) |
return the length of a given word position in a mutable buffer
position | The target word position. |
Definition at line 1574 of file MutableBufferClass.cpp.
References getBLength(), getStringData(), and StringUtil::wordLength().
Referenced by RexxMemory::createImage().
RexxInteger * RexxMutableBuffer::wordPos | ( | RexxString * | phrase, |
RexxInteger * | pstart | ||
) |
Perform a wordpos search on a mutablebuffer object.
phrase | The search phrase |
pstart | The starting search position. |
Definition at line 1601 of file MutableBufferClass.cpp.
References getBLength(), getStringData(), and StringUtil::wordPos().
Referenced by RexxMemory::createImage().
RexxInteger * RexxMutableBuffer::words | ( | ) |
Return the count of words in the buffer.
Definition at line 1585 of file MutableBufferClass.cpp.
References getBLength(), getStringData(), new_integer(), and StringUtil::wordCount().
Referenced by RexxMemory::createImage().
|
friend |
Definition at line 62 of file MutableBufferClass.hpp.
|
protected |
Definition at line 146 of file MutableBufferClass.hpp.
Referenced by copy(), ensureCapacity(), getBufferLength(), getBufferSize(), getCapacity(), RexxMutableBuffer(), setBufferLength(), and setCapacity().
Definition at line 143 of file MutableBufferClass.hpp.
|
protected |
Definition at line 149 of file MutableBufferClass.hpp.
Referenced by adjustGap(), appendCstring(), closeGap(), copy(), copyData(), ensureCapacity(), getData(), getStringData(), live(), liveGeneral(), makeString(), openGap(), RexxMutableBuffer(), setBLength(), setBufferLength(), and setData().
|
protected |
Definition at line 148 of file MutableBufferClass.hpp.
Referenced by append(), appendCstring(), copy(), delWord(), ensureCapacity(), getBLength(), insert(), mydelete(), overlay(), replaceAt(), RexxMutableBuffer(), setBLength(), setBufferLength(), setDataLength(), and space().
|
protected |
Definition at line 147 of file MutableBufferClass.hpp.
Referenced by copy(), RexxMutableBuffer(), and setBufferLength().