base.StringBuffer methods

Table 1. Class methods
Name Description
base.StringBuffer.create()
  RETURNING result base.StringBuffer
Create a string buffer object.
Table 2. Object methods
Name Description
append(
   part STRING )
Append a string at the end of the current string.
clear()
Clear the string buffer.
equals(
   reference STRING )
  RETURNING result BOOLEAN
Compare strings (case sensitive).
equalsIgnoreCase(
   reference STRING )
  RETURNING result BOOLEAN
Compare strings (case insensitive)
getCharAt(
   position INTEGER )
  RETURNING result STRING
Return the character at a specified position.
getIndexOf(
   substr STRING,
   start INTEGER )
  RETURNING result INTEGER
Return the position of a substring.
getLength()
  RETURNING result INTEGER
Return the length of a string.
insertAt(
   part STRING,
   pos INTEGER )
Insert a string at a given position.
replace(
   old STRING,
   new STRING,
   occ INTEGER )
Replace one string with another.
replaceAt(
   start INTEGER,
   length INTEGER,
   new STRING )
Replace part of a string with another string.
subString(
   start INTEGER,
   end INTEGER )
  RETURNING result STRING
Return the substring at the specified position.
toLowerCase()
Converts the string in the buffer to lower case.
toUpperCase()
Converts the string in the buffer to upper case.
toString()
  RETURNING result STRING
Create a STRING from the string buffer.
trim()
Remove leading and trailing blanks.
trimLeft()
Removes leading blanks.
trimRight()
Removes trailing blanks.