| public native static |
_slice |
Internal helper used by the compiler to implement slice syntax. |
| public |
center |
Centers this string to the target width. |
| public |
count |
Counts occurrences of a Unicode scalar in one forward traversal. |
| public |
count |
Counts non-overlapping occurrences of a text fragment. |
| public |
endsWith |
Tests whether the last Unicode scalar equals the given character. |
| public |
endsWith |
Returns true if this string ends with the provided value. |
| public |
endsWith |
Returns true if this string ends with at least one suffix from the provided list. |
| public native |
endsWith |
Returns true if this string ends with the provided suffix. |
| public |
equalsIgnoreCase |
Compares two strings without case sensitivity. |
| public static |
fromCodePoint |
Builds a string from one Unicode scalar value. |
| public static |
fromCodePoint |
Builds an immutable string containing an unsigned Unicode scalar value. |
| public native override |
hash |
Returns a content-based hash compatible with String equality. |
| public |
indexOf |
Finds the first occurrence of a Unicode character. |
| public native |
indexOf |
Finds the first index of a text fragment starting from a position. |
| public |
isAlnum |
Returns true if all characters are Unicode letters or digits. |
| public |
isAlpha |
Returns true if all characters are Unicode alphabetic characters. |
| public |
isBlank |
Returns true if the string is empty or only contains spaces. |
| public |
isDigit |
Returns true if all characters are Unicode 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 an array of Unicode scalar values using this string as separator. |
| public |
join |
Joins an array of UTF-16 code units using this string as separator. |
| public |
join |
Joins an array of strings using this string as separator. |
| public |
join |
Joins a list of strings using this string as separator. |
| public |
lastIndexOf |
Finds the last occurrence of a Unicode character. |
| public native |
lastIndexOf |
Finds the last index of a text fragment up to a position. |
| public |
lines |
Splits this string into lines without keeping line terminators. |
| public |
lpad |
Left pads this string to the target width. |
| public |
matches |
Tests the string against a regular expression. |
| public native |
removeSGR |
Returns the string with ANSI SGR escape sequences removed. |
| public native |
replace |
Returns a copy where all occurrences of oldValue are replaced by newValue. |
| public |
replace |
Replaces every non-overlapping text occurrence with one scalar. |
| public |
replace |
Replaces every occurrence of one Unicode scalar with another. |
| public |
replace |
Replaces every occurrence of a Unicode scalar with immutable text. |
| public native |
replaceFirst |
Returns a copy where the first occurrence of oldValue is replaced by newValue. |
| public |
replaceFirst |
Replaces the first text occurrence with one scalar. |
| public |
replaceFirst |
Replaces the first occurrence of one Unicode scalar with another. |
| public |
replaceFirst |
Replaces the first occurrence of a Unicode scalar with text. |
| public native |
replaceLast |
Returns a copy where the last occurrence of oldValue is replaced by newValue. |
| public |
replaceLast |
Replaces the last text occurrence with one scalar. |
| public |
replaceLast |
Replaces the last occurrence of one Unicode scalar with another. |
| public |
replaceLast |
Replaces the last occurrence of a Unicode scalar with text. |
| public |
rpad |
Right pads this string to the target width. |
| public native |
split |
Splits the string using a string delimiter. |
| public |
split |
Splits text at a Unicode scalar using the same rules as split(String). |
| public native |
startsWith |
Returns true if this string starts with the provided prefix. |
| public |
startsWith |
Tests whether the first Unicode scalar equals the given character. |
| public |
startsWith |
Returns true if this string starts with the provided value. |
| public |
startsWith |
Returns true if this string starts with at least one prefix from the provided list. |
| public native |
toCapitalize |
Returns a new string with the first character capitalized. |
| public |
toCharArray |
Copies this text into an array of Unicode scalar values. |
| public native |
toCodeUnitArray |
Encodes this text as UTF-16 code units. |
| public native |
toLower |
Returns the string in lowercase. |
| public native |
toRemoveAccents |
Returns a new string without accents. |
| public override |
toString |
Returns this string (identity conversion). |
| public native |
toTitle |
Returns a title-cased copy of this string. |
| public |
toTrim |
Returns the string with leading and trailing whitespace removed. |
| public native |
toUpper |
Returns the string in uppercase. |