base.StringBuffer methods

Table 1. Class methods
Name Description
base.StringBuffer.create()
  RETURNS base.StringBuffer
Create a string buffer object.
Table 2. Object methods
Name Description
append(
   str STRING )
Append a string at the end of the current string.
clear()
Clear the string buffer.
equals(
   str STRING )
  RETURNS BOOLEAN
Compare strings (case sensitive).
equalsIgnoreCase(
   str STRING )
  RETURNS BOOLEAN
Compare strings (case insensitive)
getCharAt(
   index INTEGER )
  RETURNS STRING
Return the character at a specified position.
getIndexOf(
   part STRING,
   start INTEGER )
  RETURNS INTEGER
Return the position of a substring.
getLength()
  RETURNS INTEGER
Return the length of a string.
insertAt(
   index INTEGER,
   str STRING )
Insert a string at a given position.
replace(
   oldStr STRING,
   newStr STRING,
   occurrences INTEGER )
Replace one string with another.
replaceAt(
   index INTEGER,
   length INTEGER,
   str STRING )
Replace part of a string with another string.
subString(
   startIndex INTEGER,
   endIndex INTEGER )
  RETURNS 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()
  RETURNS STRING
Create a STRING from the string buffer.
trim()
Remove leading and trailing blanc characters.
trimLeft()
Removes leading blanc characters.
trimRight()
Removes trailing blanc characters.