Interface SequenceUtils

All Known Subinterfaces:
BasedSequence, IRichSequence<T>, ReplacedBasedSequence, RichSequence
All Known Implementing Classes:
BasedSequence.EmptyBasedSequence, BasedSequenceImpl, CharSubSequence, IRichSequenceBase, MappedBasedSequence, MappedRichSequence, PrefixedSubSequence, RichSequenceImpl, SegmentedSequence, SegmentedSequenceFull, SegmentedSequenceTree, SubSequence

public interface SequenceUtils
  • Field Details

  • Method Details

    • getVisibleSpacesMap

      static Map<Character,String> getVisibleSpacesMap()
    • subSequence

      @NotNull static <T extends CharSequence> T subSequence(@NotNull T thizz, int startIndex)
    • subSequence

      @NotNull static <T extends CharSequence> T subSequence(@NotNull T thizz, @NotNull @NotNull Range range)
      Get a portion of this sequence selected by range
      Type Parameters:
      T - type of character sequence
      Parameters:
      thizz - char sequence
      range - range to get, coordinates offset form start of this sequence
      Returns:
      sequence whose contents reflect the selected portion, if range.isNull() then this is returned
    • subSequenceBefore

      @Nullable static <T extends CharSequence> T subSequenceBefore(@NotNull T thizz, @NotNull @NotNull Range range)
      Get a portion of this sequence before one selected by range
      Type Parameters:
      T - type of character sequence
      Parameters:
      thizz - char sequence
      range - range to get, coordinates offset form start of this sequence
      Returns:
      sequence whose contents come before the selected range, if range.isNull() then null
    • subSequenceAfter

      @Nullable static <T extends CharSequence> T subSequenceAfter(@NotNull T thizz, @NotNull @NotNull Range range)
      Get a portion of this sequence after one selected by range
      Type Parameters:
      T - type of character sequence
      Parameters:
      thizz - char sequence
      range - range to get, coordinates offset form start of this sequence
      Returns:
      sequence whose contents come after the selected range, if range.isNull() then null
    • subSequenceBeforeAfter

      @NotNull static <T extends CharSequence> @NotNull Pair<T,T> subSequenceBeforeAfter(@NotNull T thizz, Range range)
      Get a portions of this sequence before and after one selected by range
      Type Parameters:
      T - type of character sequence
      Parameters:
      thizz - char sequence
      range - range to get, coordinates offset form start of this sequence
      Returns:
      sequence whose contents come before and after the selected range, if range.isNull() then pair of nulls
    • containsAny

      static boolean containsAny(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate s)
    • containsAny

      static boolean containsAny(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate s, int index)
    • containsAnyNot

      static boolean containsAnyNot(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate s)
    • containsAnyNot

      static boolean containsAnyNot(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate s, int fromIndex)
    • containsAnyNot

      static boolean containsAnyNot(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate s, int fromIndex, int endIndex)
    • indexOf

      static int indexOf(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence s)
    • indexOf

      static int indexOf(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence s, int fromIndex)
    • indexOf

      static int indexOf(@NotNull @NotNull CharSequence thizz, char c)
    • indexOf

      static int indexOf(@NotNull @NotNull CharSequence thizz, char c, int fromIndex)
    • indexOfAny

      static int indexOfAny(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate s)
    • indexOfAny

      static int indexOfAny(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate s, int index)
    • indexOfAnyNot

      static int indexOfAnyNot(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate s)
    • indexOfAnyNot

      static int indexOfAnyNot(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate s, int fromIndex)
    • indexOfAnyNot

      static int indexOfAnyNot(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate s, int fromIndex, int endIndex)
    • indexOfNot

      static int indexOfNot(@NotNull @NotNull CharSequence thizz, char c)
    • indexOfNot

      static int indexOfNot(@NotNull @NotNull CharSequence thizz, char c, int fromIndex)
    • lastIndexOf

      static int lastIndexOf(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence s)
    • lastIndexOf

      static int lastIndexOf(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence s, int fromIndex)
    • lastIndexOf

      static int lastIndexOf(@NotNull @NotNull CharSequence thizz, char c)
    • lastIndexOf

      static int lastIndexOf(@NotNull @NotNull CharSequence thizz, char c, int fromIndex)
    • lastIndexOfAny

      static int lastIndexOfAny(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate s)
    • lastIndexOfAny

      static int lastIndexOfAny(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate s, int fromIndex)
    • lastIndexOfAnyNot

      static int lastIndexOfAnyNot(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate s)
    • lastIndexOfAnyNot

      static int lastIndexOfAnyNot(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate s, int fromIndex)
    • lastIndexOfAnyNot

      static int lastIndexOfAnyNot(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate s, int startIndex, int fromIndex)
    • lastIndexOfNot

      static int lastIndexOfNot(@NotNull @NotNull CharSequence thizz, char c)
    • lastIndexOfNot

      static int lastIndexOfNot(@NotNull @NotNull CharSequence thizz, char c, int fromIndex)
    • indexOf

      static int indexOf(@NotNull @NotNull CharSequence thizz, char c, int fromIndex, int endIndex)
    • indexOf

      static int indexOf(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence s, int fromIndex, int endIndex)
    • lastIndexOf

      static int lastIndexOf(@NotNull @NotNull CharSequence thizz, char c, int startIndex, int fromIndex)
    • indexOfNot

      static int indexOfNot(@NotNull @NotNull CharSequence thizz, char c, int fromIndex, int endIndex)
    • indexOfAny

      static int indexOfAny(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate s, int fromIndex, int endIndex)
    • lastIndexOf

      static int lastIndexOf(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence s, int startIndex, int fromIndex)
    • lastIndexOfNot

      static int lastIndexOfNot(@NotNull @NotNull CharSequence thizz, char c, int startIndex, int fromIndex)
    • lastIndexOfAny

      static int lastIndexOfAny(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate s, int startIndex, int fromIndex)
    • equals

      @Contract(pure=true, value="_, null -> false") static boolean equals(@NotNull @NotNull CharSequence thizz, Object o)
      Equality comparison based on character content of this sequence, with quick fail resorting to content comparison only if length and hashCodes are equal
      Parameters:
      thizz - char sequence to test for equality
      o - any character sequence
      Returns:
      true if character contents are equal
    • hashCode

      @Contract(pure=true) static int hashCode(@NotNull @NotNull CharSequence thizz)
    • compareReversed

      static int compareReversed(@Nullable @Nullable CharSequence o1, @Nullable @Nullable CharSequence o2)
    • compare

      static int compare(@Nullable @Nullable CharSequence o1, @Nullable @Nullable CharSequence o2)
    • compare

      static int compare(@Nullable @Nullable CharSequence o1, @Nullable @Nullable CharSequence o2, boolean ignoreCase)
    • compare

      static int compare(@Nullable @Nullable CharSequence o1, @Nullable @Nullable CharSequence o2, boolean ignoreCase, @Nullable @Nullable CharPredicate ignoreChars)
    • toStringArray

      @NotNull static @NotNull String[] toStringArray(CharSequence... sequences)
    • isVisibleWhitespace

      static boolean isVisibleWhitespace(char c)
    • columnsToNextTabStop

      static int columnsToNextTabStop(int column)
    • expandTo

      @NotNull static @org.jetbrains.annotations.NotNull int[] expandTo(@NotNull @org.jetbrains.annotations.NotNull int[] indices, int length, int step)
    • truncateTo

      @NotNull static @org.jetbrains.annotations.NotNull int[] truncateTo(@NotNull @org.jetbrains.annotations.NotNull int[] indices, int length)
    • indexOfAll

      @NotNull static @org.jetbrains.annotations.NotNull int[] indexOfAll(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence s)
    • matches

      static boolean matches(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence chars, boolean ignoreCase)
    • matches

      static boolean matches(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence chars)
    • matchesIgnoreCase

      static boolean matchesIgnoreCase(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence chars)
    • matchChars

      static boolean matchChars(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence chars, int startIndex, boolean ignoreCase)
    • matchChars

      static boolean matchChars(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence chars, int startIndex)
    • matchCharsIgnoreCase

      static boolean matchCharsIgnoreCase(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence chars, int startIndex)
    • matchChars

      static boolean matchChars(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence chars, boolean ignoreCase)
    • matchChars

      static boolean matchChars(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence chars)
    • matchCharsIgnoreCase

      static boolean matchCharsIgnoreCase(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence chars)
    • matchCharsReversed

      static boolean matchCharsReversed(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence chars, int endIndex, boolean ignoreCase)
    • matchCharsReversed

      static boolean matchCharsReversed(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence chars, int endIndex)
    • matchCharsReversedIgnoreCase

      static boolean matchCharsReversedIgnoreCase(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence chars, int endIndex)
    • matchedCharCount

      static int matchedCharCount(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence chars, int startIndex, int endIndex, boolean ignoreCase)
    • matchedCharCount

      static int matchedCharCount(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence chars, int startIndex, boolean ignoreCase)
    • matchedCharCount

      static int matchedCharCount(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence chars, int startIndex, int endIndex)
    • matchedCharCount

      static int matchedCharCount(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence chars, int startIndex)
    • matchedCharCountIgnoreCase

      static int matchedCharCountIgnoreCase(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence chars, int startIndex, int endIndex)
    • matchedCharCountIgnoreCase

      static int matchedCharCountIgnoreCase(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence chars, int startIndex)
    • matchedCharCountReversed

      static int matchedCharCountReversed(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence chars, int startIndex, int fromIndex)
    • matchedCharCountReversedIgnoreCase

      static int matchedCharCountReversedIgnoreCase(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence chars, int startIndex, int fromIndex)
    • matchedCharCountReversed

      static int matchedCharCountReversed(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence chars, int fromIndex, boolean ignoreCase)
    • matchedCharCountReversed

      static int matchedCharCountReversed(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence chars, int fromIndex)
    • matchedCharCountReversedIgnoreCase

      static int matchedCharCountReversedIgnoreCase(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence chars, int fromIndex)
    • matchedCharCount

      static int matchedCharCount(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence chars, int startIndex, int endIndex, boolean fullMatchOnly, boolean ignoreCase)
    • matchedCharCountReversed

      static int matchedCharCountReversed(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence chars, int startIndex, int fromIndex, boolean ignoreCase)
    • countOfSpaceTab

      static int countOfSpaceTab(@NotNull @NotNull CharSequence thizz)
    • countOfNotSpaceTab

      static int countOfNotSpaceTab(@NotNull @NotNull CharSequence thizz)
    • countOfWhitespace

      static int countOfWhitespace(@NotNull @NotNull CharSequence thizz)
    • countOfNotWhitespace

      static int countOfNotWhitespace(@NotNull @NotNull CharSequence thizz)
    • countOfAny

      static int countOfAny(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate chars, int fromIndex)
    • countOfAny

      static int countOfAny(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate chars)
    • countOfAnyNot

      static int countOfAnyNot(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate chars, int fromIndex, int endIndex)
    • countOfAnyNot

      static int countOfAnyNot(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate chars, int fromIndex)
    • countOfAnyNot

      static int countOfAnyNot(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate chars)
    • countOfAny

      static int countOfAny(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate s, int fromIndex, int endIndex)
    • countLeadingSpace

      static int countLeadingSpace(@NotNull @NotNull CharSequence thizz)
    • countLeadingSpace

      static int countLeadingSpace(@NotNull @NotNull CharSequence thizz, int startIndex)
    • countLeadingSpace

      static int countLeadingSpace(@NotNull @NotNull CharSequence thizz, int startIndex, int endIndex)
    • countLeadingNotSpace

      static int countLeadingNotSpace(@NotNull @NotNull CharSequence thizz)
    • countLeadingNotSpace

      static int countLeadingNotSpace(@NotNull @NotNull CharSequence thizz, int startIndex)
    • countLeadingNotSpace

      static int countLeadingNotSpace(@NotNull @NotNull CharSequence thizz, int startIndex, int endIndex)
    • countTrailingSpace

      static int countTrailingSpace(@NotNull @NotNull CharSequence thizz)
    • countTrailingSpace

      static int countTrailingSpace(@NotNull @NotNull CharSequence thizz, int fromIndex)
    • countTrailingSpace

      static int countTrailingSpace(@NotNull @NotNull CharSequence thizz, int startIndex, int fromIndex)
    • countTrailingNotSpace

      static int countTrailingNotSpace(@NotNull @NotNull CharSequence thizz)
    • countTrailingNotSpace

      static int countTrailingNotSpace(@NotNull @NotNull CharSequence thizz, int fromIndex)
    • countTrailingNotSpace

      static int countTrailingNotSpace(@NotNull @NotNull CharSequence thizz, int startIndex, int fromIndex)
    • countLeadingSpaceTab

      static int countLeadingSpaceTab(@NotNull @NotNull CharSequence thizz)
    • countLeadingSpaceTab

      static int countLeadingSpaceTab(@NotNull @NotNull CharSequence thizz, int startIndex)
    • countLeadingSpaceTab

      static int countLeadingSpaceTab(@NotNull @NotNull CharSequence thizz, int startIndex, int endIndex)
    • countLeadingNotSpaceTab

      static int countLeadingNotSpaceTab(@NotNull @NotNull CharSequence thizz)
    • countLeadingNotSpaceTab

      static int countLeadingNotSpaceTab(@NotNull @NotNull CharSequence thizz, int startIndex)
    • countLeadingNotSpaceTab

      static int countLeadingNotSpaceTab(@NotNull @NotNull CharSequence thizz, int startIndex, int endIndex)
    • countTrailingSpaceTab

      static int countTrailingSpaceTab(@NotNull @NotNull CharSequence thizz)
    • countTrailingSpaceTab

      static int countTrailingSpaceTab(@NotNull @NotNull CharSequence thizz, int fromIndex)
    • countTrailingSpaceTab

      static int countTrailingSpaceTab(@NotNull @NotNull CharSequence thizz, int startIndex, int fromIndex)
    • countTrailingNotSpaceTab

      static int countTrailingNotSpaceTab(@NotNull @NotNull CharSequence thizz)
    • countTrailingNotSpaceTab

      static int countTrailingNotSpaceTab(@NotNull @NotNull CharSequence thizz, int fromIndex)
    • countTrailingNotSpaceTab

      static int countTrailingNotSpaceTab(@NotNull @NotNull CharSequence thizz, int startIndex, int fromIndex)
    • countLeadingWhitespace

      static int countLeadingWhitespace(@NotNull @NotNull CharSequence thizz)
    • countLeadingWhitespace

      static int countLeadingWhitespace(@NotNull @NotNull CharSequence thizz, int startIndex)
    • countLeadingWhitespace

      static int countLeadingWhitespace(@NotNull @NotNull CharSequence thizz, int startIndex, int endIndex)
    • countLeadingNotWhitespace

      static int countLeadingNotWhitespace(@NotNull @NotNull CharSequence thizz)
    • countLeadingNotWhitespace

      static int countLeadingNotWhitespace(@NotNull @NotNull CharSequence thizz, int startIndex)
    • countLeadingNotWhitespace

      static int countLeadingNotWhitespace(@NotNull @NotNull CharSequence thizz, int startIndex, int endIndex)
    • countTrailingWhitespace

      static int countTrailingWhitespace(@NotNull @NotNull CharSequence thizz)
    • countTrailingWhitespace

      static int countTrailingWhitespace(@NotNull @NotNull CharSequence thizz, int fromIndex)
    • countTrailingWhitespace

      static int countTrailingWhitespace(@NotNull @NotNull CharSequence thizz, int startIndex, int fromIndex)
    • countTrailingNotWhitespace

      static int countTrailingNotWhitespace(@NotNull @NotNull CharSequence thizz)
    • countTrailingNotWhitespace

      static int countTrailingNotWhitespace(@NotNull @NotNull CharSequence thizz, int fromIndex)
    • countTrailingNotWhitespace

      static int countTrailingNotWhitespace(@NotNull @NotNull CharSequence thizz, int startIndex, int fromIndex)
    • countLeading

      static int countLeading(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate chars)
    • countLeading

      static int countLeading(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate chars, int fromIndex)
    • countLeadingNot

      static int countLeadingNot(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate chars)
    • countLeadingNot

      static int countLeadingNot(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate chars, int fromIndex)
    • countTrailing

      static int countTrailing(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate chars)
    • countTrailing

      static int countTrailing(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate chars, int fromIndex)
    • countTrailingNot

      static int countTrailingNot(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate chars)
    • countTrailingNot

      static int countTrailingNot(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate chars, int fromIndex)
    • countLeadingNot

      static int countLeadingNot(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate chars, int startIndex, int endIndex)
    • countTrailingNot

      static int countTrailingNot(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate chars, int startIndex, int endIndex)
    • countLeading

      static int countLeading(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate chars, int fromIndex, int endIndex)
    • countLeadingColumns

      static int countLeadingColumns(@NotNull @NotNull CharSequence thizz, int startColumn, @NotNull @NotNull CharPredicate chars)
    • countTrailing

      static int countTrailing(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate chars, int startIndex, int fromIndex)
    • trimStart

      @NotNull static <T extends CharSequence> T trimStart(@NotNull T thizz, @NotNull @NotNull CharPredicate chars)
    • trimmedStart

      @Nullable static <T extends CharSequence> T trimmedStart(@NotNull T thizz, @NotNull @NotNull CharPredicate chars)
    • trimEnd

      @NotNull static <T extends CharSequence> T trimEnd(@NotNull T thizz, @NotNull @NotNull CharPredicate chars)
    • trimmedEnd

      @Nullable static <T extends CharSequence> T trimmedEnd(@NotNull T thizz, @NotNull @NotNull CharPredicate chars)
    • trim

      @NotNull static <T extends CharSequence> T trim(@NotNull T thizz, @NotNull @NotNull CharPredicate chars)
    • trimmed

      @NotNull static <T extends CharSequence> @NotNull Pair<T,T> trimmed(@NotNull T thizz, @NotNull @NotNull CharPredicate chars)
    • trimStart

      @NotNull static <T extends CharSequence> T trimStart(@NotNull T thizz, int keep)
    • trimmedStart

      @Nullable static <T extends CharSequence> T trimmedStart(@NotNull T thizz, int keep)
    • trimEnd

      @NotNull static <T extends CharSequence> T trimEnd(@NotNull T thizz, int keep)
    • trimmedEnd

      @Nullable static <T extends CharSequence> T trimmedEnd(@NotNull T thizz, int keep)
    • trim

      @NotNull static <T extends CharSequence> T trim(@NotNull T thizz, int keep)
    • trimmed

      @NotNull static <T extends CharSequence> @NotNull Pair<T,T> trimmed(@NotNull T thizz, int keep)
    • trimStart

      @NotNull static <T extends CharSequence> T trimStart(@NotNull T thizz)
    • trimmedStart

      @Nullable static <T extends CharSequence> T trimmedStart(@NotNull T thizz)
    • trimEnd

      @NotNull static <T extends CharSequence> T trimEnd(@NotNull T thizz)
    • trimmedEnd

      @Nullable static <T extends CharSequence> T trimmedEnd(@NotNull T thizz)
    • trim

      @NotNull static <T extends CharSequence> T trim(@NotNull T thizz)
    • trimmed

      @NotNull static <T extends CharSequence> @NotNull Pair<T,T> trimmed(@NotNull T thizz)
    • trimStart

      @NotNull static <T extends CharSequence> T trimStart(@NotNull T thizz, int keep, @NotNull @NotNull CharPredicate chars)
    • trimmedStart

      @Nullable static <T extends CharSequence> T trimmedStart(@NotNull T thizz, int keep, @NotNull @NotNull CharPredicate chars)
    • trimEnd

      @NotNull static <T extends CharSequence> T trimEnd(@NotNull T thizz, int keep, @NotNull @NotNull CharPredicate chars)
    • trimmedEnd

      @Nullable static <T extends CharSequence> T trimmedEnd(@NotNull T thizz, int keep, @NotNull @NotNull CharPredicate chars)
    • trim

      @NotNull static <T extends CharSequence> T trim(@NotNull T thizz, int keep, @NotNull @NotNull CharPredicate chars)
    • trimmed

      @NotNull static <T extends CharSequence> @NotNull Pair<T,T> trimmed(@NotNull T thizz, int keep, @NotNull @NotNull CharPredicate chars)
    • trimStartRange

      static Range trimStartRange(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate chars)
    • trimEndRange

      static Range trimEndRange(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate chars)
    • trimRange

      static Range trimRange(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate chars)
    • trimStartRange

      static Range trimStartRange(@NotNull @NotNull CharSequence thizz, int keep)
    • trimEndRange

      static Range trimEndRange(@NotNull @NotNull CharSequence thizz, int keep)
    • trimRange

      static Range trimRange(@NotNull @NotNull CharSequence thizz, int keep)
    • trimStartRange

      static Range trimStartRange(@NotNull @NotNull CharSequence thizz)
    • trimEndRange

      static Range trimEndRange(@NotNull @NotNull CharSequence thizz)
    • trimRange

      static Range trimRange(@NotNull @NotNull CharSequence thizz)
    • trimStartRange

      @NotNull static @NotNull Range trimStartRange(@NotNull @NotNull CharSequence thizz, int keep, @NotNull @NotNull CharPredicate chars)
    • trimEndRange

      @NotNull static @NotNull Range trimEndRange(@NotNull @NotNull CharSequence thizz, int keep, @NotNull @NotNull CharPredicate chars)
    • trimRange

      @NotNull static @NotNull Range trimRange(@NotNull @NotNull CharSequence thizz, int keep, @NotNull @NotNull CharPredicate chars)
    • padStart

      @NotNull static @NotNull String padStart(@NotNull @NotNull CharSequence thizz, int length, char pad)
    • padEnd

      @NotNull static @NotNull String padEnd(@NotNull @NotNull CharSequence thizz, int length, char pad)
    • padStart

      @NotNull static @NotNull String padStart(@NotNull @NotNull CharSequence thizz, int length)
    • padEnd

      @NotNull static @NotNull String padEnd(@NotNull @NotNull CharSequence thizz, int length)
    • toVisibleWhitespaceString

      @NotNull static @NotNull String toVisibleWhitespaceString(@NotNull @NotNull CharSequence thizz)
    • lastChar

      static char lastChar(@NotNull @NotNull CharSequence thizz)
    • firstChar

      static char firstChar(@NotNull @NotNull CharSequence thizz)
    • safeCharAt

      static char safeCharAt(@NotNull @NotNull CharSequence thizz, int index)
    • eolEndLength

      static int eolEndLength(@NotNull @NotNull CharSequence thizz)
    • eolEndLength

      static int eolEndLength(@NotNull @NotNull CharSequence thizz, int eolEnd)
    • eolStartLength

      static int eolStartLength(@NotNull @NotNull CharSequence thizz, int eolStart)
    • endOfLine

      static int endOfLine(@NotNull @NotNull CharSequence thizz, int index)
    • endOfLineAnyEOL

      static int endOfLineAnyEOL(@NotNull @NotNull CharSequence thizz, int index)
    • startOfLine

      static int startOfLine(@NotNull @NotNull CharSequence thizz, int index)
    • startOfLineAnyEOL

      static int startOfLineAnyEOL(@NotNull @NotNull CharSequence thizz, int index)
    • startOfDelimitedByAnyNot

      static int startOfDelimitedByAnyNot(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate s, int index)
    • endOfDelimitedByAnyNot

      static int endOfDelimitedByAnyNot(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate s, int index)
    • startOfDelimitedBy

      static int startOfDelimitedBy(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence s, int index)
    • startOfDelimitedByAny

      static int startOfDelimitedByAny(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate s, int index)
    • endOfDelimitedBy

      static int endOfDelimitedBy(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence s, int index)
    • endOfDelimitedByAny

      static int endOfDelimitedByAny(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate s, int index)
    • lineRangeAt

      @NotNull static @NotNull Range lineRangeAt(@NotNull @NotNull CharSequence thizz, int index)
    • lineRangeAtAnyEOL

      @NotNull static @NotNull Range lineRangeAtAnyEOL(@NotNull @NotNull CharSequence thizz, int index)
    • eolEndRange

      @NotNull static @NotNull Range eolEndRange(@NotNull @NotNull CharSequence thizz, int eolEnd)
    • eolStartRange

      @NotNull static @NotNull Range eolStartRange(@NotNull @NotNull CharSequence thizz, int eolStart)
    • trimEOL

      @NotNull static <T extends CharSequence> T trimEOL(@NotNull T thizz)
    • trimmedEOL

      @Nullable static <T extends CharSequence> T trimmedEOL(@NotNull T thizz)
    • trimTailBlankLines

      @Nullable static <T extends CharSequence> T trimTailBlankLines(@NotNull T thizz)
    • trimLeadBlankLines

      @Nullable static <T extends CharSequence> T trimLeadBlankLines(@NotNull T thizz)
    • leadingBlankLinesRange

      @NotNull static @NotNull Range leadingBlankLinesRange(@NotNull @NotNull CharSequence thizz)
    • leadingBlankLinesRange

      @NotNull static @NotNull Range leadingBlankLinesRange(@NotNull @NotNull CharSequence thizz, int startIndex)
    • leadingBlankLinesRange

      @NotNull static @NotNull Range leadingBlankLinesRange(@NotNull @NotNull CharSequence thizz, int fromIndex, int endIndex)
    • trailingBlankLinesRange

      @NotNull static @NotNull Range trailingBlankLinesRange(@NotNull @NotNull CharSequence thizz)
    • trailingBlankLinesRange

      @NotNull static @NotNull Range trailingBlankLinesRange(@NotNull @NotNull CharSequence thizz, int fromIndex)
    • trailingBlankLinesRange

      @NotNull static @NotNull Range trailingBlankLinesRange(@NotNull @NotNull CharSequence thizz, int startIndex, int fromIndex)
    • trailingBlankLinesRange

      @NotNull static @NotNull Range trailingBlankLinesRange(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate eolChars, int startIndex, int fromIndex)
    • leadingBlankLinesRange

      @NotNull static @NotNull Range leadingBlankLinesRange(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate eolChars, int fromIndex, int endIndex)
    • blankLinesRemovedRanges

      @NotNull static @NotNull List<Range> blankLinesRemovedRanges(@NotNull @NotNull CharSequence thizz)
    • blankLinesRemovedRanges

      @NotNull static @NotNull List<Range> blankLinesRemovedRanges(@NotNull @NotNull CharSequence thizz, int fromIndex)
    • blankLinesRemovedRanges

      @NotNull static @NotNull List<Range> blankLinesRemovedRanges(@NotNull @NotNull CharSequence thizz, int fromIndex, int endIndex)
    • blankLinesRemovedRanges

      @NotNull static @NotNull List<Range> blankLinesRemovedRanges(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate eolChars, int fromIndex, int endIndex)
    • isEmpty

      static boolean isEmpty(@NotNull @NotNull CharSequence thizz)
    • isBlank

      static boolean isBlank(@NotNull @NotNull CharSequence thizz)
    • isNotEmpty

      static boolean isNotEmpty(@NotNull @NotNull CharSequence thizz)
    • isNotBlank

      static boolean isNotBlank(@NotNull @NotNull CharSequence thizz)
    • endsWith

      static boolean endsWith(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence suffix)
    • endsWith

      static boolean endsWith(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence suffix, boolean ignoreCase)
    • startsWith

      static boolean startsWith(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence prefix)
    • startsWith

      static boolean startsWith(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence prefix, boolean ignoreCase)
    • endsWith

      static boolean endsWith(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate chars)
    • startsWith

      static boolean startsWith(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate chars)
    • endsWithEOL

      static boolean endsWithEOL(@NotNull @NotNull CharSequence thizz)
    • endsWithAnyEOL

      static boolean endsWithAnyEOL(@NotNull @NotNull CharSequence thizz)
    • endsWithSpace

      static boolean endsWithSpace(@NotNull @NotNull CharSequence thizz)
    • endsWithSpaceTab

      static boolean endsWithSpaceTab(@NotNull @NotNull CharSequence thizz)
    • endsWithWhitespace

      static boolean endsWithWhitespace(@NotNull @NotNull CharSequence thizz)
    • startsWithEOL

      static boolean startsWithEOL(@NotNull @NotNull CharSequence thizz)
    • startsWithAnyEOL

      static boolean startsWithAnyEOL(@NotNull @NotNull CharSequence thizz)
    • startsWithSpace

      static boolean startsWithSpace(@NotNull @NotNull CharSequence thizz)
    • startsWithSpaceTab

      static boolean startsWithSpaceTab(@NotNull @NotNull CharSequence thizz)
    • startsWithWhitespace

      static boolean startsWithWhitespace(@NotNull @NotNull CharSequence thizz)
    • splitList

      @NotNull static <T extends CharSequence> @NotNull List<T> splitList(@NotNull T thizz, @NotNull @NotNull CharSequence delimiter)
    • splitList

      @NotNull static <T extends CharSequence> @NotNull List<T> splitList(@NotNull T thizz, @NotNull @NotNull CharSequence delimiter, int limit, boolean includeDelims, @Nullable @Nullable CharPredicate trimChars)
    • splitList

      @NotNull static <T extends CharSequence> @NotNull List<T> splitList(@NotNull T thizz, @NotNull @NotNull CharSequence delimiter, int limit, int flags)
    • splitList

      @NotNull static <T extends CharSequence> @NotNull List<T> splitList(@NotNull T thizz, @NotNull @NotNull CharSequence delimiter, boolean includeDelims, @Nullable @Nullable CharPredicate trimChars)
    • splitListEOL

      @NotNull static <T extends CharSequence> @NotNull List<T> splitListEOL(@NotNull T thizz)
    • splitListEOL

      @NotNull static <T extends CharSequence> @NotNull List<T> splitListEOL(@NotNull T thizz, boolean includeDelims)
    • splitListEOL

      @NotNull static <T extends CharSequence> @NotNull List<T> splitListEOL(@NotNull T thizz, boolean includeDelims, @Nullable @Nullable CharPredicate trimChars)
    • splitEOL

      @NotNull static <T extends CharSequence> @NotNull T[] splitEOL(@NotNull T thizz, T[] emptyArray)
    • splitEOL

      @NotNull static <T extends CharSequence> @NotNull T[] splitEOL(@NotNull T thizz, T[] emptyArray, boolean includeDelims)
    • split

      @NotNull static <T extends CharSequence> @NotNull T[] split(@NotNull T thizz, T[] emptyArray, @NotNull @NotNull CharSequence delimiter, boolean includeDelims, @Nullable @Nullable CharPredicate trimChars)
    • split

      @NotNull static <T extends CharSequence> @NotNull T[] split(@NotNull T thizz, T[] emptyArray, @NotNull @NotNull CharSequence delimiter)
    • split

      @NotNull static <T extends CharSequence> @NotNull T[] split(@NotNull T thizz, T[] emptyArray, @NotNull @NotNull CharSequence delimiter, int limit, boolean includeDelims, @Nullable @Nullable CharPredicate trimChars)
    • split

      @NotNull static <T extends CharSequence> @NotNull T[] split(@NotNull T thizz, T[] emptyArray, @NotNull @NotNull CharSequence delimiter, int limit, int flags)
    • split

      @NotNull static <T extends CharSequence> @NotNull T[] split(@NotNull T thizz, T[] emptyArray, @NotNull @NotNull CharSequence delimiter, int limit, int flags, @Nullable @Nullable CharPredicate trimChars)
    • splitList

      @NotNull static <T extends CharSequence> @NotNull List<T> splitList(@NotNull T thizz, @NotNull @NotNull CharSequence delimiter, int limit, int flags, @Nullable @Nullable CharPredicate trimChars)
    • columnAtIndex

      static int columnAtIndex(@NotNull @NotNull CharSequence thizz, int index)
    • lineColumnAtIndex

      @NotNull static @NotNull Pair<Integer,Integer> lineColumnAtIndex(@NotNull @NotNull CharSequence thizz, int index)
    • validateIndex

      static void validateIndex(int index, int length)
    • validateIndexInclusiveEnd

      static void validateIndexInclusiveEnd(int index, int length)
    • validateStartEnd

      static void validateStartEnd(int startIndex, int endIndex, int length)
    • parseUnsignedIntOrNull

      static Integer parseUnsignedIntOrNull(String text)
    • parseUnsignedIntOrNull

      static Integer parseUnsignedIntOrNull(String text, int radix)
    • parseIntOrNull

      static Integer parseIntOrNull(String text)
    • parseIntOrNull

      static Integer parseIntOrNull(String text, int radix)
    • parseLongOrNull

      static Long parseLongOrNull(String text)
    • parseLongOrNull

      static Long parseLongOrNull(String text, int radix)
    • parseUnsignedIntOrDefault

      static int parseUnsignedIntOrDefault(String text, int defaultValue)
    • parseUnsignedIntOrDefault

      static int parseUnsignedIntOrDefault(String text, int defaultValue, int radix)
    • parseIntOrDefault

      static int parseIntOrDefault(String text, int defaultValue)
    • parseIntOrDefault

      static int parseIntOrDefault(String text, int defaultValue, int radix)
    • parseNumberOrNull

      @Nullable static @Nullable Number parseNumberOrNull(@Nullable @Nullable String text)
      Parse number from text

      Will parse 0x, 0b, octal if starts with 0, decimal

      Parameters:
      text - text containing the number to parse
      Returns:
      null or parsed number
    • parseNumberPrefixOrNull

      @Nullable static @Nullable Pair<Number,String> parseNumberPrefixOrNull(@Nullable @Nullable String text, @Nullable @Nullable Predicate<String> suffixTester)
      Parse number from text

      Will parse 0x, 0b, octal if starts with 0, decimal

      Parameters:
      text - text containing the number to parse
      suffixTester - predicate to test number suffix, if null or predicate returns true then sequence will be accepted as valid
      Returns:
      null or parsed number with unparsed suffix
    • containedBy

      static <T extends CharSequence> boolean containedBy(@NotNull @NotNull T[] items, @NotNull @NotNull CharSequence element)
    • containedBy

      static boolean containedBy(@NotNull @NotNull Collection<? extends CharSequence> items, @NotNull @NotNull CharSequence element)