Product SiteDocumentation Site

5.4.15. The MutableBuffer Class

The MutableBuffer class is a buffer on which certain string operations such as concatenation can be performed very efficiently. Unlike String objects, MutableBuffers can be altered without requiring a new object allocation. A MutableBuffer object can provide better performance for algorithms that involve frequent concatenations to build up longer string objects because it creates fewer intermediate objects.

Table 5.42. ooRexx MutableBuffer Class

Object
MutableBuffer
new
append
caselessChangeStr
caselessCountStr
caselessLastPos
caselessMatch
caselessMatchChar
caselessPos
caselessWordPos
changeStr
countStr
delete
delStr
delWord
getBufferSize
insert
lastPos
length
lower
makeArray
match
matchChar
overlay
pos
replaceAt
setBufferSize
space
string
subChar
subStr
subWord
subWords
translate
upper
verify
word
wordIndex
wordLength
wordPos
words

Note

The MutableBuffer class also has available class methods that its metaclass, the Class class (Section 5.1.2, “The Class Class”), defines.

5.4.15.1. Inherited Methods

Methods inherited from the Object class (Section 5.1.1, “The Object Class”).
new (Class Method)initsend
= \= == \== <> ><instanceMethodsendWith
|| '' (abuttal)' ' (blank)instanceMethodssetMethod
(Operator Methods)isAstart
classisInstanceOfstartWith
copyobjectNamestring
defaultNameobjectName=unsetMethod
hasMethodrequest 
identityHashrun