Skip to main content

StringOperations

Complete API reference for StringOperations, including constructors, attributes, virtual attributes, and methods.

Package: JAVARuntime

Category: String

Component: no


public class StringOperations

Static Methods

SignatureReturnsDescription
div(String, String)String[]Splits the string 'a' by the delimiter 'b' and returns an array of substrings.
div(String, int)String[]Splits the string 'a' into substrings of length 'b' and returns an array of substrings.
sub(String, String)StringRemoves all occurrences of the substring 'b' from the string 'a'.
sub(String, int)StringRemoves the last 'b' characters from the string 'a'.
mul(String, int)StringRepeats the string 'a' 'b' times and returns the resulting string.
modulus(String, int)StringReturns the substring of 'a' starting from the index 'b'.
equals(String, String)booleanChecks if the string 'a' is equal to the string 'b'.
equals(String, char)booleanChecks if the string 'a' is equal to the character 'b'.
equals(String, int)booleanChecks if the string 'a' is equal to the integer 'b' after parsing.
equals(String, float)booleanChecks if the string 'a' is equal to the float 'b' after parsing.
equals(String, long)booleanChecks if the string 'a' is equal to the long 'b' after parsing.
equals(String, double)booleanChecks if the string 'a' is equal to the double 'b' after parsing.
equals(String, boolean)booleanChecks if the string 'a' is equal to the boolean 'b' after conversion.
notEquals(String, String)booleanChecks if the string 'a' is not equal to the string 'b'.
notEquals(String, char)booleanChecks if the string 'a' is not equal to the character 'b'.
notEquals(String, int)booleanChecks if the string 'a' is not equal to the integer 'b' after conversion.
notEquals(String, float)booleanChecks if the string 'a' is not equal to the float 'b' after conversion.
notEquals(String, boolean)booleanChecks if the string 'a' is not equal to the boolean 'b' after conversion.
higherThan(String, String)booleanChecks if the length of string 'a' is greater than the length of string 'b'.
higherEqualThan(String, String)booleanChecks if the length of string 'a' is greater than or equal to the length of string 'b'.
higherThan(String, int)booleanChecks if the length of string 'a' is greater than the integer 'b'.
higherEqualThan(String, int)booleanChecks if the length of string 'a' is greater than or equal to the integer 'b'.
lessThan(String, String)booleanChecks if the length of string 'a' is less than the length of string 'b'.
lessEqualThan(String, String)booleanChecks if the length of string 'a' is less than or equal to the length of string 'b'.
lessThan(String, int)booleanChecks if the length of string 'a' is less than the integer 'b'.
lessEqualThan(String, int)booleanChecks if the length of string 'a' is less than or equal to the integer 'b'.
toUpper(String)StringConverts the string 'a' to uppercase.
toLower(String)StringConverts the string 'a' to lowercase.
invert(String)StringReverses the string 'a'.