Top > Lycia reference > Querix 4GL > Classes and Methods > base classes and methods > base.StringBuffer class
These methods are used to manipulate the character strings.
base.StringBuffer methods allow working directly with the internal string buffer (without creating new buffers for long character strings). That means that manipulating base.StringBuffer objects will take you less time than working with STRING data type (which need a new buffer for a long string of characters).
base.StringBuffer methods are based on the byte-lengh semantics.
base.Stringbuffer methods are invoked in the following way::
CALL base.StringBuffer.<Method>(<parameters>)
creates a base.StringBuffer object |
|
appends the string to the current string |
|
clears the string buffer |
|
converts the string buffer into the STRING value |
|
compares strings to the strings values (sensitive case) |
|
base.StringBuffer.equalsIgnoreCase() |
compares strings to the strings values (insensitive case - compare to base.StringBuffer.equals()) |
returns the character at the specified position |
|
returns the integer number, that identifies the substring position |
|
returns the length of the string |
|
retrieves a substring from the string buffer |
|
converts the string in the buffer to the lower case |
|
converts the string to the upper case |
|
removes leading and trailing spaces |
|
base.StringBuffer.trimLeft() |
removes only the leading spaces from the string buffer value and leaves the trailing spaces intact |
base.StringBuffer.trimRight() |
removes only the trailing spaces from the string buffer value and leaves the leading spaces intact |
replaces one string with another string |
|
replaces a part of the string with another string |
|
inserts a string at the given position |