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 Stringstatic final CharPredicateDeprecated.static final CharPredicateDeprecated.static final CharPredicateDeprecated.static final int[]static final charstatic final Stringstatic final charstatic final charstatic final charstatic final StringDeprecated.static final CharPredicateDeprecated.static final CharPredicateDeprecated.static final CharPredicateDeprecated.static final Stringstatic final charstatic final charDeprecated.use new names insteadstatic final charstatic final Stringstatic final charstatic final CharPredicateDeprecated.static final Stringstatic final Stringstatic final CharPredicateDeprecated.static final CharPredicateDeprecated.use CharPredicate fields directlystatic final Stringstatic final CharPredicateDeprecated.static final CharPredicateDeprecated.static final CharPredicateDeprecated.static final charstatic final intstatic final intstatic final intstatic final intstatic final intstatic final CharPredicateDeprecated.static final charstatic final Stringstatic final CharPredicateDeprecated.static final Stringstatic final StringDeprecated.static final Stringstatic final StringDeprecated.static final CharPredicateDeprecated.static final StringDeprecated.static final CharPredicateDeprecated. -
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 intcolumnAtIndex(@NotNull CharSequence thizz, int index) static intcolumnsToNextTabStop(int column) static intcompare(@Nullable CharSequence o1, @Nullable CharSequence o2) static intcompare(@Nullable CharSequence o1, @Nullable CharSequence o2, boolean ignoreCase) static intcompare(@Nullable CharSequence o1, @Nullable CharSequence o2, boolean ignoreCase, @Nullable CharPredicate ignoreChars) static intcompareReversed(@Nullable CharSequence o1, @Nullable CharSequence o2) static booleancontainedBy(@NotNull Collection<? extends CharSequence> items, @NotNull CharSequence element) static <T extends CharSequence>
booleancontainedBy(T[] items, @NotNull CharSequence element) static booleancontainsAny(@NotNull CharSequence thizz, @NotNull CharPredicate s) static booleancontainsAny(@NotNull CharSequence thizz, @NotNull CharPredicate s, int index) static booleancontainsAnyNot(@NotNull CharSequence thizz, @NotNull CharPredicate s) static booleancontainsAnyNot(@NotNull CharSequence thizz, @NotNull CharPredicate s, int fromIndex) static booleancontainsAnyNot(@NotNull CharSequence thizz, @NotNull CharPredicate s, int fromIndex, int endIndex) static intcountLeading(@NotNull CharSequence thizz, @NotNull CharPredicate chars) static intcountLeading(@NotNull CharSequence thizz, @NotNull CharPredicate chars, int fromIndex) static intcountLeading(@NotNull CharSequence thizz, @NotNull CharPredicate chars, int fromIndex, int endIndex) static intcountLeadingColumns(@NotNull CharSequence thizz, int startColumn, @NotNull CharPredicate chars) static intcountLeadingNot(@NotNull CharSequence thizz, @NotNull CharPredicate chars) static intcountLeadingNot(@NotNull CharSequence thizz, @NotNull CharPredicate chars, int fromIndex) static intcountLeadingNot(@NotNull CharSequence thizz, @NotNull CharPredicate chars, int startIndex, int endIndex) static intcountLeadingNotSpace(@NotNull CharSequence thizz) static intcountLeadingNotSpace(@NotNull CharSequence thizz, int startIndex) static intcountLeadingNotSpace(@NotNull CharSequence thizz, int startIndex, int endIndex) static intcountLeadingNotSpaceTab(@NotNull CharSequence thizz) static intcountLeadingNotSpaceTab(@NotNull CharSequence thizz, int startIndex) static intcountLeadingNotSpaceTab(@NotNull CharSequence thizz, int startIndex, int endIndex) static intcountLeadingNotWhitespace(@NotNull CharSequence thizz) static intcountLeadingNotWhitespace(@NotNull CharSequence thizz, int startIndex) static intcountLeadingNotWhitespace(@NotNull CharSequence thizz, int startIndex, int endIndex) static intcountLeadingSpace(@NotNull CharSequence thizz) static intcountLeadingSpace(@NotNull CharSequence thizz, int startIndex) static intcountLeadingSpace(@NotNull CharSequence thizz, int startIndex, int endIndex) static intcountLeadingSpaceTab(@NotNull CharSequence thizz) static intcountLeadingSpaceTab(@NotNull CharSequence thizz, int startIndex) static intcountLeadingSpaceTab(@NotNull CharSequence thizz, int startIndex, int endIndex) static intcountLeadingWhitespace(@NotNull CharSequence thizz) static intcountLeadingWhitespace(@NotNull CharSequence thizz, int startIndex) static intcountLeadingWhitespace(@NotNull CharSequence thizz, int startIndex, int endIndex) static intcountOfAny(@NotNull CharSequence thizz, @NotNull CharPredicate chars) static intcountOfAny(@NotNull CharSequence thizz, @NotNull CharPredicate chars, int fromIndex) static intcountOfAny(@NotNull CharSequence thizz, @NotNull CharPredicate s, int fromIndex, int endIndex) static intcountOfAnyNot(@NotNull CharSequence thizz, @NotNull CharPredicate chars) static intcountOfAnyNot(@NotNull CharSequence thizz, @NotNull CharPredicate chars, int fromIndex) static intcountOfAnyNot(@NotNull CharSequence thizz, @NotNull CharPredicate chars, int fromIndex, int endIndex) static intcountOfNotSpaceTab(@NotNull CharSequence thizz) static intcountOfNotWhitespace(@NotNull CharSequence thizz) static intcountOfSpaceTab(@NotNull CharSequence thizz) static intcountOfWhitespace(@NotNull CharSequence thizz) static intcountTrailing(@NotNull CharSequence thizz, @NotNull CharPredicate chars) static intcountTrailing(@NotNull CharSequence thizz, @NotNull CharPredicate chars, int fromIndex) static intcountTrailing(@NotNull CharSequence thizz, @NotNull CharPredicate chars, int startIndex, int fromIndex) static intcountTrailingNot(@NotNull CharSequence thizz, @NotNull CharPredicate chars) static intcountTrailingNot(@NotNull CharSequence thizz, @NotNull CharPredicate chars, int fromIndex) static intcountTrailingNot(@NotNull CharSequence thizz, @NotNull CharPredicate chars, int startIndex, int endIndex) static intcountTrailingNotSpace(@NotNull CharSequence thizz) static intcountTrailingNotSpace(@NotNull CharSequence thizz, int fromIndex) static intcountTrailingNotSpace(@NotNull CharSequence thizz, int startIndex, int fromIndex) static intcountTrailingNotSpaceTab(@NotNull CharSequence thizz) static intcountTrailingNotSpaceTab(@NotNull CharSequence thizz, int fromIndex) static intcountTrailingNotSpaceTab(@NotNull CharSequence thizz, int startIndex, int fromIndex) static intcountTrailingNotWhitespace(@NotNull CharSequence thizz) static intcountTrailingNotWhitespace(@NotNull CharSequence thizz, int fromIndex) static intcountTrailingNotWhitespace(@NotNull CharSequence thizz, int startIndex, int fromIndex) static intcountTrailingSpace(@NotNull CharSequence thizz) static intcountTrailingSpace(@NotNull CharSequence thizz, int fromIndex) static intcountTrailingSpace(@NotNull CharSequence thizz, int startIndex, int fromIndex) static intcountTrailingSpaceTab(@NotNull CharSequence thizz) static intcountTrailingSpaceTab(@NotNull CharSequence thizz, int fromIndex) static intcountTrailingSpaceTab(@NotNull CharSequence thizz, int startIndex, int fromIndex) static intcountTrailingWhitespace(@NotNull CharSequence thizz) static intcountTrailingWhitespace(@NotNull CharSequence thizz, int fromIndex) static intcountTrailingWhitespace(@NotNull CharSequence thizz, int startIndex, int fromIndex) static intendOfDelimitedBy(@NotNull CharSequence thizz, @NotNull CharSequence s, int index) static intendOfDelimitedByAny(@NotNull CharSequence thizz, @NotNull CharPredicate s, int index) static intendOfDelimitedByAnyNot(@NotNull CharSequence thizz, @NotNull CharPredicate s, int index) static intendOfLine(@NotNull CharSequence thizz, int index) static intendOfLineAnyEOL(@NotNull CharSequence thizz, int index) static booleanendsWith(@NotNull CharSequence thizz, @NotNull CharPredicate chars) static booleanendsWith(@NotNull CharSequence thizz, @NotNull CharSequence suffix) static booleanendsWith(@NotNull CharSequence thizz, @NotNull CharSequence suffix, boolean ignoreCase) static booleanendsWithAnyEOL(@NotNull CharSequence thizz) static booleanendsWithEOL(@NotNull CharSequence thizz) static booleanendsWithSpace(@NotNull CharSequence thizz) static booleanendsWithSpaceTab(@NotNull CharSequence thizz) static booleanendsWithWhitespace(@NotNull CharSequence thizz) static inteolEndLength(@NotNull CharSequence thizz) static inteolEndLength(@NotNull CharSequence thizz, int eolEnd) static @NotNull RangeeolEndRange(@NotNull CharSequence thizz, int eolEnd) static inteolStartLength(@NotNull CharSequence thizz, int eolStart) static @NotNull RangeeolStartRange(@NotNull CharSequence thizz, int eolStart) static booleanequals(@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 @NotNull int[]expandTo(@NotNull int[] indices, int length, int step) static charfirstChar(@NotNull CharSequence thizz) static inthashCode(@NotNull CharSequence thizz) static intindexOf(@NotNull CharSequence thizz, char c) static intindexOf(@NotNull CharSequence thizz, char c, int fromIndex) static intindexOf(@NotNull CharSequence thizz, char c, int fromIndex, int endIndex) static intindexOf(@NotNull CharSequence thizz, @NotNull CharSequence s) static intindexOf(@NotNull CharSequence thizz, @NotNull CharSequence s, int fromIndex) static intindexOf(@NotNull CharSequence thizz, @NotNull CharSequence s, int fromIndex, int endIndex) static @NotNull int[]indexOfAll(@NotNull CharSequence thizz, @NotNull CharSequence s) static intindexOfAny(@NotNull CharSequence thizz, @NotNull CharPredicate s) static intindexOfAny(@NotNull CharSequence thizz, @NotNull CharPredicate s, int index) static intindexOfAny(@NotNull CharSequence thizz, @NotNull CharPredicate s, int fromIndex, int endIndex) static intindexOfAnyNot(@NotNull CharSequence thizz, @NotNull CharPredicate s) static intindexOfAnyNot(@NotNull CharSequence thizz, @NotNull CharPredicate s, int fromIndex) static intindexOfAnyNot(@NotNull CharSequence thizz, @NotNull CharPredicate s, int fromIndex, int endIndex) static intindexOfNot(@NotNull CharSequence thizz, char c) static intindexOfNot(@NotNull CharSequence thizz, char c, int fromIndex) static intindexOfNot(@NotNull CharSequence thizz, char c, int fromIndex, int endIndex) static booleanisBlank(@NotNull CharSequence thizz) static booleanisEmpty(@NotNull CharSequence thizz) static booleanisNotBlank(@NotNull CharSequence thizz) static booleanisNotEmpty(@NotNull CharSequence thizz) static booleanisVisibleWhitespace(char c) static charlastChar(@NotNull CharSequence thizz) static intlastIndexOf(@NotNull CharSequence thizz, char c) static intlastIndexOf(@NotNull CharSequence thizz, char c, int fromIndex) static intlastIndexOf(@NotNull CharSequence thizz, char c, int startIndex, int fromIndex) static intlastIndexOf(@NotNull CharSequence thizz, @NotNull CharSequence s) static intlastIndexOf(@NotNull CharSequence thizz, @NotNull CharSequence s, int fromIndex) static intlastIndexOf(@NotNull CharSequence thizz, @NotNull CharSequence s, int startIndex, int fromIndex) static intlastIndexOfAny(@NotNull CharSequence thizz, @NotNull CharPredicate s) static intlastIndexOfAny(@NotNull CharSequence thizz, @NotNull CharPredicate s, int fromIndex) static intlastIndexOfAny(@NotNull CharSequence thizz, @NotNull CharPredicate s, int startIndex, int fromIndex) static intlastIndexOfAnyNot(@NotNull CharSequence thizz, @NotNull CharPredicate s) static intlastIndexOfAnyNot(@NotNull CharSequence thizz, @NotNull CharPredicate s, int fromIndex) static intlastIndexOfAnyNot(@NotNull CharSequence thizz, @NotNull CharPredicate s, int startIndex, int fromIndex) static intlastIndexOfNot(@NotNull CharSequence thizz, char c) static intlastIndexOfNot(@NotNull CharSequence thizz, char c, int fromIndex) static intlastIndexOfNot(@NotNull CharSequence thizz, char c, int startIndex, int fromIndex) static @NotNull RangeleadingBlankLinesRange(@NotNull CharSequence thizz) static @NotNull RangeleadingBlankLinesRange(@NotNull CharSequence thizz, int startIndex) static @NotNull RangeleadingBlankLinesRange(@NotNull CharSequence thizz, int fromIndex, int endIndex) static @NotNull RangeleadingBlankLinesRange(@NotNull CharSequence thizz, @NotNull CharPredicate eolChars, int fromIndex, int endIndex) lineColumnAtIndex(@NotNull CharSequence thizz, int index) static @NotNull RangelineRangeAt(@NotNull CharSequence thizz, int index) static @NotNull RangelineRangeAtAnyEOL(@NotNull CharSequence thizz, int index) static booleanmatchChars(@NotNull CharSequence thizz, @NotNull CharSequence chars) static booleanmatchChars(@NotNull CharSequence thizz, @NotNull CharSequence chars, boolean ignoreCase) static booleanmatchChars(@NotNull CharSequence thizz, @NotNull CharSequence chars, int startIndex) static booleanmatchChars(@NotNull CharSequence thizz, @NotNull CharSequence chars, int startIndex, boolean ignoreCase) static booleanmatchCharsIgnoreCase(@NotNull CharSequence thizz, @NotNull CharSequence chars) static booleanmatchCharsIgnoreCase(@NotNull CharSequence thizz, @NotNull CharSequence chars, int startIndex) static booleanmatchCharsReversed(@NotNull CharSequence thizz, @NotNull CharSequence chars, int endIndex) static booleanmatchCharsReversed(@NotNull CharSequence thizz, @NotNull CharSequence chars, int endIndex, boolean ignoreCase) static booleanmatchCharsReversedIgnoreCase(@NotNull CharSequence thizz, @NotNull CharSequence chars, int endIndex) static intmatchedCharCount(@NotNull CharSequence thizz, @NotNull CharSequence chars, int startIndex) static intmatchedCharCount(@NotNull CharSequence thizz, @NotNull CharSequence chars, int startIndex, boolean ignoreCase) static intmatchedCharCount(@NotNull CharSequence thizz, @NotNull CharSequence chars, int startIndex, int endIndex) static intmatchedCharCount(@NotNull CharSequence thizz, @NotNull CharSequence chars, int startIndex, int endIndex, boolean ignoreCase) static intmatchedCharCount(@NotNull CharSequence thizz, @NotNull CharSequence chars, int startIndex, int endIndex, boolean fullMatchOnly, boolean ignoreCase) static intmatchedCharCountIgnoreCase(@NotNull CharSequence thizz, @NotNull CharSequence chars, int startIndex) static intmatchedCharCountIgnoreCase(@NotNull CharSequence thizz, @NotNull CharSequence chars, int startIndex, int endIndex) static intmatchedCharCountReversed(@NotNull CharSequence thizz, @NotNull CharSequence chars, int fromIndex) static intmatchedCharCountReversed(@NotNull CharSequence thizz, @NotNull CharSequence chars, int fromIndex, boolean ignoreCase) static intmatchedCharCountReversed(@NotNull CharSequence thizz, @NotNull CharSequence chars, int startIndex, int fromIndex) static intmatchedCharCountReversed(@NotNull CharSequence thizz, @NotNull CharSequence chars, int startIndex, int fromIndex, boolean ignoreCase) static intmatchedCharCountReversedIgnoreCase(@NotNull CharSequence thizz, @NotNull CharSequence chars, int fromIndex) static intmatchedCharCountReversedIgnoreCase(@NotNull CharSequence thizz, @NotNull CharSequence chars, int startIndex, int fromIndex) static booleanmatches(@NotNull CharSequence thizz, @NotNull CharSequence chars) static booleanmatches(@NotNull CharSequence thizz, @NotNull CharSequence chars, boolean ignoreCase) static booleanmatchesIgnoreCase(@NotNull CharSequence thizz, @NotNull CharSequence chars) static @NotNull StringpadEnd(@NotNull CharSequence thizz, int length) static @NotNull StringpadEnd(@NotNull CharSequence thizz, int length, char pad) static @NotNull StringpadStart(@NotNull CharSequence thizz, int length) static @NotNull StringpadStart(@NotNull CharSequence thizz, int length, char pad) static intparseIntOrDefault(String text, int defaultValue) static intparseIntOrDefault(String text, int defaultValue, int radix) static IntegerparseIntOrNull(String text) static IntegerparseIntOrNull(String text, int radix) static LongparseLongOrNull(String text) static LongparseLongOrNull(String text, int radix) static @Nullable NumberparseNumberOrNull(@Nullable String text) Parse number from textparseNumberPrefixOrNull(@Nullable String text, @Nullable Predicate<String> suffixTester) Parse number from textstatic intparseUnsignedIntOrDefault(String text, int defaultValue) static intparseUnsignedIntOrDefault(String text, int defaultValue, int radix) static IntegerparseUnsignedIntOrNull(String text) static IntegerparseUnsignedIntOrNull(String text, int radix) static charsafeCharAt(@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 intstartOfDelimitedBy(@NotNull CharSequence thizz, @NotNull CharSequence s, int index) static intstartOfDelimitedByAny(@NotNull CharSequence thizz, @NotNull CharPredicate s, int index) static intstartOfDelimitedByAnyNot(@NotNull CharSequence thizz, @NotNull CharPredicate s, int index) static intstartOfLine(@NotNull CharSequence thizz, int index) static intstartOfLineAnyEOL(@NotNull CharSequence thizz, int index) static booleanstartsWith(@NotNull CharSequence thizz, @NotNull CharPredicate chars) static booleanstartsWith(@NotNull CharSequence thizz, @NotNull CharSequence prefix) static booleanstartsWith(@NotNull CharSequence thizz, @NotNull CharSequence prefix, boolean ignoreCase) static booleanstartsWithAnyEOL(@NotNull CharSequence thizz) static booleanstartsWithEOL(@NotNull CharSequence thizz) static booleanstartsWithSpace(@NotNull CharSequence thizz) static booleanstartsWithSpaceTab(@NotNull CharSequence thizz) static booleanstartsWithWhitespace(@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 StringtoVisibleWhitespaceString(@NotNull CharSequence thizz) static @NotNull RangetrailingBlankLinesRange(@NotNull CharSequence thizz) static @NotNull RangetrailingBlankLinesRange(@NotNull CharSequence thizz, int fromIndex) static @NotNull RangetrailingBlankLinesRange(@NotNull CharSequence thizz, int startIndex, int fromIndex) static @NotNull RangetrailingBlankLinesRange(@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 RangetrimEndRange(@NotNull CharSequence thizz) static RangetrimEndRange(@NotNull CharSequence thizz, int keep) static @NotNull RangetrimEndRange(@NotNull CharSequence thizz, int keep, @NotNull CharPredicate chars) static RangetrimEndRange(@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 RangetrimRange(@NotNull CharSequence thizz) static RangetrimRange(@NotNull CharSequence thizz, int keep) static @NotNull RangetrimRange(@NotNull CharSequence thizz, int keep, @NotNull CharPredicate chars) static RangetrimRange(@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 RangetrimStartRange(@NotNull CharSequence thizz) static RangetrimStartRange(@NotNull CharSequence thizz, int keep) static @NotNull RangetrimStartRange(@NotNull CharSequence thizz, int keep, @NotNull CharPredicate chars) static RangetrimStartRange(@NotNull CharSequence thizz, @NotNull CharPredicate chars) static <T extends CharSequence>
TtrimTailBlankLines(T thizz) static @NotNull int[]truncateTo(@NotNull int[] indices, int length) static voidvalidateIndex(int index, int length) static voidvalidateIndexInclusiveEnd(int index, int length) static voidvalidateStartEnd(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
-
EOL_CHARS
-
WHITESPACE_NO_EOL_CHARS
-
WHITESPACE_CHARS
-
WHITESPACE_NBSP_CHARS
-
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 @NotNull int[] expandTo(@NotNull @NotNull int[] indices, int length, int step) -
truncateTo
@NotNull static @NotNull int[] truncateTo(@NotNull @NotNull int[] indices, int length) -
indexOfAll
@NotNull static @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
-
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)
-