Package-level declarations
Functions
Builds an immutable String using an initially empty StringBuilder.
Builds an immutable String with a builder sized for the expected content.
Returns whether this string contains char.
Returns whether this character sequence is empty or contains only whitespace.
Returns whether this character sequence contains no characters.
Returns whether this character sequence contains a non-whitespace character.
Returns whether this character sequence contains at least one character.
Returns whether this UTF-16 character is Kotlin whitespace.
Visits UTF-16 code units in order. Stored iterators are supported and own their position.
Finds the last matching character.
Finds the last matching substring, starting at the last character.
Searches backwards from startIndex for char.
Searches backwards from startIndex for string, comparing UTF-16 code units.
Splits on CRLF, LF or CR, retaining empty lines including the final line.
Removes prefix when present, otherwise returns this string.
Removes suffix when present, otherwise returns this string.
Splits on delimiter, retaining empty parts. Zero limit means no limit; positive limit keeps the remaining suffix.
Splits on delimiter, retaining empty parts. An empty delimiter separates UTF-16 code units, including empty ends.
Creates a mutable builder containing a copy of content.
Materializes the selected UTF-16 range as an immutable String.
Returns the part after the first delimiter, or this string if absent.
Returns the part after the first delimiter, or missingDelimiterValue if absent.
Returns the part after the last delimiter, or this string if absent.
Returns the part after the last delimiter, or missingDelimiterValue if absent.
Returns the part before the first delimiter, or this string if absent.
Returns the part before the first delimiter, or missingDelimiterValue if absent.
Returns the part before the last delimiter, or this string if absent.
Returns the part before the last delimiter, or missingDelimiterValue if absent.
Counts and indexes refer to UTF-16 code units, including individual surrogate halves.
Removes leading and trailing whitespace.