| public native |
capitalize |
Capitalizes the string in place (first character only). |
| public |
center |
Centers this string in place to the target width. |
| public native |
contains |
Returns true if this string contains the provided substring. |
| public |
count |
Counts non-overlapping occurrences of a substring. |
| public native |
endsWith |
Returns true if this string ends with the provided suffix. |
| public |
equalsIgnoreCase |
Compares two strings without case sensitivity. |
| public |
indexOf |
Finds the first index of a substring starting from a position. |
| public |
isAlnum |
Returns true if all characters are alphanumeric. |
| public |
isAlpha |
Returns true if all characters are alphabetic. |
| public |
isBlank |
Returns true if the string is empty or only contains spaces. |
| public |
isDigit |
Returns true if all characters are digits. |
| public |
isLower |
Returns true if all cased characters are lowercase and at least one cased character exists. |
| public |
isSpace |
Returns true if all characters are whitespace. |
| public |
isUpper |
Returns true if all cased characters are uppercase and at least one cased character exists. |
| public |
join |
Joins a list of strings using this string as separator. |
| public |
lastIndexOf |
Finds the last index of a substring up to a position. |
| public |
lower |
Converts the string to lowercase in place. |
| public |
lpad |
Left pads this string in place to the target width. |
| public |
ltrim |
Removes leading whitespace in place. |
| public |
matches |
Tests the string against a regular expression. |
| public |
removeAccents |
Removes accents in place. |
| public native |
removeSGR |
Returns the string with ANSI SGR escape sequences removed. |
| public |
replace |
Replaces all occurrences of oldValue by newValue in place. |
| public |
replaceFirst |
Replaces the first occurrence of oldValue by newValue in place. |
| public |
replaceLast |
Replaces the last occurrence of oldValue by newValue in place. |
| public |
rpad |
Right pads this string in place to the target width. |
| public |
rtrim |
Removes trailing whitespace in place. |
| public |
split |
Splits the string using a string delimiter. |
| public native |
startsWith |
Returns true if this string starts with the provided prefix. |
| public |
substring |
Extracts a substring. |
| public |
title |
Capitalizes each word in place. |
| public native |
toCapitalize |
Returns a new string with the first character capitalized. |
| public |
toLower |
Returns the string in lowercase. |
| public |
toRemoveAccents |
Returns a new string without accents. |
| public override |
toString |
Returns this string (identity conversion). |
| public |
toTitle |
Returns a title-cased copy of this string. |
| public |
toTrim |
Returns the string with leading and trailing whitespace removed. |
| public |
toUpper |
Returns the string in uppercase. |
| public |
trim |
Removes leading and trailing whitespace in place. |
| public |
upper |
Converts the string to uppercase in place. |