Package-level declarations
Functions for working with text and regular expressions.
Functions for working with text and regular expressions.
Functions for working with text and regular expressions.
Functions for working with text and regular expressions.
Functions for working with text and regular expressions.
Types
An object to which char sequences and values can be appended.
An object to which char sequences and values can be appended.
An object to which char sequences and values can be appended.
The exception thrown when a character encoding or decoding error occurs.
The exception thrown when a character encoding or decoding error occurs.
The exception thrown when a character encoding or decoding error occurs.
The exception thrown when a character encoding or decoding error occurs.
Represents the character general category in the Unicode specification.
Represents the character general category in the Unicode specification.
Represents the Unicode directionality of a character. Character directionality is used to calculate the visual ordering of text.
Represents the results from a single capturing group within a MatchResult of Regex.
Represents the results from a single capturing group within a MatchResult of Regex.
Represents the results from a single capturing group within a MatchResult of Regex.
Represents a collection of captured groups in a single match of a regular expression.
Extends MatchGroupCollection by introducing a way to get matched groups by name, when regex supports it.
Represents a compiled regular expression. Provides functions to match strings in text with a pattern, replace the found occurrences and split text around matches.
Represents a compiled regular expression. Provides functions to match strings in text with a pattern, replace the found occurrences and split text around matches.
Represents a compiled regular expression. Provides functions to match strings in text with a pattern, replace the found occurrences and split text around matches.
Provides enumeration values to use to set regular expression options.
Provides enumeration values to use to set regular expression options.
Provides enumeration values to use to set regular expression options.
A mutable sequence of characters.
A mutable sequence of characters.
A mutable sequence of characters.
Properties
A Comparator that orders strings ignoring character case.
A Comparator that orders strings ignoring character case.
Returns the Unicode general category of this character.
Returns the Unicode general category of this character.
Returns the Unicode general category of this character.
Returns the Unicode general category of this character.
Returns the Unicode directionality property for the given character.
Returns the range of valid character indices for this char sequence.
Returns the index of the last character in the char sequence or -1 if it is empty.
Functions
Returns true
if char sequence has at least one character.
Returns true
if at least one character matches the given predicate.
Appends all arguments to the given Appendable.
Appends all arguments to the given StringBuilder.
Appends a line feed character (\n
) to this Appendable.
Appends a line feed character (\n
) to this StringBuilder.
Appends value to the given Appendable and a line feed character (\n
) after it.
Appends value to this StringBuilder, followed by a line feed character (\n
).
Appends value to this StringBuilder, followed by a line feed character (\n
).
Appends value to this StringBuilder, followed by a line feed character (\n
).
Appends a line separator to this Appendable.
Appends a line separator to this StringBuilder.
Appends value to the given Appendable and line separator after it.
Appends value to this StringBuilder, followed by a line separator.
Appends a subsequence of the specified character sequence value to this Appendable and returns this instance.
Appends characters in a subarray of the specified character array value to this string builder and returns this instance.
Appends a subsequence of the specified character sequence value to this string builder and returns this instance.
Appends characters in a subarray of the specified character array value to this string builder and returns this instance.
Appends a subsequence of the specified character sequence value to this string builder and returns this instance.
Appends characters in a subarray of the specified character array value to this string builder and returns this instance.
Appends a subsequence of the specified character sequence value to this string builder and returns this instance.
Appends characters in a subarray of the specified character array value to this string builder and returns this instance.
Appends a subsequence of the specified character sequence value to this string builder and returns this instance.
Creates an Iterable instance that wraps the original char sequence returning its characters when being iterated.
Creates a Sequence instance that wraps the original char sequence returning its characters when being iterated.
Returns a Map containing the characters from the given char sequence indexed by the key returned from keySelector function applied to each character.
Returns a Map containing the values provided by valueTransform and indexed by keySelector functions applied to characters of the given char sequence.
Populates and returns the destination mutable map with key-value pairs, where key is provided by the keySelector function applied to each character of the given char sequence and value is the character itself.
Populates and returns the destination mutable map with key-value pairs, where key is provided by the keySelector function and and value is provided by the valueTransform function applied to characters of the given char sequence.
Populates and returns the destination mutable map with key-value pairs provided by transform function applied to each character of the given char sequence.
Returns a Map where keys are characters from the given char sequence and values are produced by the valueSelector function applied to each character.
Populates and returns the destination mutable map with key-value pairs for each character of the given char sequence, where key is the character itself and value is provided by the valueSelector function applied to that key.
Builds new string by populating newly created StringBuilder using provided builderAction and then converting it to String.
Builds new string by populating newly created StringBuilder initialized with the given capacity using provided builderAction and then converting it to String.
Returns a copy of this string having its first letter titlecased using the rules of the default locale, or the original string if it's empty or already starts with a title case letter.
Returns a copy of this string having its first letter titlecased using the rules of the default locale, or the original string if it's empty or already starts with a title case letter.
Returns a copy of this string having its first letter titlecased using the rules of the default locale, or the original string if it's empty or already starts with a title case letter.
Returns a copy of this string having its first letter titlecased using the rules of the specified locale, or the original string if it's empty or already starts with a title case letter.
Returns a copy of this string having its first letter titlecased using the rules of the default locale, or the original string if it's empty or already starts with a title case letter.
Returns a named charset with the given charsetName name.
Clears the content of this string builder making it empty and returns this instance.
Clears the content of this string builder making it empty and returns this instance.
Clears the content of this string builder making it empty and returns this instance.
Clears the content of this string builder making it empty and returns this instance.
Returns the character (Unicode code point) at the specified index.
Returns the character (Unicode code point) before the specified index.
Returns the number of Unicode code points in the specified text range of this String.
Compares two strings lexicographically, optionally ignoring case differences.
Compares two strings lexicographically, optionally ignoring case differences.
Compares two strings lexicographically, optionally ignoring case differences.
Concatenates characters in this CharArray into a String.
Concatenates characters in this CharArray or its subrange into a String.
Concatenates characters in this CharArray into a String.
Concatenates characters in this CharArray or its subrange into a String.
Concatenates characters in this CharArray into a String.
Concatenates characters in this CharArray or its subrange into a String.
Returns true
if this char sequence contains at least one match of the specified regular expression regex.
Returns true
if this char sequence contains the specified character char.
Returns true
if this char sequence contains the specified other sequence of characters as a substring.
Returns true
if the contents of this char sequence are equal to the contents of the specified other, i.e. both char sequences contain the same number of the same characters in the same order.
Returns true
if the contents of this char sequence are equal to the contents of the specified other, optionally ignoring case difference.
Returns true
if the contents of this char sequence are equal to the contents of the specified other, i.e. both char sequences contain the same number of the same characters in the same order.
Returns true
if the contents of this char sequence are equal to the contents of the specified other, optionally ignoring case difference.
Returns true
if the contents of this char sequence are equal to the contents of the specified other, i.e. both char sequences contain the same number of the same characters in the same order.
Returns true
if this string is equal to the contents of the specified StringBuffer, false
otherwise.
Returns true
if this string is equal to the contents of the specified CharSequence, false
otherwise.
Returns true
if the contents of this char sequence are equal to the contents of the specified other, optionally ignoring case difference.
Returns true
if the contents of this char sequence are equal to the contents of the specified other, i.e. both char sequences contain the same number of the same characters in the same order.
Returns true
if the contents of this char sequence are equal to the contents of the specified other, optionally ignoring case difference.
Returns the length of this char sequence.
Returns the number of characters matching the given predicate.
Returns a copy of this string having its first letter lowercased using the rules of the default locale, or the original string if it's empty or already starts with a lower case letter.
Returns a copy of this string having its first letter lowercased using the rules of the default locale, or the original string if it's empty or already starts with a lower case letter.
Returns a copy of this string having its first letter lowercased using the rules of the default locale, or the original string if it's empty or already starts with a lower case letter.
Returns a copy of this string having its first letter lowercased using the rules of the specified locale, or the original string, if it's empty or already starts with a lower case letter.
Returns a copy of this string having its first letter lowercased using the rules of the default locale, or the original string if it's empty or already starts with a lower case letter.
Decodes a string from the bytes in UTF-8 encoding in this array.
Decodes a string from the bytes in UTF-8 encoding in this array or its subrange.
Decodes a string from the bytes in UTF-8 encoding in this array.
Decodes a string from the bytes in UTF-8 encoding in this array or its subrange.
Decodes a string from the bytes in UTF-8 encoding in this array.
Decodes a string from the bytes in UTF-8 encoding in this array or its subrange.
Decodes a string from the bytes in UTF-8 encoding in this array.
Decodes a string from the bytes in UTF-8 encoding in this array or its subrange.
Removes the character at the specified index from this string builder and returns this instance.
Removes the character at the specified index from this string builder and returns this instance.
Removes the character at the specified index from this string builder and returns this instance.
Removes the character at the specified index from this string builder and returns this instance.
Removes the character at the specified index from this string builder and returns this instance.
Removes characters in the specified range from this string builder and returns this instance.
Removes characters in the specified range from this string builder and returns this instance.
Removes characters in the specified range from this string builder and returns this instance.
Removes characters in the specified range from this string builder and returns this instance.
Returns the Char that represents this decimal digit. Throws an exception if this value is not in the range 0..9
.
Returns the Char that represents this numeric digit value in the specified radix. Throws an exception if the radix is not in the range 2..36
or if this value is not in the range 0 until radix
.
Returns the numeric value of the decimal digit that this Char represents. Throws an exception if this Char is not a valid decimal digit.
Returns the numeric value of the digit that this Char represents in the specified radix. Throws an exception if the radix is not in the range 2..36
or if this Char is not a valid digit in the specified radix.
Returns the numeric value of the decimal digit that this Char represents, or null
if this Char is not a valid decimal digit.
Returns the numeric value of the digit that this Char represents in the specified radix, or null
if this Char is not a valid digit in the specified radix. Throws an exception if the radix is not in the range 2..36
.
Returns a character at the given index or throws an IndexOutOfBoundsException if the index is out of bounds of this char sequence.
Returns a character at the given index or throws an IndexOutOfBoundsException if the index is out of bounds of this char sequence.
Returns a character at the given index or throws an IndexOutOfBoundsException if the index is out of bounds of this char sequence.
Returns a character at the given index or throws an IndexOutOfBoundsException if the index is out of bounds of this char sequence.
Returns a character at the given index or the result of calling the defaultValue function if the index is out of bounds of this char sequence.
Encodes this string to an array of bytes in UTF-8 encoding.
Encodes this string or its substring to an array of bytes in UTF-8 encoding.
Encodes this string to an array of bytes in UTF-8 encoding.
Encodes this string or its substring to an array of bytes in UTF-8 encoding.
Encodes this string to an array of bytes in UTF-8 encoding.
Encodes this string or its substring to an array of bytes in UTF-8 encoding.
Encodes this string to an array of bytes in UTF-8 encoding.
Encodes this string or its substring to an array of bytes in UTF-8 encoding.
Returns true
if this char sequence ends with the specified character.
Returns true
if this char sequence ends with the specified suffix.
Returns true
if this string ends with the specified suffix.
Returns true
if this string ends with the specified suffix.
Returns true
if this character is equal to the other character, optionally ignoring character case.
Returns true
if this string is equal to other, optionally ignoring character case.
Returns true
if this string is equal to other, optionally ignoring character case.
Returns true
if this string is equal to other, optionally ignoring character case.
Appends all characters matching the given predicate to the given destination.
Appends all characters not matching the given predicate to the given destination.
Appends all characters matching the given predicate to the given destination.
Finds the first occurrence of any of the specified strings in this char sequence, starting from the specified startIndex and optionally ignoring the case.
Finds the last occurrence of any of the specified strings in this char sequence, starting from the specified startIndex and optionally ignoring the case.
Returns first character.
Returns the first character matching the given predicate.
Returns the first non-null value produced by transform function being applied to characters of this char sequence in iteration order, or throws NoSuchElementException if no non-null value was produced.
Returns the first non-null value produced by transform function being applied to characters of this char sequence in iteration order, or null
if no non-null value was produced.
Returns the first character, or null
if the char sequence is empty.
Returns the first character matching the given predicate, or null
if character was not found.
Returns a single list of all elements yielded from results of transform function being invoked on each character and its index in the original char sequence.
Appends all elements yielded from results of transform function being invoked on each character and its index in the original char sequence, to the given destination.
Appends all elements yielded from results of transform function being invoked on each character of original char sequence, to the given destination.
Accumulates value starting with initial value and applying operation from right to left to each character with its index in the original char sequence and current accumulator value.
Performs the given action on each character, providing sequential index with the character.
Uses this string as a format string and returns a string obtained by substituting the specified arguments, using the default locale.
Uses this string as a format string and returns a string obtained by substituting the specified arguments, using the specified locale.
Uses this string as a format string and returns a string obtained by substituting the specified arguments, using the specified locale. If locale is null
then no localization is applied.
Uses the provided format as a format string and returns a string obtained by substituting the specified arguments, using the default locale.
Uses the provided format as a format string and returns a string obtained by substituting the specified arguments, using the specified locale.
Uses the provided format as a format string and returns a string obtained by substituting the specified arguments, using the specified locale. If locale is null
then no localization is applied.
Returns a named group with the specified name.
Returns a character at the given index or the result of calling the defaultValue function if the index is out of bounds of this char sequence.
Groups characters of the original char sequence by the key returned by the given keySelector function applied to each character and returns a map where each group key is associated with a list of corresponding characters.
Groups values returned by the valueTransform function applied to each character of the original char sequence by the key returned by the given keySelector function applied to the character and returns a map where each group key is associated with a list of corresponding values.
Groups characters of the original char sequence by the key returned by the given keySelector function applied to each character and puts to the destination map each group key associated with a list of corresponding characters.
Groups values returned by the valueTransform function applied to each character of the original char sequence by the key returned by the given keySelector function applied to the character and puts to the destination map each group key associated with a list of corresponding values.
Creates a Grouping source from a char sequence to be used later with one of group-and-fold operations using the specified keySelector function to extract a key from each character.
Returns true
if this CharSequence has Unicode surrogate pair at the specified index.
Returns this char sequence if it is not empty and doesn't consist solely of whitespace characters, or the result of calling defaultValue function otherwise.
Returns this char sequence if it's not empty or the result of calling defaultValue function if the char sequence is empty.
Returns the index within this string of the first occurrence of the specified character, starting from the specified startIndex.
Returns the index within this char sequence of the first occurrence of the specified string, starting from the specified startIndex.
Finds the index of the first occurrence of any of the specified chars in this char sequence, starting from the specified startIndex and optionally ignoring the case.
Finds the index of the first occurrence of any of the specified strings in this char sequence, starting from the specified startIndex and optionally ignoring the case.
Returns index of the first character matching the given predicate, or -1 if the char sequence does not contain such character.
Returns index of the last character matching the given predicate, or -1 if the char sequence does not contain such character.
Inserts characters in a subsequence of the specified character sequence csq into this string builder at the specified index and returns this instance.
Inserts characters in a subarray of the specified character array value into this string builder at the specified index and returns this instance.
Inserts characters in a subsequence of the specified character sequence value into this string builder at the specified index and returns this instance.
Inserts characters in a subarray of the specified character array value into this string builder at the specified index and returns this instance.
Inserts characters in a subsequence of the specified character sequence value into this string builder at the specified index and returns this instance.
Inserts characters in a subarray of the specified character array value into this string builder at the specified index and returns this instance.
Inserts characters in a subsequence of the specified character sequence value into this string builder at the specified index and returns this instance.
Inserts characters in a subarray of the specified character array value into this string builder at the specified index and returns this instance.
Inserts characters in a subsequence of the specified character sequence value into this string builder at the specified index and returns this instance.
Returns true
if this string is empty or consists solely of whitespace characters.
Returns true
if this string is empty or consists solely of whitespace characters.
Returns true
if this string is empty or consists solely of whitespace characters.
Returns true
if this character (Unicode code point) is defined in Unicode.
Returns true
if this character (Unicode code point) is defined in Unicode.
Returns true
if this character (Unicode code point) is defined in Unicode.
Returns true
if this char sequence is empty (contains no characters).
Returns true
if this character is a Unicode high-surrogate code unit (also known as leading-surrogate code unit).
Returns true
if this character is a Unicode high-surrogate code unit (also known as leading-surrogate code unit).
Returns true
if this character is a Unicode high-surrogate code unit (also known as leading-surrogate code unit).
Returns true
if this character (Unicode code point) should be regarded as an ignorable character in a Java identifier or a Unicode identifier.
Returns true
if this character (Unicode code point) should be regarded as an ignorable character in a Java identifier or a Unicode identifier.
Returns true
if this character is an ISO control character.
Returns true
if this character is an ISO control character.
Returns true
if this character is an ISO control character.
Returns true
if this character is an ISO control character.
Returns true
if this character (Unicode code point) may be part of a Java identifier as other than the first character.
Returns true
if this character is permissible as the first character in a Java identifier.
Returns true
if this character is a letter.
Returns true
if this character is a letter or digit.
Returns true
if this character is a letter or digit.
Returns true
if this character is a letter or digit.
Returns true
if this character is a letter or digit.
Returns true
if this character is lower case.
Returns true
if this character is a Unicode low-surrogate code unit (also known as trailing-surrogate code unit).
Returns true
if this character is a Unicode low-surrogate code unit (also known as trailing-surrogate code unit).
Returns true
if this character is a Unicode low-surrogate code unit (also known as trailing-surrogate code unit).
Returns true
if this char sequence is not empty and contains some characters except of whitespace characters.
Returns true
if this char sequence is not empty.
Returns true
if this nullable char sequence is either null
or empty or consists solely of whitespace characters.
Returns true
if this nullable char sequence is either null
or empty.
Checks if the codepoint specified is a supplementary codepoint or not.
Returns true
if this character is a Unicode surrogate code unit.
Returns true
if this character is a title case letter.
Returns true
if this character is a title case letter.
Returns true
if this character is a title case letter.
Returns true
if this character is a title case letter.
Returns true
if this character is upper case.
Determines whether a character is whitespace according to the Unicode standard. Returns true
if the character is whitespace.
Determines whether a character is whitespace according to the Unicode standard. Returns true
if the character is whitespace.
Determines whether a character is whitespace according to the Unicode standard. Returns true
if the character is whitespace.
Determines whether a character is whitespace according to the Unicode standard. Returns true
if the character is whitespace.
Iterator for characters of the given char sequence.
Returns the last character.
Returns the last character matching the given predicate.
Returns the index within this char sequence of the last occurrence of the specified character, starting from the specified startIndex.
Returns the index within this char sequence of the last occurrence of the specified string, starting from the specified startIndex.
Finds the index of the last occurrence of any of the specified chars in this char sequence, starting from the specified startIndex and optionally ignoring the case.
Finds the index of the last occurrence of any of the specified strings in this char sequence, starting from the specified startIndex and optionally ignoring the case.
Returns the last character, or null
if the char sequence is empty.
Returns the last character matching the given predicate, or null
if no such character was found.
Splits this char sequence to a list of lines delimited by any of the following character sequences: CRLF, LF or CR.
Splits this char sequence to a sequence of lines delimited by any of the following character sequences: CRLF, LF or CR.
Converts this character to lower case using Unicode mapping rules of the invariant locale.
Returns a copy of this string converted to lower case using Unicode mapping rules of the invariant locale.
Converts this character to lower case using Unicode mapping rules of the invariant locale.
Returns a copy of this string converted to lower case using Unicode mapping rules of the invariant locale.
Converts this character to lower case using Unicode mapping rules of the invariant locale.
Returns a copy of this string converted to lower case using Unicode mapping rules of the invariant locale.
Converts this character to lower case using Unicode mapping rules of the specified locale.
Returns a copy of this string converted to lower case using the rules of the specified locale.
Converts this character to lower case using Unicode mapping rules of the invariant locale.
Returns a copy of this string converted to lower case using Unicode mapping rules of the invariant locale.
Converts this character to lower case using Unicode mapping rules of the invariant locale.
Converts this character to lower case using Unicode mapping rules of the invariant locale.
Converts this character to lower case using Unicode mapping rules of the invariant locale.
Converts this character to lower case using Unicode mapping rules of the invariant locale.
Returns a list containing the results of applying the given transform function to each character and its index in the original char sequence.
Returns a list containing only the non-null results of applying the given transform function to each character and its index in the original char sequence.
Applies the given transform function to each character and its index in the original char sequence and appends only the non-null results to the given destination.
Applies the given transform function to each character and its index in the original char sequence and appends the results to the given destination.
Returns a list containing only the non-null results of applying the given transform function to each character in the original char sequence.
Applies the given transform function to each character in the original char sequence and appends only the non-null results to the given destination.
Applies the given transform function to each character of the original char sequence and appends the results to the given destination.
Returns the first character yielding the largest value of the given function or null
if there are no characters.
Returns the largest value among all values produced by selector function applied to each character in the char sequence.
Returns the largest value among all values produced by selector function applied to each character in the char sequence or null
if there are no characters.
Returns the largest value according to the provided comparator among all values produced by selector function applied to each character in the char sequence.
Returns the largest value according to the provided comparator among all values produced by selector function applied to each character in the char sequence or null
if there are no characters.
Returns the largest character or null
if there are no characters.
Returns the first character having the largest value according to the provided comparator or null
if there are no characters.
Returns the first character yielding the smallest value of the given function or null
if there are no characters.
Returns the smallest value among all values produced by selector function applied to each character in the char sequence.
Returns the smallest value among all values produced by selector function applied to each character in the char sequence or null
if there are no characters.
Returns the smallest value according to the provided comparator among all values produced by selector function applied to each character in the char sequence.
Returns the smallest value according to the provided comparator among all values produced by selector function applied to each character in the char sequence or null
if there are no characters.
Returns the smallest character or null
if there are no characters.
Returns the first character having the smallest value according to the provided comparator or null
if there are no characters.
Returns true
if the char sequence has no characters.
Returns true
if no characters match the given predicate.
Returns the index within this string that is offset from the given index by codePointOffset code points.
Performs the given action on each character, providing sequential index with the character, and returns the char sequence itself afterwards.
Splits the original char sequence into pair of char sequences, where first char sequence contains characters for which predicate yielded true
, while second char sequence contains characters for which predicate yielded false
.
Splits the original string into pair of strings, where first string contains characters for which predicate yielded true
, while second string contains characters for which predicate yielded false
.
Prepends indent to every line of the original string.
Returns a random character from this char sequence.
Returns a random character from this char sequence using the specified source of randomness.
Returns a random character from this char sequence, or null
if this char sequence is empty.
Returns a random character from this char sequence using the specified source of randomness, or null
if this char sequence is empty.
Accumulates value starting with the first character and applying operation from left to right to current accumulator value and each character with its index in the original char sequence.
Accumulates value starting with the first character and applying operation from left to right to current accumulator value and each character with its index in the original char sequence.
Accumulates value starting with the first character and applying operation from left to right to current accumulator value and each character.
Accumulates value starting with the last character and applying operation from right to left to each character and current accumulator value.
Accumulates value starting with the last character and applying operation from right to left to each character with its index in the original char sequence and current accumulator value.
Accumulates value starting with the last character and applying operation from right to left to each character with its index in the original char sequence and current accumulator value.
Accumulates value starting with the last character and applying operation from right to left to each character and current accumulator value.
Returns true
if the specified range in this char sequence is equal to the specified range in another char sequence.
Returns true
if the specified range in this char sequence is equal to the specified range in another char sequence.
Returns true
if the specified range in this string is equal to the specified range in another string.
Returns true
if the specified range in this char sequence is equal to the specified range in another char sequence.
Returns true
if the specified range in this string is equal to the specified range in another string.
If this char sequence starts with the given prefix, returns a new char sequence with the prefix removed. Otherwise, returns a new char sequence with the same characters.
If this string starts with the given prefix, returns a copy of this string with the prefix removed. Otherwise, returns this string.
Returns a char sequence with content of this char sequence where its part at the given range is removed.
Removes the part of a string at the given range.
Returns a char sequence with content of this char sequence where its part at the given range is removed.
Removes the part of a string at a given range.
If this char sequence ends with the given suffix, returns a new char sequence with the suffix removed. Otherwise, returns a new char sequence with the same characters.
If this string ends with the given suffix, returns a copy of this string with the suffix removed. Otherwise, returns this string.
When this char sequence starts with and ends with the given delimiter, returns a new char sequence having this delimiter removed both from the start and end. Otherwise returns a new char sequence with the same characters.
Removes the given delimiter string from both the start and the end of this string if and only if it starts with and ends with the delimiter. Otherwise returns this string unchanged.
When this char sequence starts with the given prefix and ends with the given suffix, returns a new char sequence having both the given prefix and suffix removed. Otherwise returns a new char sequence with the same characters.
Removes from a string both the given prefix and suffix if and only if it starts with the prefix and ends with the suffix. Otherwise returns this string unchanged.
Returns a string containing this char sequence repeated n times.
Returns a string containing this char sequence repeated n times.
Returns a string containing this char sequence repeated n times.
Returns a string containing this char sequence repeated n times.
Returns a new string obtained by replacing each substring of this char sequence that matches the given regular expression with the result of the given function transform that takes MatchResult and returns a string to be used as a replacement for that match.
Returns a new string obtained by replacing each substring of this char sequence that matches the given regular expression with the given replacement.
Returns a new string obtained by replacing all occurrences of the oldValue substring in this string with the specified newValue string.
Returns a new string obtained by replacing all occurrences of the oldValue substring in this string with the specified newValue string.
Returns a new string obtained by replacing all occurrences of the oldValue substring in this string with the specified newValue string.
Replace part of string after the first occurrence of given delimiter with the replacement string. If the string does not contain the delimiter, returns missingDelimiterValue which defaults to the original string.
Replace part of string after the last occurrence of given delimiter with the replacement string. If the string does not contain the delimiter, returns missingDelimiterValue which defaults to the original string.
Replace part of string before the first occurrence of given delimiter with the replacement string. If the string does not contain the delimiter, returns missingDelimiterValue which defaults to the original string.
Replace part of string before the last occurrence of given delimiter with the replacement string. If the string does not contain the delimiter, returns missingDelimiterValue which defaults to the original string.
Replaces the first occurrence of the given regular expression regex in this char sequence with specified replacement expression.
Returns a new string obtained by replacing the first occurrence of the oldValue substring in this string with the specified newValue string.
Returns a new string obtained by replacing the first occurrence of the oldValue substring in this string with the specified newValue string.
Returns a copy of this string having its first character replaced with the result of the specified transform, or the original string if it's empty.
Detects a common minimal indent like it does trimIndent and replaces it with the specified newIndent.
Detects indent by marginPrefix as it does trimMargin and replace it with newIndent.
Returns a char sequence with content of this char sequence where its part at the given range is replaced with the replacement char sequence.
Replace the part of string at the given range with the replacement string.
Returns a char sequence with content of this char sequence where its part at the given range is replaced with the replacement char sequence.
Replaces the part of the string at the given range with the replacement char sequence.
Returns a char sequence with characters in reversed order.
Returns a string with characters in reversed order.
Returns a list containing successive accumulation values generated by applying operation from left to right to each character, its index in the original char sequence and current accumulator value that starts with initial value.
Returns a list containing successive accumulation values generated by applying operation from left to right to each character and current accumulator value that starts with the first character of this char sequence.
Returns a list containing successive accumulation values generated by applying operation from left to right to each character, its index in the original char sequence and current accumulator value that starts with the first character of this char sequence.
Returns a list containing successive accumulation values generated by applying operation from left to right to each character, its index in the original char sequence and current accumulator value that starts with initial value.
Replaces characters in the specified range of this string builder with characters in the specified string value and returns this instance.
Replaces characters in the specified range of this string builder with characters in the specified string value and returns this instance.
Replaces characters in the specified range of this string builder with characters in the specified string value and returns this instance.
Replaces characters in the specified range of this string builder with characters in the specified string value and returns this instance.
Returns the single character, or throws an exception if the char sequence is empty or has more than one character.
Returns the single character matching the given predicate, or throws exception if there is no or more than one matching character.
Returns single character, or null
if the char sequence is empty or has more than one character.
Returns the single character matching the given predicate, or null
if character was not found or more than one character was found.
Returns a char sequence containing characters of the original char sequence at specified indices.
Returns a char sequence containing characters of the original char sequence at the specified range of indices.
Returns a string containing characters of the original string at specified indices.
Returns a string containing characters of the original string at the specified range of indices.
Splits this char sequence to a list of strings around matches of the given regular expression.
Splits this char sequence to a list of strings around occurrences of the specified delimiters.
Splits this char sequence to a sequence of strings around matches of the given regular expression.
Splits this char sequence to a sequence of strings around occurrences of the specified delimiters.
Returns true
if this char sequence starts with the specified character.
Returns true
if this char sequence starts with the specified prefix.
Returns true
if a substring of this char sequence starting at the specified offset startIndex starts with the specified prefix.
Returns true
if this string starts with the specified prefix.
Returns true
if a substring of this string starting at the specified offset startIndex starts with the specified prefix.
Returns true
if this string starts with the specified prefix.
Returns true
if a substring of this string starting at the specified offset startIndex starts with the specified prefix.
Returns true
if this string starts with the specified prefix.
Returns true
if a substring of this string starting at the specified offset startIndex starts with the specified prefix.
Converts the characters in the specified array to a string.
Converts the characters from a portion of the specified array to a string.
Converts the characters in the specified array to a string.
Converts the characters from a portion of the specified array to a string.
Converts the contents of the specified StringBuffer to a string.
Converts the contents of the specified StringBuilder to a string.
Converts the data from the specified array of bytes to characters using the UTF-8 character set and returns the conversion result as a string.
Converts the characters in the specified array to a string.
Converts the data from the specified array of bytes to characters using the specified character set and returns the conversion result as a string.
Converts the data from a portion of the specified array of bytes to characters using the UTF-8 character set and returns the conversion result as a string.
Converts the characters from a portion of the specified array to a string.
Converts the code points from a portion of the specified Unicode code point array to a string.
Converts the data from a portion of the specified array of bytes to characters using the specified character set and returns the conversion result as a string.
Returns a subsequence of this char sequence specified by the given range of indices.
Returns a subsequence of this char sequence.
Returns a substring of chars at indices from the specified range of this char sequence.
Returns a substring specified by the given range of indices.
Returns a substring of chars from a range of this char sequence starting at the startIndex and ending right before the endIndex.
Returns a substring of this string that starts at the specified startIndex and continues to the end of the string.
Returns the substring of this string starting at the startIndex and ending right before the endIndex.
Returns a substring of this string that starts at the specified startIndex and continues to the end of the string.
Returns the substring of this string starting at the startIndex and ending right before the endIndex.
Returns a substring after the first occurrence of delimiter. If the string does not contain the delimiter, returns missingDelimiterValue which defaults to the original string.
Returns a substring after the last occurrence of delimiter. If the string does not contain the delimiter, returns missingDelimiterValue which defaults to the original string.
Returns a substring before the first occurrence of delimiter. If the string does not contain the delimiter, returns missingDelimiterValue which defaults to the original string.
Returns a substring before the last occurrence of delimiter. If the string does not contain the delimiter, returns missingDelimiterValue which defaults to the original string.
Returns the sum of all values produced by selector function applied to each character in the char sequence.
Returns the sum of all values produced by selector function applied to each character in the char sequence.
Returns the sum of all values produced by selector function applied to each character in the char sequence.
Returns the sum of all values produced by selector function applied to each character in the char sequence.
Returns a subsequence of this char sequence containing the first n characters from this char sequence, or the entire char sequence if this char sequence is shorter.
Returns a string containing the first n characters from this string, or the entire string if this string is shorter.
Returns a subsequence of this char sequence containing the last n characters from this char sequence, or the entire char sequence if this char sequence is shorter.
Returns a string containing the last n characters from this string, or the entire string if this string is shorter.
Converts this character to title case using Unicode mapping rules of the invariant locale.
Converts this character to title case using Unicode mapping rules of the invariant locale.
Converts this character to title case using Unicode mapping rules of the invariant locale.
Converts this character to title case using Unicode mapping rules of the invariant locale.
Parses the string as a java.math.BigDecimal number and returns the result.
Parses the string as a java.math.BigDecimal number and returns the result or null
if the string is not a valid representation of a number.
Parses the string as a java.math.BigInteger number and returns the result.
Parses the string as a java.math.BigInteger number and returns the result or null
if the string is not a valid representation of a number.
Returns true
if the content of this string is equal to the word "true", ignoring case, and false
otherwise.
Returns true
if this string is not null
and its content is equal to the word "true", ignoring case, and false
otherwise.
Returns true
if the content of this string is equal to the word "true", ignoring case, and false
otherwise.
Returns true
if this string is not null
and its content is equal to the word "true", ignoring case, and false
otherwise.
Returns true
if the content of this string is equal to the word "true", ignoring case, and false
otherwise.
Returns true
if this string is not null
and its content is equal to the word "true", ignoring case, and false
otherwise.
Returns true
if the content of this string is equal to the word "true", ignoring case, and false
otherwise.
Returns true
if this string is not null
and its content is equal to the word "true", ignoring case, and false
otherwise.
Returns true
if the content of this string is equal to the word "true", false
if it is equal to "false", and throws an exception otherwise.
Returns true
if the content of this string is equal to the word "true", false
if it is equal to "false", and null
otherwise.
Parses the string as a signed Byte number and returns the result.
Parses the string as a signed Byte number and returns the result.
Encodes the contents of this string using the specified character set and returns the resulting byte array.
Parses the string as a signed Byte number and returns the result or null
if the string is not a valid representation of a number.
Returns a CharArray containing characters of this string.
Returns a CharArray containing characters of this string or its substring.
Copies characters from this string builder into the destination character array.
Returns a CharArray containing characters of this string.
Returns a CharArray containing characters of this string or its substring.
Copies characters from this string builder into the destination character array.
Returns a CharArray containing characters of this string.
Returns a CharArray containing characters of this string or its substring.
Copies characters from this string builder into the destination character array.
Copies characters from this string into the destination character array and returns that array.
Returns a CharArray containing characters of this string.
Returns a CharArray containing characters of this string or its substring.
Copies characters from this string builder into the destination character array.
Converts the codepoint specified to a char array. If the codepoint is not supplementary, the method will return an array with one element otherwise it will return an array A with a high surrogate in A0 and a low surrogate in A1.
Converts a surrogate pair to a unicode code point. Doesn't validate that the characters are a valid surrogate pair.
Appends all characters to the given destination collection.
Parses the string as a Double number and returns the result or null
if the string is not a valid representation of a number.
Parses the string as a Double number and returns the result or null
if the string is not a valid representation of a number.
Parses the string as a Double number and returns the result or null
if the string is not a valid representation of a number.
Parses the string as a Double number and returns the result or null
if the string is not a valid representation of a number.
Parses the string as a Float number and returns the result or null
if the string is not a valid representation of a number.
Parses the string as a Float number and returns the result or null
if the string is not a valid representation of a number.
Parses the string as a Float number and returns the result or null
if the string is not a valid representation of a number.
Parses the string as a Float number and returns the result or null
if the string is not a valid representation of a number.
Parses the string as an Int number and returns the result or null
if the string is not a valid representation of a number.
Parses the string as a Long number and returns the result or null
if the string is not a valid representation of a number.
Converts this character to lower case using Unicode mapping rules of the invariant locale.
Returns a copy of this string converted to lower case using the rules of the default locale.
Converts this character to lower case using Unicode mapping rules of the invariant locale.
Returns a copy of this string converted to lower case using the rules of the default locale.
Converts this character to lower case using Unicode mapping rules of the invariant locale.
Returns a copy of this string converted to lower case using the rules of the default locale.
Returns a copy of this string converted to lower case using the rules of the specified locale.
Converts this character to lower case using Unicode mapping rules of the invariant locale.
Returns a copy of this string converted to lower case using the rules of the default locale.
Returns a new MutableList filled with all characters of this char sequence.
Converts the string into a regular expression Regex with the default options.
Converts this java.util.regex.Pattern to an instance of Regex.
Parses the string as a Short number and returns the result.
Parses the string as a Short number and returns the result.
Parses the string as a Short number and returns the result or null
if the string is not a valid representation of a number.
Returns a new SortedSet of all characters.
Converts this character to title case using Unicode mapping rules of the invariant locale.
Parses the string as an UByte number and returns the result or null
if the string is not a valid representation of a number.
Parses the string as an UInt number and returns the result or null
if the string is not a valid representation of a number.
Parses the string as an ULong number and returns the result or null
if the string is not a valid representation of a number.
Converts this character to upper case using Unicode mapping rules of the invariant locale.
Returns a copy of this string converted to upper case using the rules of the default locale.
Converts this character to upper case using Unicode mapping rules of the invariant locale.
Returns a copy of this string converted to upper case using the rules of the default locale.
Converts this character to upper case using Unicode mapping rules of the invariant locale.
Returns a copy of this string converted to upper case using the rules of the default locale.
Returns a copy of this string converted to upper case using the rules of the specified locale.
Converts this character to upper case using Unicode mapping rules of the invariant locale.
Returns a copy of this string converted to upper case using the rules of the default locale.
Parses the string as an UShort number and returns the result or null
if the string is not a valid representation of a number.
Returns a sub sequence of this char sequence having leading and trailing whitespace removed.
Returns a string having leading and trailing whitespace removed.
Returns a sub sequence of this char sequence having leading and trailing characters from the chars array removed.
Returns a sub sequence of this char sequence having leading and trailing characters matching the predicate removed.
Returns a string having leading and trailing characters from the chars array removed.
Returns a string having leading and trailing characters matching the predicate removed.
Returns a sub sequence of this char sequence having trailing whitespace removed.
Returns a string having trailing whitespace removed.
Returns a sub sequence of this char sequence having trailing characters from the chars array removed.
Returns a sub sequence of this char sequence having trailing characters matching the predicate removed.
Returns a string having trailing characters from the chars array removed.
Returns a string having trailing characters matching the predicate removed.
Detects a common minimal indent of all the input lines, removes it from every line and also removes the first and the last lines if they are blank (notice difference blank vs empty).
Trims leading whitespace characters followed by marginPrefix from every line of a source string and removes the first and the last lines if they are blank (notice difference blank vs empty).
Returns a sub sequence of this char sequence having leading whitespace removed.
Returns a string having leading whitespace removed.
Returns a sub sequence of this char sequence having leading characters from the chars array removed.
Returns a sub sequence of this char sequence having leading characters matching the predicate removed.
Returns a string having leading characters from the chars array removed.
Returns a string having leading characters matching the predicate removed.
Converts this character to upper case using Unicode mapping rules of the invariant locale.
Returns a copy of this string converted to upper case using Unicode mapping rules of the invariant locale.
Converts this character to upper case using Unicode mapping rules of the invariant locale.
Returns a copy of this string converted to upper case using Unicode mapping rules of the invariant locale.
Converts this character to upper case using Unicode mapping rules of the invariant locale.
Returns a copy of this string converted to upper case using Unicode mapping rules of the invariant locale.
Converts this character to upper case using Unicode mapping rules of the specified locale.
Returns a copy of this string converted to upper case using the rules of the specified locale.
Converts this character to upper case using Unicode mapping rules of the invariant locale.
Returns a copy of this string converted to upper case using Unicode mapping rules of the invariant locale.
Converts this character to upper case using Unicode mapping rules of the invariant locale.
Converts this character to upper case using Unicode mapping rules of the invariant locale.
Converts this character to upper case using Unicode mapping rules of the invariant locale.
Converts this character to upper case using Unicode mapping rules of the invariant locale.
Returns a list of snapshots of the window of the given size sliding along this char sequence with the given step, where each snapshot is a string.
Returns a list of results of applying the given transform function to an each char sequence representing a view over the window of the given size sliding along this char sequence with the given step.
Returns a sequence of snapshots of the window of the given size sliding along this char sequence with the given step, where each snapshot is a string.
Returns a sequence of results of applying the given transform function to an each char sequence representing a view over the window of the given size sliding along this char sequence with the given step.
Returns a lazy Iterable that wraps each character of the original char sequence into an IndexedValue containing the index of that character and the character itself.
Returns a list of pairs built from the characters of this
and the other char sequences with the same index The returned list has length of the shortest char sequence.
Returns a list of values built from the characters of this
and the other char sequences with the same index using the provided transform function applied to each pair of characters. The returned list has length of the shortest char sequence.
Returns a list of pairs of each two adjacent characters in this char sequence.
Returns a list containing the results of applying the given transform function to an each pair of two adjacent characters in this char sequence.