String Class

The String class contains methods used to manipulate data defined as String data type.

Methods

Description

addQuotes

Returns the string with one layer of quotes added.

ascii

Returns the (extended) ASCII code of a character.

beginsWith

Returns whether the string starts with a specified substring.

blank

Deprecated. Use String.justify.

byteLimitSubstring

Returns a character string with a byte length that will not exceed the specified maximum.

complexUnpack

Returns a string containing the unpacked results.

endsWith

Returns whether the string ends with a specified substring.

extract

Returns a substring from a given string.

find

Returns the position of a substring.

getSub

Returns a subfield of a field within a string.

insert

Returns a string in which a substring is inserted.

isInteger

Indicates whether the value of the data stored in a String object is an integer.

isLike

Returns whether the string satisfies a pattern.

isLiteral

Returns whether the string represents a numeric literal or string literal.

isNumber

Returns whether the string contains a number.

justify

Returns a justified version of the string.

length

Returns the length in characters or delimited pieces.

lowerCase

Returns the string converted to lowercase.

piece

Extracts an element from a delimited string.

putSub

Returns a version of the string in which a subfield of a field has been inserted or replaced.

replace

Returns a version of the string in which substrings are replaced.

reverse

Returns the characters of the string in reverse order.

stripQuotes

Returns the string with one layer of quotes removed.

toByteString

Translates the string to a ByteString.

toDate

Translates the string to a Date.

toNumber

Translates the string to a canonic Number.

toRow

Returns the string as a Row.

toTime

Translates the string into a Time.

translate

Returns character-by-character translation of the string.

trim

Removes characters from the ends of a string.

unpack

Returns a string containing the unpacked results.

upperCase

Returns the string converted to uppercase.