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 Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final CharPredicate
Deprecated.static final CharPredicate
Deprecated.static final CharPredicate
Deprecated.static final int[]
static final char
static final String
static final char
static final char
static final char
static final String
Deprecated.static final CharPredicate
Deprecated.static final CharPredicate
Deprecated.static final CharPredicate
Deprecated.static final String
static final char
static final char
Deprecated.use new names insteadstatic final char
static final String
static final char
static final CharPredicate
Deprecated.static final String
static final String
static final CharPredicate
Deprecated.static final CharPredicate
Deprecated.use CharPredicate fields directlystatic final String
static final CharPredicate
Deprecated.static final CharPredicate
Deprecated.static final CharPredicate
Deprecated.static final char
static final int
static final int
static final int
static final int
static final int
static final CharPredicate
Deprecated.static final char
static final String
static final CharPredicate
Deprecated.static final String
static final String
Deprecated.static final String
static final String
Deprecated.static final CharPredicate
Deprecated.static final String
Deprecated.static final CharPredicate
Deprecated. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionblankLinesRemovedRanges
(@NotNull CharSequence thizz) blankLinesRemovedRanges
(@NotNull CharSequence thizz, int fromIndex) blankLinesRemovedRanges
(@NotNull CharSequence thizz, int fromIndex, int endIndex) blankLinesRemovedRanges
(@NotNull CharSequence thizz, @NotNull CharPredicate eolChars, int fromIndex, int endIndex) static int
columnAtIndex
(@NotNull CharSequence thizz, int index) static int
columnsToNextTabStop
(int column) static int
compare
(@Nullable CharSequence o1, @Nullable CharSequence o2) static int
compare
(@Nullable CharSequence o1, @Nullable CharSequence o2, boolean ignoreCase) static int
compare
(@Nullable CharSequence o1, @Nullable CharSequence o2, boolean ignoreCase, @Nullable CharPredicate ignoreChars) static int
compareReversed
(@Nullable CharSequence o1, @Nullable CharSequence o2) static boolean
containedBy
(@NotNull Collection<? extends CharSequence> items, @NotNull CharSequence element) static <T extends CharSequence>
booleancontainedBy
(T[] items, @NotNull CharSequence element) static boolean
containsAny
(@NotNull CharSequence thizz, @NotNull CharPredicate s) static boolean
containsAny
(@NotNull CharSequence thizz, @NotNull CharPredicate s, int index) static boolean
containsAnyNot
(@NotNull CharSequence thizz, @NotNull CharPredicate s) static boolean
containsAnyNot
(@NotNull CharSequence thizz, @NotNull CharPredicate s, int fromIndex) static boolean
containsAnyNot
(@NotNull CharSequence thizz, @NotNull CharPredicate s, int fromIndex, int endIndex) static int
countLeading
(@NotNull CharSequence thizz, @NotNull CharPredicate chars) static int
countLeading
(@NotNull CharSequence thizz, @NotNull CharPredicate chars, int fromIndex) static int
countLeading
(@NotNull CharSequence thizz, @NotNull CharPredicate chars, int fromIndex, int endIndex) static int
countLeadingColumns
(@NotNull CharSequence thizz, int startColumn, @NotNull CharPredicate chars) static int
countLeadingNot
(@NotNull CharSequence thizz, @NotNull CharPredicate chars) static int
countLeadingNot
(@NotNull CharSequence thizz, @NotNull CharPredicate chars, int fromIndex) static int
countLeadingNot
(@NotNull CharSequence thizz, @NotNull CharPredicate chars, int startIndex, int endIndex) static int
countLeadingNotSpace
(@NotNull CharSequence thizz) static int
countLeadingNotSpace
(@NotNull CharSequence thizz, int startIndex) static int
countLeadingNotSpace
(@NotNull CharSequence thizz, int startIndex, int endIndex) static int
countLeadingNotSpaceTab
(@NotNull CharSequence thizz) static int
countLeadingNotSpaceTab
(@NotNull CharSequence thizz, int startIndex) static int
countLeadingNotSpaceTab
(@NotNull CharSequence thizz, int startIndex, int endIndex) static int
countLeadingNotWhitespace
(@NotNull CharSequence thizz) static int
countLeadingNotWhitespace
(@NotNull CharSequence thizz, int startIndex) static int
countLeadingNotWhitespace
(@NotNull CharSequence thizz, int startIndex, int endIndex) static int
countLeadingSpace
(@NotNull CharSequence thizz) static int
countLeadingSpace
(@NotNull CharSequence thizz, int startIndex) static int
countLeadingSpace
(@NotNull CharSequence thizz, int startIndex, int endIndex) static int
countLeadingSpaceTab
(@NotNull CharSequence thizz) static int
countLeadingSpaceTab
(@NotNull CharSequence thizz, int startIndex) static int
countLeadingSpaceTab
(@NotNull CharSequence thizz, int startIndex, int endIndex) static int
countLeadingWhitespace
(@NotNull CharSequence thizz) static int
countLeadingWhitespace
(@NotNull CharSequence thizz, int startIndex) static int
countLeadingWhitespace
(@NotNull CharSequence thizz, int startIndex, int endIndex) static int
countOfAny
(@NotNull CharSequence thizz, @NotNull CharPredicate chars) static int
countOfAny
(@NotNull CharSequence thizz, @NotNull CharPredicate chars, int fromIndex) static int
countOfAny
(@NotNull CharSequence thizz, @NotNull CharPredicate s, int fromIndex, int endIndex) static int
countOfAnyNot
(@NotNull CharSequence thizz, @NotNull CharPredicate chars) static int
countOfAnyNot
(@NotNull CharSequence thizz, @NotNull CharPredicate chars, int fromIndex) static int
countOfAnyNot
(@NotNull CharSequence thizz, @NotNull CharPredicate chars, int fromIndex, int endIndex) static int
countOfNotSpaceTab
(@NotNull CharSequence thizz) static int
countOfNotWhitespace
(@NotNull CharSequence thizz) static int
countOfSpaceTab
(@NotNull CharSequence thizz) static int
countOfWhitespace
(@NotNull CharSequence thizz) static int
countTrailing
(@NotNull CharSequence thizz, @NotNull CharPredicate chars) static int
countTrailing
(@NotNull CharSequence thizz, @NotNull CharPredicate chars, int fromIndex) static int
countTrailing
(@NotNull CharSequence thizz, @NotNull CharPredicate chars, int startIndex, int fromIndex) static int
countTrailingNot
(@NotNull CharSequence thizz, @NotNull CharPredicate chars) static int
countTrailingNot
(@NotNull CharSequence thizz, @NotNull CharPredicate chars, int fromIndex) static int
countTrailingNot
(@NotNull CharSequence thizz, @NotNull CharPredicate chars, int startIndex, int endIndex) static int
countTrailingNotSpace
(@NotNull CharSequence thizz) static int
countTrailingNotSpace
(@NotNull CharSequence thizz, int fromIndex) static int
countTrailingNotSpace
(@NotNull CharSequence thizz, int startIndex, int fromIndex) static int
countTrailingNotSpaceTab
(@NotNull CharSequence thizz) static int
countTrailingNotSpaceTab
(@NotNull CharSequence thizz, int fromIndex) static int
countTrailingNotSpaceTab
(@NotNull CharSequence thizz, int startIndex, int fromIndex) static int
countTrailingNotWhitespace
(@NotNull CharSequence thizz) static int
countTrailingNotWhitespace
(@NotNull CharSequence thizz, int fromIndex) static int
countTrailingNotWhitespace
(@NotNull CharSequence thizz, int startIndex, int fromIndex) static int
countTrailingSpace
(@NotNull CharSequence thizz) static int
countTrailingSpace
(@NotNull CharSequence thizz, int fromIndex) static int
countTrailingSpace
(@NotNull CharSequence thizz, int startIndex, int fromIndex) static int
countTrailingSpaceTab
(@NotNull CharSequence thizz) static int
countTrailingSpaceTab
(@NotNull CharSequence thizz, int fromIndex) static int
countTrailingSpaceTab
(@NotNull CharSequence thizz, int startIndex, int fromIndex) static int
countTrailingWhitespace
(@NotNull CharSequence thizz) static int
countTrailingWhitespace
(@NotNull CharSequence thizz, int fromIndex) static int
countTrailingWhitespace
(@NotNull CharSequence thizz, int startIndex, int fromIndex) static int
endOfDelimitedBy
(@NotNull CharSequence thizz, @NotNull CharSequence s, int index) static int
endOfDelimitedByAny
(@NotNull CharSequence thizz, @NotNull CharPredicate s, int index) static int
endOfDelimitedByAnyNot
(@NotNull CharSequence thizz, @NotNull CharPredicate s, int index) static int
endOfLine
(@NotNull CharSequence thizz, int index) static int
endOfLineAnyEOL
(@NotNull CharSequence thizz, int index) static boolean
endsWith
(@NotNull CharSequence thizz, @NotNull CharPredicate chars) static boolean
endsWith
(@NotNull CharSequence thizz, @NotNull CharSequence suffix) static boolean
endsWith
(@NotNull CharSequence thizz, @NotNull CharSequence suffix, boolean ignoreCase) static boolean
endsWithAnyEOL
(@NotNull CharSequence thizz) static boolean
endsWithEOL
(@NotNull CharSequence thizz) static boolean
endsWithSpace
(@NotNull CharSequence thizz) static boolean
endsWithSpaceTab
(@NotNull CharSequence thizz) static boolean
endsWithWhitespace
(@NotNull CharSequence thizz) static int
eolEndLength
(@NotNull CharSequence thizz) static int
eolEndLength
(@NotNull CharSequence thizz, int eolEnd) static @NotNull Range
eolEndRange
(@NotNull CharSequence thizz, int eolEnd) static int
eolStartLength
(@NotNull CharSequence thizz, int eolStart) static @NotNull Range
eolStartRange
(@NotNull CharSequence thizz, int eolStart) static boolean
equals
(@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 equalstatic @org.jetbrains.annotations.NotNull int[]
expandTo
(@org.jetbrains.annotations.NotNull int[] indices, int length, int step) static char
firstChar
(@NotNull CharSequence thizz) static int
hashCode
(@NotNull CharSequence thizz) static int
indexOf
(@NotNull CharSequence thizz, char c) static int
indexOf
(@NotNull CharSequence thizz, char c, int fromIndex) static int
indexOf
(@NotNull CharSequence thizz, char c, int fromIndex, int endIndex) static int
indexOf
(@NotNull CharSequence thizz, @NotNull CharSequence s) static int
indexOf
(@NotNull CharSequence thizz, @NotNull CharSequence s, int fromIndex) static int
indexOf
(@NotNull CharSequence thizz, @NotNull CharSequence s, int fromIndex, int endIndex) static @org.jetbrains.annotations.NotNull int[]
indexOfAll
(@NotNull CharSequence thizz, @NotNull CharSequence s) static int
indexOfAny
(@NotNull CharSequence thizz, @NotNull CharPredicate s) static int
indexOfAny
(@NotNull CharSequence thizz, @NotNull CharPredicate s, int index) static int
indexOfAny
(@NotNull CharSequence thizz, @NotNull CharPredicate s, int fromIndex, int endIndex) static int
indexOfAnyNot
(@NotNull CharSequence thizz, @NotNull CharPredicate s) static int
indexOfAnyNot
(@NotNull CharSequence thizz, @NotNull CharPredicate s, int fromIndex) static int
indexOfAnyNot
(@NotNull CharSequence thizz, @NotNull CharPredicate s, int fromIndex, int endIndex) static int
indexOfNot
(@NotNull CharSequence thizz, char c) static int
indexOfNot
(@NotNull CharSequence thizz, char c, int fromIndex) static int
indexOfNot
(@NotNull CharSequence thizz, char c, int fromIndex, int endIndex) static boolean
isBlank
(@NotNull CharSequence thizz) static boolean
isEmpty
(@NotNull CharSequence thizz) static boolean
isNotBlank
(@NotNull CharSequence thizz) static boolean
isNotEmpty
(@NotNull CharSequence thizz) static boolean
isVisibleWhitespace
(char c) static char
lastChar
(@NotNull CharSequence thizz) static int
lastIndexOf
(@NotNull CharSequence thizz, char c) static int
lastIndexOf
(@NotNull CharSequence thizz, char c, int fromIndex) static int
lastIndexOf
(@NotNull CharSequence thizz, char c, int startIndex, int fromIndex) static int
lastIndexOf
(@NotNull CharSequence thizz, @NotNull CharSequence s) static int
lastIndexOf
(@NotNull CharSequence thizz, @NotNull CharSequence s, int fromIndex) static int
lastIndexOf
(@NotNull CharSequence thizz, @NotNull CharSequence s, int startIndex, int fromIndex) static int
lastIndexOfAny
(@NotNull CharSequence thizz, @NotNull CharPredicate s) static int
lastIndexOfAny
(@NotNull CharSequence thizz, @NotNull CharPredicate s, int fromIndex) static int
lastIndexOfAny
(@NotNull CharSequence thizz, @NotNull CharPredicate s, int startIndex, int fromIndex) static int
lastIndexOfAnyNot
(@NotNull CharSequence thizz, @NotNull CharPredicate s) static int
lastIndexOfAnyNot
(@NotNull CharSequence thizz, @NotNull CharPredicate s, int fromIndex) static int
lastIndexOfAnyNot
(@NotNull CharSequence thizz, @NotNull CharPredicate s, int startIndex, int fromIndex) static int
lastIndexOfNot
(@NotNull CharSequence thizz, char c) static int
lastIndexOfNot
(@NotNull CharSequence thizz, char c, int fromIndex) static int
lastIndexOfNot
(@NotNull CharSequence thizz, char c, int startIndex, int fromIndex) static @NotNull Range
leadingBlankLinesRange
(@NotNull CharSequence thizz) static @NotNull Range
leadingBlankLinesRange
(@NotNull CharSequence thizz, int startIndex) static @NotNull Range
leadingBlankLinesRange
(@NotNull CharSequence thizz, int fromIndex, int endIndex) static @NotNull Range
leadingBlankLinesRange
(@NotNull CharSequence thizz, @NotNull CharPredicate eolChars, int fromIndex, int endIndex) lineColumnAtIndex
(@NotNull CharSequence thizz, int index) static @NotNull Range
lineRangeAt
(@NotNull CharSequence thizz, int index) static @NotNull Range
lineRangeAtAnyEOL
(@NotNull CharSequence thizz, int index) static boolean
matchChars
(@NotNull CharSequence thizz, @NotNull CharSequence chars) static boolean
matchChars
(@NotNull CharSequence thizz, @NotNull CharSequence chars, boolean ignoreCase) static boolean
matchChars
(@NotNull CharSequence thizz, @NotNull CharSequence chars, int startIndex) static boolean
matchChars
(@NotNull CharSequence thizz, @NotNull CharSequence chars, int startIndex, boolean ignoreCase) static boolean
matchCharsIgnoreCase
(@NotNull CharSequence thizz, @NotNull CharSequence chars) static boolean
matchCharsIgnoreCase
(@NotNull CharSequence thizz, @NotNull CharSequence chars, int startIndex) static boolean
matchCharsReversed
(@NotNull CharSequence thizz, @NotNull CharSequence chars, int endIndex) static boolean
matchCharsReversed
(@NotNull CharSequence thizz, @NotNull CharSequence chars, int endIndex, boolean ignoreCase) static boolean
matchCharsReversedIgnoreCase
(@NotNull CharSequence thizz, @NotNull CharSequence chars, int endIndex) static int
matchedCharCount
(@NotNull CharSequence thizz, @NotNull CharSequence chars, int startIndex) static int
matchedCharCount
(@NotNull CharSequence thizz, @NotNull CharSequence chars, int startIndex, boolean ignoreCase) static int
matchedCharCount
(@NotNull CharSequence thizz, @NotNull CharSequence chars, int startIndex, int endIndex) static int
matchedCharCount
(@NotNull CharSequence thizz, @NotNull CharSequence chars, int startIndex, int endIndex, boolean ignoreCase) static int
matchedCharCount
(@NotNull CharSequence thizz, @NotNull CharSequence chars, int startIndex, int endIndex, boolean fullMatchOnly, boolean ignoreCase) static int
matchedCharCountIgnoreCase
(@NotNull CharSequence thizz, @NotNull CharSequence chars, int startIndex) static int
matchedCharCountIgnoreCase
(@NotNull CharSequence thizz, @NotNull CharSequence chars, int startIndex, int endIndex) static int
matchedCharCountReversed
(@NotNull CharSequence thizz, @NotNull CharSequence chars, int fromIndex) static int
matchedCharCountReversed
(@NotNull CharSequence thizz, @NotNull CharSequence chars, int fromIndex, boolean ignoreCase) static int
matchedCharCountReversed
(@NotNull CharSequence thizz, @NotNull CharSequence chars, int startIndex, int fromIndex) static int
matchedCharCountReversed
(@NotNull CharSequence thizz, @NotNull CharSequence chars, int startIndex, int fromIndex, boolean ignoreCase) static int
matchedCharCountReversedIgnoreCase
(@NotNull CharSequence thizz, @NotNull CharSequence chars, int fromIndex) static int
matchedCharCountReversedIgnoreCase
(@NotNull CharSequence thizz, @NotNull CharSequence chars, int startIndex, int fromIndex) static boolean
matches
(@NotNull CharSequence thizz, @NotNull CharSequence chars) static boolean
matches
(@NotNull CharSequence thizz, @NotNull CharSequence chars, boolean ignoreCase) static boolean
matchesIgnoreCase
(@NotNull CharSequence thizz, @NotNull CharSequence chars) static @NotNull String
padEnd
(@NotNull CharSequence thizz, int length) static @NotNull String
padEnd
(@NotNull CharSequence thizz, int length, char pad) static @NotNull String
padStart
(@NotNull CharSequence thizz, int length) static @NotNull String
padStart
(@NotNull CharSequence thizz, int length, char pad) static int
parseIntOrDefault
(String text, int defaultValue) static int
parseIntOrDefault
(String text, int defaultValue, int radix) static Integer
parseIntOrNull
(String text) static Integer
parseIntOrNull
(String text, int radix) static Long
parseLongOrNull
(String text) static Long
parseLongOrNull
(String text, int radix) static @Nullable Number
parseNumberOrNull
(@Nullable String text) Parse number from textparseNumberPrefixOrNull
(@Nullable String text, @Nullable Predicate<String> suffixTester) Parse number from textstatic int
parseUnsignedIntOrDefault
(String text, int defaultValue) static int
parseUnsignedIntOrDefault
(String text, int defaultValue, int radix) static Integer
parseUnsignedIntOrNull
(String text) static Integer
parseUnsignedIntOrNull
(String text, int radix) static char
safeCharAt
(@NotNull CharSequence thizz, int index) static <T extends CharSequence>
T[]split
(T thizz, T[] emptyArray, @NotNull CharSequence delimiter) static <T extends CharSequence>
T[]split
(T thizz, T[] emptyArray, @NotNull CharSequence delimiter, boolean includeDelims, @Nullable CharPredicate trimChars) static <T extends CharSequence>
T[]split
(T thizz, T[] emptyArray, @NotNull CharSequence delimiter, int limit, boolean includeDelims, @Nullable CharPredicate trimChars) static <T extends CharSequence>
T[]split
(T thizz, T[] emptyArray, @NotNull CharSequence delimiter, int limit, int flags) static <T extends CharSequence>
T[]split
(T thizz, T[] emptyArray, @NotNull CharSequence delimiter, int limit, int flags, @Nullable CharPredicate trimChars) static <T extends CharSequence>
T[]splitEOL
(T thizz, T[] emptyArray) static <T extends CharSequence>
T[]splitEOL
(T thizz, T[] emptyArray, boolean includeDelims) static <T extends CharSequence>
@NotNull List<T> splitList
(T thizz, @NotNull CharSequence delimiter) static <T extends CharSequence>
@NotNull List<T> splitList
(T thizz, @NotNull CharSequence delimiter, boolean includeDelims, @Nullable CharPredicate trimChars) static <T extends CharSequence>
@NotNull List<T> splitList
(T thizz, @NotNull CharSequence delimiter, int limit, boolean includeDelims, @Nullable CharPredicate trimChars) static <T extends CharSequence>
@NotNull List<T> splitList
(T thizz, @NotNull CharSequence delimiter, int limit, int flags) static <T extends CharSequence>
@NotNull List<T> splitList
(T thizz, @NotNull CharSequence delimiter, int limit, int flags, @Nullable CharPredicate trimChars) static <T extends CharSequence>
@NotNull List<T> splitListEOL
(T thizz) static <T extends CharSequence>
@NotNull List<T> splitListEOL
(T thizz, boolean includeDelims) static <T extends CharSequence>
@NotNull List<T> splitListEOL
(T thizz, boolean includeDelims, @Nullable CharPredicate trimChars) static int
startOfDelimitedBy
(@NotNull CharSequence thizz, @NotNull CharSequence s, int index) static int
startOfDelimitedByAny
(@NotNull CharSequence thizz, @NotNull CharPredicate s, int index) static int
startOfDelimitedByAnyNot
(@NotNull CharSequence thizz, @NotNull CharPredicate s, int index) static int
startOfLine
(@NotNull CharSequence thizz, int index) static int
startOfLineAnyEOL
(@NotNull CharSequence thizz, int index) static boolean
startsWith
(@NotNull CharSequence thizz, @NotNull CharPredicate chars) static boolean
startsWith
(@NotNull CharSequence thizz, @NotNull CharSequence prefix) static boolean
startsWith
(@NotNull CharSequence thizz, @NotNull CharSequence prefix, boolean ignoreCase) static boolean
startsWithAnyEOL
(@NotNull CharSequence thizz) static boolean
startsWithEOL
(@NotNull CharSequence thizz) static boolean
startsWithSpace
(@NotNull CharSequence thizz) static boolean
startsWithSpaceTab
(@NotNull CharSequence thizz) static boolean
startsWithWhitespace
(@NotNull CharSequence thizz) static <T extends CharSequence>
TsubSequence
(T thizz, int startIndex) static <T extends CharSequence>
TsubSequence
(T thizz, @NotNull Range range) Get a portion of this sequence selected by rangestatic <T extends CharSequence>
TsubSequenceAfter
(T thizz, @NotNull Range range) Get a portion of this sequence after one selected by rangestatic <T extends CharSequence>
TsubSequenceBefore
(T thizz, @NotNull Range range) Get a portion of this sequence before one selected by rangestatic <T extends CharSequence>
@NotNull Pair<T, T> subSequenceBeforeAfter
(T thizz, Range range) Get a portions of this sequence before and after one selected by rangestatic @NotNull String[]
toStringArray
(CharSequence... sequences) static @NotNull String
toVisibleWhitespaceString
(@NotNull CharSequence thizz) static @NotNull Range
trailingBlankLinesRange
(@NotNull CharSequence thizz) static @NotNull Range
trailingBlankLinesRange
(@NotNull CharSequence thizz, int fromIndex) static @NotNull Range
trailingBlankLinesRange
(@NotNull CharSequence thizz, int startIndex, int fromIndex) static @NotNull Range
trailingBlankLinesRange
(@NotNull CharSequence thizz, @NotNull CharPredicate eolChars, int startIndex, int fromIndex) static <T extends CharSequence>
Ttrim
(T thizz) static <T extends CharSequence>
Ttrim
(T thizz, int keep) static <T extends CharSequence>
Ttrim
(T thizz, int keep, @NotNull CharPredicate chars) static <T extends CharSequence>
Ttrim
(T thizz, @NotNull CharPredicate chars) static <T extends CharSequence>
TtrimEnd
(T thizz) static <T extends CharSequence>
TtrimEnd
(T thizz, int keep) static <T extends CharSequence>
TtrimEnd
(T thizz, int keep, @NotNull CharPredicate chars) static <T extends CharSequence>
TtrimEnd
(T thizz, @NotNull CharPredicate chars) static Range
trimEndRange
(@NotNull CharSequence thizz) static Range
trimEndRange
(@NotNull CharSequence thizz, int keep) static @NotNull Range
trimEndRange
(@NotNull CharSequence thizz, int keep, @NotNull CharPredicate chars) static Range
trimEndRange
(@NotNull CharSequence thizz, @NotNull CharPredicate chars) static <T extends CharSequence>
TtrimEOL
(T thizz) static <T extends CharSequence>
TtrimLeadBlankLines
(T thizz) static <T extends CharSequence>
@NotNull Pair<T, T> trimmed
(T thizz) static <T extends CharSequence>
@NotNull Pair<T, T> trimmed
(T thizz, int keep) static <T extends CharSequence>
@NotNull Pair<T, T> trimmed
(T thizz, int keep, @NotNull CharPredicate chars) static <T extends CharSequence>
@NotNull Pair<T, T> trimmed
(T thizz, @NotNull CharPredicate chars) static <T extends CharSequence>
TtrimmedEnd
(T thizz) static <T extends CharSequence>
TtrimmedEnd
(T thizz, int keep) static <T extends CharSequence>
TtrimmedEnd
(T thizz, int keep, @NotNull CharPredicate chars) static <T extends CharSequence>
TtrimmedEnd
(T thizz, @NotNull CharPredicate chars) static <T extends CharSequence>
TtrimmedEOL
(T thizz) static <T extends CharSequence>
TtrimmedStart
(T thizz) static <T extends CharSequence>
TtrimmedStart
(T thizz, int keep) static <T extends CharSequence>
TtrimmedStart
(T thizz, int keep, @NotNull CharPredicate chars) static <T extends CharSequence>
TtrimmedStart
(T thizz, @NotNull CharPredicate chars) static Range
trimRange
(@NotNull CharSequence thizz) static Range
trimRange
(@NotNull CharSequence thizz, int keep) static @NotNull Range
trimRange
(@NotNull CharSequence thizz, int keep, @NotNull CharPredicate chars) static Range
trimRange
(@NotNull CharSequence thizz, @NotNull CharPredicate chars) static <T extends CharSequence>
TtrimStart
(T thizz) static <T extends CharSequence>
TtrimStart
(T thizz, int keep) static <T extends CharSequence>
TtrimStart
(T thizz, int keep, @NotNull CharPredicate chars) static <T extends CharSequence>
TtrimStart
(T thizz, @NotNull CharPredicate chars) static Range
trimStartRange
(@NotNull CharSequence thizz) static Range
trimStartRange
(@NotNull CharSequence thizz, int keep) static @NotNull Range
trimStartRange
(@NotNull CharSequence thizz, int keep, @NotNull CharPredicate chars) static Range
trimStartRange
(@NotNull CharSequence thizz, @NotNull CharPredicate chars) static <T extends CharSequence>
TtrimTailBlankLines
(T thizz) static @org.jetbrains.annotations.NotNull int[]
truncateTo
(@org.jetbrains.annotations.NotNull int[] indices, int length) static void
validateIndex
(int index, int length) static void
validateIndexInclusiveEnd
(int index, int length) static void
validateStartEnd
(int startIndex, int endIndex, int length)
-
Field Details
-
EOL
- See Also:
-
SPACE
- See Also:
-
ANY_EOL
- See Also:
-
EOL_CHAR
static final char EOL_CHAR -
EOL_CHAR1
static final char EOL_CHAR1 -
EOL_CHAR2
static final char EOL_CHAR2 -
SPC
static final char SPC- See Also:
-
NUL
static final char NUL- See Also:
-
ENC_NUL
static final char ENC_NUL- See Also:
-
NBSP
static final char NBSP- See Also:
-
LS
static final char LS- See Also:
-
US
static final char US- See Also:
-
LINE_SEP
-
SPACE_TAB
- See Also:
-
SPACE_EOL
- See Also:
-
US_CHARS
-
WHITESPACE
- See Also:
-
NBSP_CHARS
-
WHITESPACE_NBSP
- See Also:
-
SPACE_SET
Deprecated.use CharPredicate fields directly -
TAB_SET
Deprecated. -
EOL_SET
Deprecated. -
SPACE_TAB_SET
Deprecated. -
SPACE_TAB_NBSP_SET
Deprecated. -
SPACE_TAB_EOL_SET
Deprecated. -
SPACE_EOL_SET
Deprecated. -
ANY_EOL_SET
Deprecated. -
WHITESPACE_SET
Deprecated. -
WHITESPACE_NBSP_SET
Deprecated. -
BACKSLASH_SET
Deprecated. -
US_SET
Deprecated. -
HASH_SET
Deprecated. -
DECIMAL_DIGITS
Deprecated. -
HEXADECIMAL_DIGITS
Deprecated. -
OCTAL_DIGITS
Deprecated. -
LSEP
Deprecated.use new names instead- See Also:
-
EOL_CHARS
Deprecated.- See Also:
-
WHITESPACE_NO_EOL_CHARS
Deprecated.- See Also:
-
WHITESPACE_CHARS
Deprecated.- See Also:
-
WHITESPACE_NBSP_CHARS
Deprecated.- See Also:
-
SPLIT_INCLUDE_DELIMS
static final int SPLIT_INCLUDE_DELIMS- See Also:
-
SPLIT_TRIM_PARTS
static final int SPLIT_TRIM_PARTS- See Also:
-
SPLIT_SKIP_EMPTY
static final int SPLIT_SKIP_EMPTY- See Also:
-
SPLIT_INCLUDE_DELIM_PARTS
static final int SPLIT_INCLUDE_DELIM_PARTS- See Also:
-
SPLIT_TRIM_SKIP_EMPTY
static final int SPLIT_TRIM_SKIP_EMPTY- See Also:
-
visibleSpacesMap
-
EMPTY_INDICES
static final int[] EMPTY_INDICES
-
-
Method Details
-
getVisibleSpacesMap
-
subSequence
-
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 sequencerange
- 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 sequencerange
- 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 sequencerange
- 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 sequencerange
- 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
-
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
-
indexOf
static int indexOf(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence s, int fromIndex) -
indexOf
-
indexOf
-
indexOfAny
-
indexOfAny
static int indexOfAny(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate s, int index) -
indexOfAnyNot
-
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
-
indexOfNot
-
lastIndexOf
-
lastIndexOf
static int lastIndexOf(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence s, int fromIndex) -
lastIndexOf
-
lastIndexOf
-
lastIndexOfAny
-
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
-
lastIndexOfNot
-
indexOf
-
indexOf
static int indexOf(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharSequence s, int fromIndex, int endIndex) -
lastIndexOf
-
indexOfNot
-
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 equalityo
- any character sequence- Returns:
- true if character contents are equal
-
hashCode
-
compareReversed
static int compareReversed(@Nullable @Nullable CharSequence o1, @Nullable @Nullable CharSequence o2) -
compare
-
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
-
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
-
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
-
countOfNotSpaceTab
-
countOfWhitespace
-
countOfNotWhitespace
-
countOfAny
static int countOfAny(@NotNull @NotNull CharSequence thizz, @NotNull @NotNull CharPredicate chars, int fromIndex) -
countOfAny
-
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
-
countLeadingSpace
-
countLeadingSpace
-
countLeadingNotSpace
-
countLeadingNotSpace
-
countLeadingNotSpace
-
countTrailingSpace
-
countTrailingSpace
-
countTrailingSpace
-
countTrailingNotSpace
-
countTrailingNotSpace
-
countTrailingNotSpace
static int countTrailingNotSpace(@NotNull @NotNull CharSequence thizz, int startIndex, int fromIndex) -
countLeadingSpaceTab
-
countLeadingSpaceTab
-
countLeadingSpaceTab
-
countLeadingNotSpaceTab
-
countLeadingNotSpaceTab
-
countLeadingNotSpaceTab
static int countLeadingNotSpaceTab(@NotNull @NotNull CharSequence thizz, int startIndex, int endIndex) -
countTrailingSpaceTab
-
countTrailingSpaceTab
-
countTrailingSpaceTab
static int countTrailingSpaceTab(@NotNull @NotNull CharSequence thizz, int startIndex, int fromIndex) -
countTrailingNotSpaceTab
-
countTrailingNotSpaceTab
-
countTrailingNotSpaceTab
static int countTrailingNotSpaceTab(@NotNull @NotNull CharSequence thizz, int startIndex, int fromIndex) -
countLeadingWhitespace
-
countLeadingWhitespace
-
countLeadingWhitespace
static int countLeadingWhitespace(@NotNull @NotNull CharSequence thizz, int startIndex, int endIndex) -
countLeadingNotWhitespace
-
countLeadingNotWhitespace
-
countLeadingNotWhitespace
static int countLeadingNotWhitespace(@NotNull @NotNull CharSequence thizz, int startIndex, int endIndex) -
countTrailingWhitespace
-
countTrailingWhitespace
-
countTrailingWhitespace
static int countTrailingWhitespace(@NotNull @NotNull CharSequence thizz, int startIndex, int fromIndex) -
countTrailingNotWhitespace
-
countTrailingNotWhitespace
-
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
-
trimmedStart
-
trimEnd
-
trimmedEnd
-
trim
-
trimmed
-
trimStart
-
trimmedStart
-
trimEnd
-
trimmedEnd
-
trim
-
trimmed
-
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
-
trimStartRange
-
trimEndRange
-
trimRange
-
trimStartRange
-
trimEndRange
-
trimRange
-
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
-
padStart
-
padEnd
-
toVisibleWhitespaceString
-
lastChar
-
firstChar
-
safeCharAt
-
eolEndLength
-
eolEndLength
-
eolStartLength
-
endOfLine
-
endOfLineAnyEOL
-
startOfLine
-
startOfLineAnyEOL
-
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
-
lineRangeAtAnyEOL
-
eolEndRange
-
eolStartRange
-
trimEOL
-
trimmedEOL
-
trimTailBlankLines
-
trimLeadBlankLines
-
leadingBlankLinesRange
-
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
-
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
-
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
-
isBlank
-
isNotEmpty
-
isNotBlank
-
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
-
endsWithAnyEOL
-
endsWithSpace
-
endsWithSpaceTab
-
endsWithWhitespace
-
startsWithEOL
-
startsWithAnyEOL
-
startsWithSpace
-
startsWithSpaceTab
-
startsWithWhitespace
-
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
-
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
-
splitEOL
@NotNull static <T extends CharSequence> T[] splitEOL(@NotNull T thizz, T[] emptyArray, boolean includeDelims) -
split
@NotNull static <T extends CharSequence> T[] split(@NotNull T thizz, T[] emptyArray, @NotNull @NotNull CharSequence delimiter, boolean includeDelims, @Nullable @Nullable CharPredicate trimChars) -
split
@NotNull static <T extends CharSequence> T[] split(@NotNull T thizz, T[] emptyArray, @NotNull @NotNull CharSequence delimiter) -
split
@NotNull static <T extends CharSequence> 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> T[] split(@NotNull T thizz, T[] emptyArray, @NotNull @NotNull CharSequence delimiter, int limit, int flags) -
split
@NotNull static <T extends CharSequence> 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
-
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
-
parseUnsignedIntOrNull
-
parseIntOrNull
-
parseIntOrNull
-
parseLongOrNull
-
parseLongOrNull
-
parseUnsignedIntOrDefault
-
parseUnsignedIntOrDefault
-
parseIntOrDefault
-
parseIntOrDefault
-
parseNumberOrNull
Parse number from textWill 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 textWill parse 0x, 0b, octal if starts with 0, decimal
- Parameters:
text
- text containing the number to parsesuffixTester
- 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 T[] items, @NotNull @NotNull CharSequence element) -
containedBy
static boolean containedBy(@NotNull @NotNull Collection<? extends CharSequence> items, @NotNull @NotNull CharSequence element)
-