public interface IRichSequence<T extends IRichSequence<T>> extends CharSequence, Comparable<CharSequence>, SequenceUtils
NOTE: '\0' changed to '�' use NullEncoder.decodeNull mapper to get original null chars.
safe access methods return '\0' for no char response.
ANY_EOL, ANY_EOL_SET, BACKSLASH_SET, DECIMAL_DIGITS, EMPTY_INDICES, ENC_NUL, EOL, EOL_CHAR, EOL_CHAR1, EOL_CHAR2, EOL_CHARS, EOL_SET, HASH_SET, HEXADECIMAL_DIGITS, LINE_SEP, LS, LSEP, NBSP, NBSP_CHARS, NUL, OCTAL_DIGITS, SPACE, SPACE_EOL, SPACE_EOL_SET, SPACE_SET, SPACE_TAB, SPACE_TAB_EOL_SET, SPACE_TAB_NBSP_SET, SPACE_TAB_SET, SPC, SPLIT_INCLUDE_DELIM_PARTS, SPLIT_INCLUDE_DELIMS, SPLIT_SKIP_EMPTY, SPLIT_TRIM_PARTS, SPLIT_TRIM_SKIP_EMPTY, TAB_SET, US, US_CHARS, US_SET, visibleSpacesMap, WHITESPACE, WHITESPACE_CHARS, WHITESPACE_NBSP, WHITESPACE_NBSP_CHARS, WHITESPACE_NBSP_SET, WHITESPACE_NO_EOL_CHARS, WHITESPACE_SET| Modifier and Type | Method and Description |
|---|---|
T |
append(CharSequence... sequences)
Concatenate this sequence and list of others, returning sequence of result
|
T |
append(Iterable<? extends CharSequence> sequences) |
T |
appendEOL() |
T |
appendRangesTo(@NotNull StringBuilder out,
@Nullable CharMapper charMapper,
Iterable<? extends Range> ranges) |
T |
appendRangesTo(@NotNull StringBuilder out,
@Nullable CharMapper charMapper,
Range... ranges)
Append given ranges of this sequence to string builder
|
T |
appendRangesTo(@NotNull StringBuilder out,
Iterable<? extends Range> ranges) |
T |
appendRangesTo(@NotNull StringBuilder out,
Range... ranges) |
T |
appendSpace() |
T |
appendSpaces(int count) |
T |
appendTo(@NotNull StringBuilder out) |
T |
appendTo(@NotNull StringBuilder out,
@Nullable CharMapper charMapper) |
T |
appendTo(@NotNull StringBuilder out,
@Nullable CharMapper charMapper,
int startIndex) |
T |
appendTo(@NotNull StringBuilder out,
@Nullable CharMapper charMapper,
int startIndex,
int endIndex)
Append helpers
|
T |
appendTo(@NotNull StringBuilder out,
int startIndex) |
T |
appendTo(@NotNull StringBuilder out,
int startIndex,
int endIndex) |
@NotNull List<Range> |
blankLinesRemovedRanges() |
@NotNull List<Range> |
blankLinesRemovedRanges(@NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars,
int fromIndex,
int endIndex) |
@NotNull List<Range> |
blankLinesRemovedRanges(int fromIndex) |
@NotNull List<Range> |
blankLinesRemovedRanges(int fromIndex,
int endIndex) |
int |
columnAtIndex(int index) |
default int |
countLeading()
Deprecated.
|
default int |
countLeading(char c)
Deprecated.
consider using built-in sets of characters, ..._SET, or Use CharPredicate.anyOf(...)
|
int |
countLeading(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
Count leading/trailing characters of this sequence
|
int |
countLeading(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int startIndex) |
int |
countLeading(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int startIndex,
int endIndex) |
int |
countLeadingColumns(int startColumn,
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
Count column of indent given by chars in the set in this sequence, expanding tabs to 4th column
|
int |
countLeadingNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
int |
countLeadingNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int startIndex) |
int |
countLeadingNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int startIndex,
int endIndex) |
int |
countLeadingNotSpace() |
int |
countLeadingNotSpace(int startIndex) |
int |
countLeadingNotSpace(int startIndex,
int endIndex) |
int |
countLeadingNotSpaceTab() |
int |
countLeadingNotSpaceTab(int startIndex) |
int |
countLeadingNotSpaceTab(int startIndex,
int endIndex) |
int |
countLeadingNotWhitespace() |
int |
countLeadingNotWhitespace(int startIndex) |
int |
countLeadingNotWhitespace(int startIndex,
int endIndex) |
int |
countLeadingSpace() |
int |
countLeadingSpace(int startIndex) |
int |
countLeadingSpace(int startIndex,
int endIndex) |
int |
countLeadingSpaceTab() |
int |
countLeadingSpaceTab(int startIndex) |
int |
countLeadingSpaceTab(int startIndex,
int endIndex) |
int |
countLeadingWhitespace() |
int |
countLeadingWhitespace(int startIndex) |
int |
countLeadingWhitespace(int startIndex,
int endIndex) |
default int |
countOf(char c)
Deprecated.
|
int |
countOfAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
int |
countOfAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int startIndex) |
int |
countOfAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int startIndex,
int endIndex) |
int |
countOfAnyNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
int |
countOfAnyNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int startIndex) |
int |
countOfAnyNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int startIndex,
int endIndex) |
int |
countOfNotSpaceTab() |
int |
countOfNotWhitespace() |
int |
countOfSpaceTab() |
int |
countOfWhitespace() |
default int |
countTrailing()
Deprecated.
|
int |
countTrailing(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
int |
countTrailing(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int startIndex) |
int |
countTrailing(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int startIndex,
int endIndex) |
int |
countTrailingNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
int |
countTrailingNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int startIndex) |
int |
countTrailingNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int startIndex,
int endIndex) |
int |
countTrailingNotSpace() |
int |
countTrailingNotSpace(int fromIndex) |
int |
countTrailingNotSpace(int startIndex,
int fromIndex) |
int |
countTrailingNotSpaceTab() |
int |
countTrailingNotSpaceTab(int fromIndex) |
int |
countTrailingNotSpaceTab(int startIndex,
int fromIndex) |
int |
countTrailingNotWhitespace() |
int |
countTrailingNotWhitespace(int fromIndex) |
int |
countTrailingNotWhitespace(int startIndex,
int fromIndex) |
int |
countTrailingSpace() |
int |
countTrailingSpace(int fromIndex) |
int |
countTrailingSpace(int startIndex,
int fromIndex) |
int |
countTrailingSpaceTab() |
int |
countTrailingSpaceTab(int fromIndex) |
int |
countTrailingSpaceTab(int startIndex,
int fromIndex) |
int |
countTrailingWhitespace() |
int |
countTrailingWhitespace(int fromIndex) |
int |
countTrailingWhitespace(int startIndex,
int fromIndex) |
T |
delete(int startIndex,
int endIndex)
Delete range in sequence
|
T[] |
emptyArray() |
char |
endCharAt(int index)
Convenience method to get characters offset from end of sequence.
|
int |
endOfDelimitedBy(@NotNull CharSequence s,
int index)
Find start/end region in this sequence delimited by any characters in argument or the CharSequence
|
int |
endOfDelimitedByAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int index) |
int |
endOfDelimitedByAnyNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int index) |
int |
endOfLine(int index)
Get the offset of the end of line at given index, end of line delimited by \n
|
int |
endOfLineAnyEOL(int index)
Get the offset of the end of line at given index, end of line delimited by \n or any of \n \r \r\n for Any methods.
|
T |
endSequence(int startIndex)
Convenience method to get characters offset from endIndex of sequence.
|
T |
endSequence(int startIndex,
int endIndex)
Convenience method to get characters offset from endIndex of sequence.
|
boolean |
endsWith(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
boolean |
endsWith(@NotNull CharSequence suffix)
test if this sequence ends with given characters
|
boolean |
endsWith(@NotNull CharSequence suffix,
boolean ignoreCase)
test if this sequence ends with given characters
|
boolean |
endsWithAnyEOL() |
boolean |
endsWithEOL() |
boolean |
endsWithIgnoreCase(@NotNull CharSequence suffix)
test if this sequence ends with given characters, ignoring case differences
|
boolean |
endsWithSpace() |
boolean |
endsWithSpaceTab() |
boolean |
endsWithWhitespace() |
int |
eolEndLength()
Get the length of EOL character at the end of this sequence, if present.
|
int |
eolEndLength(int eolEnd)
Get the length of EOL character at the given index of this sequence, if present.
|
@NotNull Range |
eolEndRange(int eolEnd)
Return Range of eol at given index
|
default int |
eolLength(int eolStart)
Deprecated.
|
default int |
eolStartLength()
Deprecated.
|
int |
eolStartLength(int eolStart)
Get the length of EOL character at the given index of this sequence, if present.
|
@NotNull Range |
eolStartRange(int eolStart)
Return Range of eol at given index
|
boolean |
equals(@Nullable Object other)
Comparison to another CharSequence should result in a match if their contents are equal
regardless of the implementation.
|
boolean |
equals(@Nullable Object other,
boolean ignoreCase)
Test the sequence for a match to another CharSequence
|
boolean |
equalsIgnoreCase(@Nullable Object other)
Test the sequence for a match to another CharSequence, ignoring case differences
|
T |
extractRanges(Iterable<Range> ranges) |
T |
extractRanges(Range... ranges)
Build a sequence of ranges in this sequence
|
char |
firstChar() |
<B extends ISequenceBuilder<B,T>> |
getBuilder()
Get a sequence builder for this sequence type
|
default int |
getColumnAtIndex(int index)
Deprecated.
|
default @NotNull com.vladsch.flexmark.util.misc.Pair<Integer,Integer> |
getLineColumnAtIndex(int index)
Deprecated.
|
int |
hashCode()
Should return hashCode of the underlying character sequence which is equal to the String value of that sequence
|
T |
ifNull(T other)
If this sequence is the nullSequence() instance then returns other,
otherwise returns this sequence.
|
T |
ifNullEmptyAfter(T other)
If this sequence is the nullSequence() instance then returns an empty subSequence from the end of other,
otherwise returns this sequence.
|
T |
ifNullEmptyBefore(T other)
If this sequence is the nullSequence() instance then returns an empty subSequence from the start of other,
otherwise returns this sequence.
|
int |
indexOf(char c) |
int |
indexOf(char c,
int fromIndex) |
int |
indexOf(char c,
int fromIndex,
int endIndex) |
int |
indexOf(@NotNull CharSequence s)
All index methods return the position or -1 if not found of the given character, characters or string.
|
int |
indexOf(@NotNull CharSequence s,
int fromIndex) |
int |
indexOf(@NotNull CharSequence s,
int fromIndex,
int endIndex) |
@NotNull int[] |
indexOfAll(@NotNull CharSequence s)
Get indices of all occurrences of a sequence
|
int |
indexOfAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate s) |
int |
indexOfAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int fromIndex) |
int |
indexOfAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int fromIndex,
int endIndex) |
int |
indexOfAnyNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate s) |
int |
indexOfAnyNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int fromIndex) |
int |
indexOfAnyNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int fromIndex,
int endIndex) |
int |
indexOfNot(char c) |
int |
indexOfNot(char c,
int fromIndex) |
int |
indexOfNot(char c,
int fromIndex,
int endIndex) |
default T |
insert(@NotNull CharSequence chars,
int index)
Deprecated.
use
insert(int, CharSequence) instead |
T |
insert(int index,
@NotNull CharSequence chars)
Insert char sequence at given index
|
boolean |
isBlank() |
boolean |
isCharAt(int index,
@NotNull com.vladsch.flexmark.util.misc.CharPredicate predicate)
Safe, if index out of range returns '\0'
|
boolean |
isEmpty() |
boolean |
isIn(@NotNull Collection<? extends CharSequence> texts) |
boolean |
isIn(@NotNull String[] texts) |
boolean |
isNotBlank() |
boolean |
isNotEmpty() |
boolean |
isNotNull() |
boolean |
isNull() |
char |
lastChar() |
int |
lastIndexOf(char c) |
int |
lastIndexOf(char c,
int fromIndex) |
int |
lastIndexOf(char c,
int startIndex,
int fromIndex) |
int |
lastIndexOf(@NotNull CharSequence s) |
int |
lastIndexOf(@NotNull CharSequence s,
int fromIndex) |
int |
lastIndexOf(@NotNull CharSequence s,
int startIndex,
int fromIndex) |
int |
lastIndexOfAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate s) |
int |
lastIndexOfAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int fromIndex) |
int |
lastIndexOfAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int startIndex,
int fromIndex) |
int |
lastIndexOfAnyNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate s) |
int |
lastIndexOfAnyNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int fromIndex) |
int |
lastIndexOfAnyNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int startIndex,
int fromIndex) |
int |
lastIndexOfNot(char c) |
int |
lastIndexOfNot(char c,
int fromIndex) |
int |
lastIndexOfNot(char c,
int startIndex,
int fromIndex) |
@NotNull Range |
leadingBlankLinesRange() |
@NotNull Range |
leadingBlankLinesRange(@NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars,
int fromIndex,
int endIndex)
Get Range of leading blank lines at given index offsets in sequence
|
@NotNull Range |
leadingBlankLinesRange(int startIndex) |
@NotNull Range |
leadingBlankLinesRange(int fromIndex,
int endIndex) |
T |
lineAt(int index)
Get the line characters at given index, line delimited by \n
|
T |
lineAtAnyEOL(int index)
Get the line characters at given index, line delimited by \n, \r or \r\n
|
@NotNull com.vladsch.flexmark.util.misc.Pair<Integer,Integer> |
lineColumnAtIndex(int index)
Get the line and column information from index into sequence
|
@NotNull Range |
lineRangeAt(int index)
Get the line characters at given index, line delimited by \n
|
@NotNull Range |
lineRangeAtAnyEOL(int index)
Get the line characters at given index, line delimited by \n, \r or \r\n
|
boolean |
matchChars(@NotNull CharSequence chars)
Test the sequence portion for a match to another CharSequence
|
boolean |
matchChars(@NotNull CharSequence chars,
boolean ignoreCase) |
boolean |
matchChars(@NotNull CharSequence chars,
int startIndex) |
boolean |
matchChars(@NotNull CharSequence chars,
int startIndex,
boolean ignoreCase)
Test the sequence portion for a match to another CharSequence
|
boolean |
matchCharsIgnoreCase(@NotNull CharSequence chars) |
boolean |
matchCharsIgnoreCase(@NotNull CharSequence chars,
int startIndex) |
boolean |
matchCharsReversed(@NotNull CharSequence chars,
int endIndex) |
boolean |
matchCharsReversed(@NotNull CharSequence chars,
int endIndex,
boolean ignoreCase)
Test the sequence portion for a match to another CharSequence, reverse order
|
boolean |
matchCharsReversedIgnoreCase(@NotNull CharSequence chars,
int endIndex) |
int |
matchedCharCount(@NotNull CharSequence chars,
int startIndex) |
int |
matchedCharCount(@NotNull CharSequence chars,
int startIndex,
boolean ignoreCase) |
int |
matchedCharCount(@NotNull CharSequence chars,
int startIndex,
int endIndex) |
int |
matchedCharCount(@NotNull CharSequence chars,
int startIndex,
int endIndex,
boolean ignoreCase) |
int |
matchedCharCount(@NotNull CharSequence chars,
int startIndex,
int endIndex,
boolean fullMatchOnly,
boolean ignoreCase)
Test the sequence portion for a match to another CharSequence
|
int |
matchedCharCountIgnoreCase(@NotNull CharSequence chars,
int startIndex) |
int |
matchedCharCountIgnoreCase(@NotNull CharSequence chars,
int startIndex,
int endIndex) |
int |
matchedCharCountReversed(@NotNull CharSequence chars,
int fromIndex) |
int |
matchedCharCountReversed(@NotNull CharSequence chars,
int fromIndex,
boolean ignoreCase) |
int |
matchedCharCountReversed(@NotNull CharSequence chars,
int startIndex,
int fromIndex) |
int |
matchedCharCountReversed(@NotNull CharSequence chars,
int startIndex,
int fromIndex,
boolean ignoreCase)
Test the sequence portion for a match to another CharSequence,
equivalent to taking this.subSequence(startIndex, fromIndex) and then count matching chars going from end of both sequences
|
int |
matchedCharCountReversedIgnoreCase(@NotNull CharSequence chars,
int fromIndex) |
int |
matchedCharCountReversedIgnoreCase(@NotNull CharSequence chars,
int startIndex,
int fromIndex) |
boolean |
matches(@NotNull CharSequence chars)
Test the sequence for a match to another CharSequence
|
boolean |
matches(@NotNull CharSequence chars,
boolean ignoreCase) |
boolean |
matchesIgnoreCase(@NotNull CharSequence chars) |
char |
midCharAt(int index)
Convenience method to get characters offset from start or end of sequence.
|
T |
midSequence(int startIndex)
Convenience method to get characters offset from start or end of sequence.
|
T |
midSequence(int startIndex,
int endIndex)
Convenience method to get characters offset from start or end of sequence.
|
@NotNull String |
normalizeEndWithEOL()
replace any \r\n and \r by \n, append terminating EOL if one is not present
|
@NotNull String |
normalizeEOL()
replace any \r\n and \r by \n
|
T |
nullIf(@NotNull BiPredicate<? super T,? super CharSequence> predicate,
CharSequence... matches)
If predicate returns true for this sequence and one of given sequences return nullSequence() otherwise returns this sequence.
|
T |
nullIf(boolean condition)
If condition is true return nullSequence() otherwise returns this sequence.
|
T |
nullIf(CharSequence... matches)
If this sequence matches one of given sequences return nullSequence() otherwise returns this sequence.
|
T |
nullIf(@NotNull Predicate<? super CharSequence> predicate,
CharSequence... matches)
If predicate returns true for one of given sequences return nullSequence() otherwise returns this sequence.
|
T |
nullIfBlank()
If this sequence is blank return nullSequence() otherwise returns this sequence.
|
T |
nullIfEmpty()
If this sequence is empty return nullSequence() otherwise returns this sequence.
|
T |
nullIfEndsWith(boolean ignoreCase,
CharSequence... matches) |
T |
nullIfEndsWith(CharSequence... matches) |
T |
nullIfEndsWithIgnoreCase(CharSequence... matches) |
default T |
nullIfEndsWithNot(CharSequence... matches)
Deprecated.
|
T |
nullIfNot(@NotNull BiPredicate<? super T,? super CharSequence> predicate,
CharSequence... matches) |
T |
nullIfNot(CharSequence... matches) |
T |
nullIfNot(@NotNull Predicate<? super CharSequence> predicate,
CharSequence... matches) |
T |
nullIfNotEndsWith(boolean ignoreCase,
CharSequence... matches) |
T |
nullIfNotEndsWith(CharSequence... matches) |
T |
nullIfNotEndsWithIgnoreCase(CharSequence... matches) |
T |
nullIfNotStartsWith(boolean ignoreCase,
CharSequence... matches) |
T |
nullIfNotStartsWith(CharSequence... matches) |
T |
nullIfNotStartsWithIgnoreCase(CharSequence... matches) |
T |
nullIfStartsWith(boolean ignoreCase,
CharSequence... matches) |
T |
nullIfStartsWith(CharSequence... matches) |
T |
nullIfStartsWithIgnoreCase(CharSequence... matches) |
default T |
nullIfStartsWithNot(CharSequence... matches)
Deprecated.
|
T |
nullSequence() |
T |
padding(int length) |
T |
padding(int length,
char pad)
Get the chars needed for padding to length
|
T |
padEnd(int length) |
T |
padEnd(int length,
char pad) |
T |
padStart(int length) |
T |
padStart(int length,
char pad)
Pad this sequence to given length
|
T |
prefixOnceWith(@Nullable CharSequence prefix)
Prefix this sequence with a char sequence if not already starting with prefix
|
T |
prefixOnceWithEOL() |
T |
prefixOnceWithSpace() |
T |
prefixWith(@Nullable CharSequence prefix)
Prefix this sequence with a char sequence
|
T |
prefixWithEOL() |
T |
prefixWithSpace() |
T |
prefixWithSpaces(int count) |
T |
removePrefix(@NotNull CharSequence prefix)
Remove prefix if present
|
T |
removePrefix(@NotNull CharSequence prefix,
boolean ignoreCase)
Remove prefix if present
|
T |
removePrefixIgnoreCase(@NotNull CharSequence prefix)
Remove prefix if present, ignoring case differences
|
T |
removeProperPrefix(@NotNull CharSequence prefix)
Remove prefix if present but only if this sequence is longer than the suffix
|
T |
removeProperPrefix(@NotNull CharSequence prefix,
boolean ignoreCase)
Remove prefix if present but only if this sequence is longer than the suffix
|
T |
removeProperPrefixIgnoreCase(@NotNull CharSequence prefix)
Remove prefix if present but only if this sequence is longer than the suffix, ignoring case differences
|
T |
removeProperSuffix(@NotNull CharSequence suffix)
Remove suffix if present but only if this sequence is longer than the suffix
|
T |
removeProperSuffix(@NotNull CharSequence suffix,
boolean ignoreCase)
Remove suffix if present but only if this sequence is longer than the suffix
|
T |
removeProperSuffixIgnoreCase(@NotNull CharSequence suffix)
Remove suffix if present but only if this sequence is longer than the suffix, ignoring case differences
|
T |
removeSuffix(@NotNull CharSequence suffix)
Remove suffix if present
|
T |
removeSuffix(@NotNull CharSequence suffix,
boolean ignoreCase)
Remove suffix if present
|
T |
removeSuffixIgnoreCase(@NotNull CharSequence suffix)
Remove suffix if present, ignoring case differences
|
T |
replace(@NotNull CharSequence find,
@NotNull CharSequence replace)
Replace all occurrences of one sequence with another
|
T |
replace(int startIndex,
int endIndex,
@NotNull CharSequence replacement)
Replace part of the sequence with a char sequence
|
char |
safeCharAt(int index)
return char at index or '\0' if index <0 or >=length()
|
T |
safeSubSequence(int startIndex)
Get a portion of this sequence, if index < 0 use 0, if > length() use length
|
T |
safeSubSequence(int startIndex,
int endIndex)
Get a portion of this sequence, if index < 0 use 0, if > length() use length
|
T |
sequenceOf(@Nullable CharSequence charSequence)
Factory function
|
T |
sequenceOf(@Nullable CharSequence charSequence,
int startIndex)
Factory function
|
T |
sequenceOf(@Nullable CharSequence charSequence,
int startIndex,
int endIndex)
Factory function
|
default T[] |
split(char delimiter)
Deprecated.
|
default T[] |
split(char delimiter,
int limit)
Deprecated.
|
default T[] |
split(char delimiter,
int limit,
int flags)
Deprecated.
|
T[] |
split(@NotNull CharSequence delimiter) |
T[] |
split(@NotNull CharSequence delimiter,
boolean includeDelims,
@Nullable com.vladsch.flexmark.util.misc.CharPredicate trimChars) |
T[] |
split(@NotNull CharSequence delimiter,
int limit,
boolean includeDelims,
@Nullable com.vladsch.flexmark.util.misc.CharPredicate trimChars) |
T[] |
split(@NotNull CharSequence delimiter,
int limit,
int flags) |
T[] |
split(@NotNull CharSequence delimiter,
int limit,
int flags,
@Nullable com.vladsch.flexmark.util.misc.CharPredicate trimChars) |
T[] |
splitEOL() |
T[] |
splitEOL(boolean includeDelims) |
@NotNull List<T> |
splitList(@NotNull CharSequence delimiter) |
@NotNull List<T> |
splitList(@NotNull CharSequence delimiter,
boolean includeDelims,
@Nullable com.vladsch.flexmark.util.misc.CharPredicate trimChars) |
@NotNull List<T> |
splitList(@NotNull CharSequence delimiter,
int limit,
boolean includeDelims,
@Nullable com.vladsch.flexmark.util.misc.CharPredicate trimChars)
Split helpers based on delimiter character sets contained in CharPredicate
|
@NotNull List<T> |
splitList(@NotNull CharSequence delimiter,
int limit,
int flags) |
@NotNull List<T> |
splitList(@NotNull CharSequence delimiter,
int limit,
int flags,
@Nullable com.vladsch.flexmark.util.misc.CharPredicate trimChars)
Split helpers based on delimiter character sets contained in CharSequence
|
@NotNull List<T> |
splitListEOL() |
@NotNull List<T> |
splitListEOL(boolean includeDelims) |
@NotNull List<T> |
splitListEOL(boolean includeDelims,
@Nullable com.vladsch.flexmark.util.misc.CharPredicate trimChars) |
int |
startOfDelimitedBy(@NotNull CharSequence s,
int index) |
int |
startOfDelimitedByAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int index) |
int |
startOfDelimitedByAnyNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int index) |
int |
startOfLine(int index)
Get the offset of the start of line at given index, start of line delimited by \n
|
int |
startOfLineAnyEOL(int index)
Get the offset of the start of line at given index, start of line delimited by \n or any of \n \r \r\n for Any methods.
|
boolean |
startsWith(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
boolean |
startsWith(@NotNull CharSequence prefix)
test if this sequence starts with given characters
|
boolean |
startsWith(@NotNull CharSequence prefix,
boolean ignoreCase)
test if this sequence starts with given characters
|
boolean |
startsWithAnyEOL() |
boolean |
startsWithEOL() |
boolean |
startsWithIgnoreCase(@NotNull CharSequence prefix)
test if this sequence starts with given characters, ignoring case differences
|
boolean |
startsWithSpace() |
boolean |
startsWithSpaceTab() |
boolean |
startsWithWhitespace() |
T |
subSequence(int startIndex)
Get a portion of this sequence starting from a given offset to endIndex of the sequence
|
T |
subSequence(int startIndex,
int endIndex)
Get a portion of this sequence
|
T |
subSequence(@NotNull Range range)
Get a portion of this sequence selected by range
|
T |
subSequenceAfter(@NotNull Range range)
Get a portion of this sequence after one selected by range
|
T |
subSequenceBefore(@NotNull Range range)
Get a portion of this sequence before one selected by range
|
T |
suffixOnceWith(@Nullable CharSequence suffix)
Suffix this sequence with a char sequence if not already ending with suffix
|
T |
suffixOnceWithEOL() |
T |
suffixOnceWithSpace() |
T |
suffixWith(@Nullable CharSequence suffix)
Prefix this sequence with a char sequence
|
T |
suffixWithEOL() |
T |
suffixWithSpace() |
T |
suffixWithSpaces(int count) |
T |
toLowerCase()
Map characters of this sequence to: Uppercase, Lowercase or use custom mapping
|
T |
toMapped(CharMapper mapper) |
T |
toNbSp()
Map spaces to non break spaces
|
T |
toSpc()
Map non break spaces to spaces
|
@Nullable String |
toStringOrNull()
Return string or null if BaseSequence.NULL
|
T |
toUpperCase() |
@NotNull String |
toVisibleWhitespaceString() |
@NotNull Range |
trailingBlankLinesRange() |
@NotNull Range |
trailingBlankLinesRange(com.vladsch.flexmark.util.misc.CharPredicate eolChars,
int startIndex,
int fromIndex)
Get Range of trailing blank lines at given index offsets in sequence
|
@NotNull Range |
trailingBlankLinesRange(int fromIndex) |
@NotNull Range |
trailingBlankLinesRange(int startIndex,
int fromIndex) |
T |
trim() |
T |
trim(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
T |
trim(int keep) |
T |
trim(int keep,
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
T |
trimEnd() |
T |
trimEnd(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
T |
trimEnd(int keep) |
T |
trimEnd(int keep,
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
@NotNull Range |
trimEndRange() |
@NotNull Range |
trimEndRange(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
@NotNull Range |
trimEndRange(int keep) |
@NotNull Range |
trimEndRange(int keep,
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
T |
trimEOL()
Trim last eol at the end of this sequence,
|
T |
trimLeadBlankLines() |
@NotNull com.vladsch.flexmark.util.misc.Pair<T,T> |
trimmed() |
@NotNull com.vladsch.flexmark.util.misc.Pair<T,T> |
trimmed(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
@NotNull com.vladsch.flexmark.util.misc.Pair<T,T> |
trimmed(int keep) |
@NotNull com.vladsch.flexmark.util.misc.Pair<T,T> |
trimmed(int keep,
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
T |
trimmedEnd() |
T |
trimmedEnd(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
T |
trimmedEnd(int keep) |
T |
trimmedEnd(int keep,
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
T |
trimmedEOL()
Get Trimmed part by
trimEOL() |
T |
trimmedStart() |
T |
trimmedStart(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
T |
trimmedStart(int keep) |
T |
trimmedStart(int keep,
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
Get the characters Trimmed, Trimmed from start/end of this sequence, characters to trim are passed in the sequence argument
|
@NotNull Range |
trimRange() |
@NotNull Range |
trimRange(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
@NotNull Range |
trimRange(int keep) |
@NotNull Range |
trimRange(int keep,
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
T |
trimStart() |
T |
trimStart(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
T |
trimStart(int keep) |
T |
trimStart(int keep,
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
Trim, Trim start/end of this sequence, characters to trim are passed in the sequence argument
|
@NotNull Range |
trimStartRange() |
@NotNull Range |
trimStartRange(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
@NotNull Range |
trimStartRange(int keep) |
@NotNull Range |
trimStartRange(int keep,
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
Range of kept sequence when trim start/end of this sequence is performed, characters to trim are passed in the sequence argument
|
T |
trimTailBlankLines()
Trim leading trailing blank lines in this sequence
|
T |
trimToEndOfLine() |
T |
trimToEndOfLine(boolean includeEol) |
T |
trimToEndOfLine(boolean includeEol,
int index) |
T |
trimToEndOfLine(@NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars,
boolean includeEol,
int index)
Trim end to end of line containing index
|
T |
trimToEndOfLine(int index) |
T |
trimToStartOfLine() |
T |
trimToStartOfLine(boolean includeEol) |
T |
trimToStartOfLine(boolean includeEol,
int index) |
T |
trimToStartOfLine(@NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars,
boolean includeEol,
int index)
Trim start to start of line containing index
|
T |
trimToStartOfLine(int index) |
charAt, chars, codePoints, length, toStringcompareToblankLinesRemovedRanges, blankLinesRemovedRanges, blankLinesRemovedRanges, blankLinesRemovedRanges, columnAtIndex, columnsToNextTabStop, compare, compare, compare, compareReversed, containedBy, containedBy, containsAny, containsAny, containsAnyNot, containsAnyNot, containsAnyNot, countLeading, countLeading, countLeading, countLeadingColumns, countLeadingNot, countLeadingNot, countLeadingNot, countLeadingNotSpace, countLeadingNotSpace, countLeadingNotSpace, countLeadingNotSpaceTab, countLeadingNotSpaceTab, countLeadingNotSpaceTab, countLeadingNotWhitespace, countLeadingNotWhitespace, countLeadingNotWhitespace, countLeadingSpace, countLeadingSpace, countLeadingSpace, countLeadingSpaceTab, countLeadingSpaceTab, countLeadingSpaceTab, countLeadingWhitespace, countLeadingWhitespace, countLeadingWhitespace, countOfAny, countOfAny, countOfAny, countOfAnyNot, countOfAnyNot, countOfAnyNot, countOfNotSpaceTab, countOfNotWhitespace, countOfSpaceTab, countOfWhitespace, countTrailing, countTrailing, countTrailing, countTrailingNot, countTrailingNot, countTrailingNot, countTrailingNotSpace, countTrailingNotSpace, countTrailingNotSpace, countTrailingNotSpaceTab, countTrailingNotSpaceTab, countTrailingNotSpaceTab, countTrailingNotWhitespace, countTrailingNotWhitespace, countTrailingNotWhitespace, countTrailingSpace, countTrailingSpace, countTrailingSpace, countTrailingSpaceTab, countTrailingSpaceTab, countTrailingSpaceTab, countTrailingWhitespace, countTrailingWhitespace, countTrailingWhitespace, endOfDelimitedBy, endOfDelimitedByAny, endOfDelimitedByAnyNot, endOfLine, endOfLineAnyEOL, endsWith, endsWith, endsWith, endsWithAnyEOL, endsWithEOL, endsWithSpace, endsWithSpaceTab, endsWithWhitespace, eolEndLength, eolEndLength, eolEndRange, eolStartLength, eolStartRange, equals, expandTo, firstChar, getVisibleSpacesMap, hashCode, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, indexOfAll, indexOfAny, indexOfAny, indexOfAny, indexOfAnyNot, indexOfAnyNot, indexOfAnyNot, indexOfNot, indexOfNot, indexOfNot, isBlank, isEmpty, isNotBlank, isNotEmpty, isVisibleWhitespace, lastChar, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOfAny, lastIndexOfAny, lastIndexOfAny, lastIndexOfAnyNot, lastIndexOfAnyNot, lastIndexOfAnyNot, lastIndexOfNot, lastIndexOfNot, lastIndexOfNot, leadingBlankLinesRange, leadingBlankLinesRange, leadingBlankLinesRange, leadingBlankLinesRange, lineColumnAtIndex, lineRangeAt, lineRangeAtAnyEOL, matchChars, matchChars, matchChars, matchChars, matchCharsIgnoreCase, matchCharsIgnoreCase, matchCharsReversed, matchCharsReversed, matchCharsReversedIgnoreCase, matchedCharCount, matchedCharCount, matchedCharCount, matchedCharCount, matchedCharCount, matchedCharCountIgnoreCase, matchedCharCountIgnoreCase, matchedCharCountReversed, matchedCharCountReversed, matchedCharCountReversed, matchedCharCountReversed, matchedCharCountReversedIgnoreCase, matchedCharCountReversedIgnoreCase, matches, matches, matchesIgnoreCase, padEnd, padEnd, padStart, padStart, parseIntOrDefault, parseIntOrDefault, parseIntOrNull, parseIntOrNull, parseLongOrNull, parseLongOrNull, parseNumberOrNull, parseNumberPrefixOrNull, parseUnsignedIntOrDefault, parseUnsignedIntOrDefault, parseUnsignedIntOrNull, parseUnsignedIntOrNull, safeCharAt, split, split, split, split, split, splitEOL, splitEOL, splitList, splitList, splitList, splitList, splitList, splitListEOL, splitListEOL, splitListEOL, startOfDelimitedBy, startOfDelimitedByAny, startOfDelimitedByAnyNot, startOfLine, startOfLineAnyEOL, startsWith, startsWith, startsWith, startsWithAnyEOL, startsWithEOL, startsWithSpace, startsWithSpaceTab, startsWithWhitespace, subSequence, subSequence, subSequenceAfter, subSequenceBefore, subSequenceBeforeAfter, toStringArray, toVisibleWhitespaceString, trailingBlankLinesRange, trailingBlankLinesRange, trailingBlankLinesRange, trailingBlankLinesRange, trim, trim, trim, trim, trimEnd, trimEnd, trimEnd, trimEnd, trimEndRange, trimEndRange, trimEndRange, trimEndRange, trimEOL, trimLeadBlankLines, trimmed, trimmed, trimmed, trimmed, trimmedEnd, trimmedEnd, trimmedEnd, trimmedEnd, trimmedEOL, trimmedStart, trimmedStart, trimmedStart, trimmedStart, trimRange, trimRange, trimRange, trimRange, trimStart, trimStart, trimStart, trimStart, trimStartRange, trimStartRange, trimStartRange, trimStartRange, trimTailBlankLines, truncateTo, validateIndex, validateIndexInclusiveEnd, validateStartEndboolean equals(@Nullable
@Nullable Object other)
int hashCode()
@NotNull T[] emptyArray()
@NotNull T nullSequence()
char lastChar()
char firstChar()
char safeCharAt(int index)
index - index@NotNull T subSequence(int startIndex, int endIndex)
NOTE: the returned value should only depend on start/end indices. If a subsequence of this sequence with matching start/end should equal (using equals()) all such subsequences of this sequence.
subSequence in interface CharSequencestartIndex - offset from startIndex of this sequenceendIndex - offset from startIndex of this sequence@NotNull T safeSubSequence(int startIndex, int endIndex)
NOTE: the returned value should only depend on start/end indices. If a subsequence of this sequence with matching start/end should equal (using equals()) all such subsequences of this sequence.
startIndex - offset from startIndex of this sequenceendIndex - offset from startIndex of this sequence@NotNull T safeSubSequence(int startIndex)
NOTE: the returned value should only depend on start/end indices. If a subsequence of this sequence with matching start/end should equal (using equals()) all such subsequences of this sequence.
startIndex - offset from startIndex of this sequence@NotNull T subSequence(@NotNull @NotNull Range range)
range - range to get, coordinates offset form start of this sequencenullSequence()@NotNull T subSequenceBefore(@NotNull @NotNull Range range)
range - range to get, coordinates offset form start of this sequencenullSequence()@NotNull T subSequenceAfter(@NotNull @NotNull Range range)
range - range to get, coordinates offset form start of this sequencenullSequence()@NotNull T subSequence(int startIndex)
startIndex - offset from startIndex of this sequence@NotNull T endSequence(int startIndex, int endIndex)
startIndex - offset from endIndex of sequence [ 0..length() )endIndex - offset from endIndex of sequence [ 0..length() )@NotNull T endSequence(int startIndex)
startIndex - offset from endIndex of sequence [ 0..length() )char endCharAt(int index)
index - offset from end of sequence@NotNull T midSequence(int startIndex, int endIndex)
no exceptions are thrown, instead a \0 is returned for an invalid index positions
startIndex - offset into this sequenceendIndex - offset into this sequence@NotNull T midSequence(int startIndex)
no exceptions are thrown, instead a \0 is returned for an invalid index positions
startIndex - offset into this sequencechar midCharAt(int index)
index - of character to get@NotNull T sequenceOf(@Nullable @Nullable CharSequence charSequence)
charSequence - char sequence from which to construct a rich char sequence@NotNull T sequenceOf(@Nullable @Nullable CharSequence charSequence, int startIndex)
charSequence - char sequence from which to construct a rich char sequencestartIndex - start index of the sequence to use@NotNull T sequenceOf(@Nullable @Nullable CharSequence charSequence, int startIndex, int endIndex)
charSequence - char sequence from which to construct a rich char sequencestartIndex - start index of the sequence to useendIndex - end index of the sequence to use@NotNull <B extends ISequenceBuilder<B,T>> B getBuilder()
B - type of builderint indexOf(@NotNull
@NotNull CharSequence s)
The basic methods have overloads for 1, 2, or 3 characters and CharSequence parameters. If fromIndex is not given then for forward searching methods 0 is taken as the value, for reverse searching methods length() is taken as the value
For forward searching methods fromIndex is the minimum start position for search and endIndex is the maximum end position, if not given the length() of string is assumed.
For reverse searching methods fromIndex is the maximum start position for search and startIndex is the minimum end position, if not given then 0 is assumed.
s - character pre whose occurrence to findint indexOf(@NotNull
@NotNull CharSequence s,
int fromIndex)
int indexOf(@NotNull
@NotNull CharSequence s,
int fromIndex,
int endIndex)
int indexOf(char c,
int fromIndex,
int endIndex)
int indexOf(char c,
int fromIndex)
int indexOf(char c)
int indexOfAny(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int fromIndex,
int endIndex)
int indexOfAny(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int fromIndex)
int indexOfAny(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate s)
int indexOfNot(char c,
int fromIndex,
int endIndex)
int indexOfNot(char c,
int fromIndex)
int indexOfNot(char c)
int indexOfAnyNot(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int fromIndex,
int endIndex)
int indexOfAnyNot(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int fromIndex)
int indexOfAnyNot(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate s)
int lastIndexOf(@NotNull
@NotNull CharSequence s)
int lastIndexOf(@NotNull
@NotNull CharSequence s,
int fromIndex)
int lastIndexOf(@NotNull
@NotNull CharSequence s,
int startIndex,
int fromIndex)
int lastIndexOf(char c,
int startIndex,
int fromIndex)
int lastIndexOf(char c,
int fromIndex)
int lastIndexOf(char c)
int lastIndexOfAny(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int startIndex,
int fromIndex)
int lastIndexOfAny(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int fromIndex)
int lastIndexOfAny(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate s)
int lastIndexOfNot(char c)
int lastIndexOfNot(char c,
int fromIndex)
int lastIndexOfNot(char c,
int startIndex,
int fromIndex)
int lastIndexOfAnyNot(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int startIndex,
int fromIndex)
int lastIndexOfAnyNot(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int fromIndex)
int lastIndexOfAnyNot(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate s)
int countLeading(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
Parameters can be CharPredicate, counts any contiguous leading/trailing characters in the sequence which are contained in the given char set.
All functions have overloads: with no fromIndex then 0 is taken for leading and length() for trailing methods with fromIndex then this is taken as the start for leading and end for trailing methods with fromIndex and endIndex, counting will start at fromIndex and stop at endIndex
countLeading(CharPredicate): count contiguous leading characters from set in this sequence countLeadingNot(CharPredicate): count contiguous leading characters not from set in this sequence countTrailing(CharPredicate): count contiguous leading characters from set in this sequence countTrailingNot(CharPredicate): count contiguous leading characters not from set in this sequence
chars - predicate for set of contiguous characters which should be countedint countLeadingNot(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
int countLeading(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int startIndex)
int countLeadingNot(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int startIndex)
int countLeading(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int startIndex,
int endIndex)
int countLeadingNot(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int startIndex,
int endIndex)
@Deprecated default int countLeading(char c)
c - charint countTrailing(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
int countTrailingNot(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
int countTrailing(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int startIndex)
int countTrailingNot(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int startIndex)
int countTrailing(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int startIndex,
int endIndex)
int countTrailingNot(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int startIndex,
int endIndex)
int countLeadingSpace()
int countLeadingNotSpace()
int countLeadingSpace(int startIndex)
int countLeadingNotSpace(int startIndex)
int countLeadingSpace(int startIndex,
int endIndex)
int countLeadingNotSpace(int startIndex,
int endIndex)
int countTrailingSpace()
int countTrailingNotSpace()
int countTrailingSpace(int fromIndex)
int countTrailingNotSpace(int fromIndex)
int countTrailingSpace(int startIndex,
int fromIndex)
int countTrailingNotSpace(int startIndex,
int fromIndex)
int countLeadingSpaceTab()
int countLeadingNotSpaceTab()
int countLeadingSpaceTab(int startIndex)
int countLeadingNotSpaceTab(int startIndex)
int countLeadingSpaceTab(int startIndex,
int endIndex)
int countLeadingNotSpaceTab(int startIndex,
int endIndex)
int countTrailingSpaceTab()
int countTrailingNotSpaceTab()
int countTrailingSpaceTab(int fromIndex)
int countTrailingNotSpaceTab(int fromIndex)
int countTrailingSpaceTab(int startIndex,
int fromIndex)
int countTrailingNotSpaceTab(int startIndex,
int fromIndex)
int countLeadingWhitespace()
int countLeadingNotWhitespace()
int countLeadingWhitespace(int startIndex)
int countLeadingNotWhitespace(int startIndex)
int countLeadingWhitespace(int startIndex,
int endIndex)
int countLeadingNotWhitespace(int startIndex,
int endIndex)
int countTrailingWhitespace()
int countTrailingNotWhitespace()
int countTrailingWhitespace(int fromIndex)
int countTrailingNotWhitespace(int fromIndex)
int countTrailingWhitespace(int startIndex,
int fromIndex)
int countTrailingNotWhitespace(int startIndex,
int fromIndex)
@Deprecated default int countLeading()
@Deprecated default int countTrailing()
int countOfSpaceTab()
int countOfNotSpaceTab()
int countOfWhitespace()
int countOfNotWhitespace()
@Deprecated default int countOf(char c)
int countOfAny(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
int countOfAnyNot(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
int countOfAny(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int startIndex)
int countOfAnyNot(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int startIndex)
int countOfAny(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int startIndex,
int endIndex)
int countOfAnyNot(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int startIndex,
int endIndex)
int countLeadingColumns(int startColumn,
@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
startColumn - column of where this sequence startschars - whitespace characters@NotNull @NotNull Range trimStartRange(int keep, @NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
returns range of kept sequence or if nothing matched then Range.NULL is returned, meaning keep all
If character set in the form of character sequence is not passed in the SequenceUtils.WHITESPACE are assumed.
keep - minimum length of would be trimmed characters to keep. ie. keep 4, will leave 0..4 as is but remove any >4chars - set of characters to trim from start of line@NotNull @NotNull Range trimEndRange(int keep, @NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
@NotNull @NotNull Range trimRange(int keep, @NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
@NotNull @NotNull Range trimStartRange(@NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
@NotNull @NotNull Range trimEndRange(@NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
@NotNull @NotNull Range trimRange(@NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
@NotNull @NotNull Range trimStartRange(int keep)
@NotNull @NotNull Range trimEndRange(int keep)
@NotNull @NotNull Range trimRange(int keep)
@NotNull @NotNull Range trimStartRange()
@NotNull @NotNull Range trimEndRange()
@NotNull @NotNull Range trimRange()
@NotNull T trimStart(int keep, @NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
returns trimmed sequence or if nothing matched the original sequence
If character set in the form of character sequence is not passed in the SequenceUtils.WHITESPACE are assumed.
keep - minimum length of would be trimmed characters to keep. ie. keep 4, will leave 0..4 as is but remove any >4chars - set of characters to trim from start of line@NotNull T trimEnd(int keep, @NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
@NotNull T trim(int keep, @NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
@NotNull T trimStart(int keep)
@NotNull T trimEnd(int keep)
@NotNull T trim(int keep)
@NotNull T trimStart(@NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
@NotNull T trimEnd(@NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
@NotNull T trim(@NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
@NotNull T trimStart()
@NotNull T trimEnd()
@NotNull T trim()
@NotNull T trimmedStart(int keep, @NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
returns trimmed sequence or if nothing matched the original sequence
The pair returning functions return before and after sequence
keep - minimum length of would be trimmed characters to keep. ie. keep 4, will leave 0..4 as is but remove any >4chars - set of characters to trim from start of line@NotNull T trimmedEnd(int keep, @NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
@NotNull @NotNull com.vladsch.flexmark.util.misc.Pair<T,T> trimmed(int keep, @NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
@NotNull T trimmedStart(int keep)
@NotNull T trimmedEnd(int keep)
@NotNull T trimmedStart(@NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
@NotNull T trimmedEnd(@NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
@NotNull @NotNull com.vladsch.flexmark.util.misc.Pair<T,T> trimmed(@NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
@NotNull T trimmedStart()
@NotNull T trimmedEnd()
@NotNull T padding(int length, char pad)
length - lengthpad - char to use for padding@NotNull T padding(int length)
@NotNull T padStart(int length, char pad)
length - length to padpad - char to use for padding@NotNull T padEnd(int length, char pad)
@NotNull T padStart(int length)
@NotNull T padEnd(int length)
boolean isEmpty()
boolean isBlank()
boolean isNotEmpty()
boolean isNotBlank()
boolean isNull()
boolean isNotNull()
@NotNull T ifNull(@NotNull T other)
other - based sequence to return if this is nullSequence()@NotNull T ifNullEmptyAfter(@NotNull T other)
other - based sequence from which to take the empty sequence@NotNull T ifNullEmptyBefore(@NotNull T other)
other - based sequence from which to take the empty sequence@NotNull T nullIfEmpty()
@NotNull T nullIfBlank()
@NotNull T nullIf(boolean condition)
condition - when true return NULL else this@NotNull T nullIf(@NotNull @NotNull BiPredicate<? super T,? super CharSequence> predicate, CharSequence... matches)
predicate - bi predicate for test, first argument is always this, second is one of the match sequencesmatches - match sequence list@NotNull T nullIfNot(@NotNull @NotNull BiPredicate<? super T,? super CharSequence> predicate, CharSequence... matches)
@NotNull T nullIf(@NotNull @NotNull Predicate<? super CharSequence> predicate, CharSequence... matches)
predicate - sequence predicatematches - match sequence list@NotNull T nullIfNot(@NotNull @NotNull Predicate<? super CharSequence> predicate, CharSequence... matches)
@NotNull T nullIf(CharSequence... matches)
matches - match sequence list@NotNull T nullIfNot(CharSequence... matches)
@NotNull T nullIfStartsWith(CharSequence... matches)
@NotNull T nullIfNotStartsWith(CharSequence... matches)
@Deprecated @NotNull default T nullIfStartsWithNot(CharSequence... matches)
@NotNull T nullIfEndsWith(CharSequence... matches)
@NotNull T nullIfNotEndsWith(CharSequence... matches)
@NotNull T nullIfStartsWithIgnoreCase(CharSequence... matches)
@NotNull T nullIfNotStartsWithIgnoreCase(CharSequence... matches)
@NotNull T nullIfEndsWithIgnoreCase(CharSequence... matches)
@NotNull T nullIfNotEndsWithIgnoreCase(CharSequence... matches)
@NotNull T nullIfStartsWith(boolean ignoreCase, CharSequence... matches)
@NotNull T nullIfNotStartsWith(boolean ignoreCase, CharSequence... matches)
@NotNull T nullIfEndsWith(boolean ignoreCase, CharSequence... matches)
@NotNull T nullIfNotEndsWith(boolean ignoreCase, CharSequence... matches)
@Deprecated @NotNull default T nullIfEndsWithNot(CharSequence... matches)
int eolEndLength()
\n - 1 \r - 1 \r\n - 2
@Deprecated default int eolStartLength()
int eolEndLength(int eolEnd)
\n - 1 \r - 1 \r\n - 2
eolEnd - index where the EOL ends, if any, any value can be passed for this
argument. If > length of this sequence then it is the same as passing length(),
if 0 or less then 0 is returned.int eolStartLength(int eolStart)
\n - 1 \r - 1 \r\n - 2
eolStart - index where the EOL starts, if any, any value can be passed for this
argument. If >= length of this sequence then 0 is returned
if 0 or less then it is the same as 0@Deprecated default int eolLength(int eolStart)
@NotNull @NotNull Range eolEndRange(int eolEnd)
eolEnd - index where the EOL ends, if any, any value can be passed for this
argument. If > length of this sequence then it is the same as passing length(),
if 0 or less then 0 is returned.@NotNull @NotNull Range eolStartRange(int eolStart)
eolStart - index where the EOL starts, if any, any value can be passed for this
argument. If >= length of this sequence then 0 is returned
if 0 or less then it is the same as 0@NotNull T trimEOL()
@NotNull T trimmedEOL()
trimEOL()nullSequence()int endOfDelimitedBy(@NotNull
@NotNull CharSequence s,
int index)
For Any and AnyNot methods uses the CharSequence argument as a character set of possible delimiting characters
s - character sequence delimiting the regionindex - from which to start looking for end of regionint endOfDelimitedByAny(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int index)
int endOfDelimitedByAnyNot(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int index)
int startOfDelimitedBy(@NotNull
@NotNull CharSequence s,
int index)
int startOfDelimitedByAny(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int index)
int startOfDelimitedByAnyNot(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int index)
int endOfLine(int index)
index - index where to start searching for end of lineint endOfLineAnyEOL(int index)
index - index where to start searching for end of lineint startOfLine(int index)
index - index where to start searching for end of lineint startOfLineAnyEOL(int index)
index - index where to start searching for end of line@NotNull @NotNull Range lineRangeAt(int index)
index - index at which to get the line@NotNull @NotNull Range lineRangeAtAnyEOL(int index)
index - index at which to get the line@NotNull T lineAt(int index)
index - index at which to get the line@NotNull T lineAtAnyEOL(int index)
index - index at which to get the line@NotNull T trimTailBlankLines()
@NotNull T trimLeadBlankLines()
@NotNull @NotNull Range leadingBlankLinesRange(@NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars, int fromIndex, int endIndex)
eolChars - characters to consider as EOL, note eolStartLength(int) should report length of EOL found if length > 1fromIndex - minimum index in sequence to check and include in range of blank lines
can be any value, if less than 0 it is the same as 0,
if greater than length() it is the same as length()endIndex - index in sequence from which to start blank line search, also maximum index to include in blank lines range
can be any value, if less than 0 it is the same as 0,
if greater than length() it is the same as length()@NotNull @NotNull Range trailingBlankLinesRange(com.vladsch.flexmark.util.misc.CharPredicate eolChars, int startIndex, int fromIndex)
eolChars - characters to consider as EOL, note eolStartLength(int) should report length of EOL found if length > 1startIndex - index in sequence from which to start blank line search, also maximum index to include in blank lines range
can be any value, if less than 0 it is the same as 0,
if greater than length() it is the same as length()fromIndex - maximum index in sequence to check and include in range of blank lines
can be any value, if less than 0 it is the same as 0,
if greater than length() it is the same as length()@NotNull @NotNull Range leadingBlankLinesRange()
@NotNull @NotNull Range leadingBlankLinesRange(int startIndex)
@NotNull @NotNull Range leadingBlankLinesRange(int fromIndex, int endIndex)
@NotNull @NotNull Range trailingBlankLinesRange()
@NotNull @NotNull Range trailingBlankLinesRange(int fromIndex)
@NotNull @NotNull Range trailingBlankLinesRange(int startIndex, int fromIndex)
@NotNull @NotNull List<Range> blankLinesRemovedRanges(int fromIndex, int endIndex)
@NotNull @NotNull List<Range> blankLinesRemovedRanges(@NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars, int fromIndex, int endIndex)
@NotNull T trimToEndOfLine(@NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars, boolean includeEol, int index)
eolChars - characters to consider as EOL, note eolStartLength(int) should report length of EOL found if length > 1includeEol - true if EOL is to be included in the lineindex - index for offset contained by the line
can be any value, if less than 0 it is the same as 0,
if greater than length() it is the same as length()@NotNull T trimToEndOfLine(boolean includeEol, int index)
@NotNull T trimToEndOfLine(boolean includeEol)
@NotNull T trimToEndOfLine(int index)
@NotNull T trimToEndOfLine()
@NotNull T trimToStartOfLine(@NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars, boolean includeEol, int index)
eolChars - characters to consider as EOL, note eolStartLength(int) should report length of EOL found if length > 1includeEol - true if EOL is to be included in the lineindex - index for offset contained by the line
can be any value, if less than 0 it is the same as 0,
if greater than length() it is the same as length()@NotNull T trimToStartOfLine(boolean includeEol, int index)
@NotNull T trimToStartOfLine(boolean includeEol)
@NotNull T trimToStartOfLine(int index)
@NotNull T trimToStartOfLine()
@NotNull @NotNull String normalizeEOL()
@NotNull @NotNull String normalizeEndWithEOL()
boolean matches(@NotNull
@NotNull CharSequence chars)
chars - characters to match againstboolean matchesIgnoreCase(@NotNull
@NotNull CharSequence chars)
boolean matches(@NotNull
@NotNull CharSequence chars,
boolean ignoreCase)
boolean equalsIgnoreCase(@Nullable
@Nullable Object other)
other - characters to match againstboolean equals(@Nullable
@Nullable Object other,
boolean ignoreCase)
other - characters to match againstignoreCase - case ignored when trueboolean matchChars(@NotNull
@NotNull CharSequence chars)
chars - characters to match againstboolean matchCharsIgnoreCase(@NotNull
@NotNull CharSequence chars)
boolean matchChars(@NotNull
@NotNull CharSequence chars,
boolean ignoreCase)
boolean matchChars(@NotNull
@NotNull CharSequence chars,
int startIndex,
boolean ignoreCase)
chars - characters to match againststartIndex - index from which to start the matchignoreCase - if true match ignoring case differencesboolean matchChars(@NotNull
@NotNull CharSequence chars,
int startIndex)
boolean matchCharsIgnoreCase(@NotNull
@NotNull CharSequence chars,
int startIndex)
int matchedCharCount(@NotNull
@NotNull CharSequence chars,
int startIndex,
int endIndex,
boolean fullMatchOnly,
boolean ignoreCase)
chars - characters to match againststartIndex - index from which to start the matchendIndex - index at which to end the matchingfullMatchOnly - if true will do quick fail if length of chars is longer than characters after startIndex in this sequenceignoreCase - if true match ignoring case differencesint matchedCharCount(@NotNull
@NotNull CharSequence chars,
int startIndex,
int endIndex,
boolean ignoreCase)
int matchedCharCount(@NotNull
@NotNull CharSequence chars,
int startIndex,
boolean ignoreCase)
int matchedCharCount(@NotNull
@NotNull CharSequence chars,
int startIndex,
int endIndex)
int matchedCharCount(@NotNull
@NotNull CharSequence chars,
int startIndex)
int matchedCharCountIgnoreCase(@NotNull
@NotNull CharSequence chars,
int startIndex,
int endIndex)
int matchedCharCountIgnoreCase(@NotNull
@NotNull CharSequence chars,
int startIndex)
boolean matchCharsReversed(@NotNull
@NotNull CharSequence chars,
int endIndex,
boolean ignoreCase)
chars - characters to match againstendIndex - index from which to start the match and proceed to 0ignoreCase - if true match ignoring case differencesboolean matchCharsReversed(@NotNull
@NotNull CharSequence chars,
int endIndex)
boolean matchCharsReversedIgnoreCase(@NotNull
@NotNull CharSequence chars,
int endIndex)
int matchedCharCountReversed(@NotNull
@NotNull CharSequence chars,
int startIndex,
int fromIndex,
boolean ignoreCase)
chars - characters to match againststartIndex - index at which to stop the matchfromIndex - index from which to start the match, not inclusive, matching starts at fromIndex-1 and proceeds towards 0ignoreCase - if true match ignoring case differencesint matchedCharCountReversed(@NotNull
@NotNull CharSequence chars,
int startIndex,
int fromIndex)
int matchedCharCountReversedIgnoreCase(@NotNull
@NotNull CharSequence chars,
int startIndex,
int fromIndex)
int matchedCharCountReversed(@NotNull
@NotNull CharSequence chars,
int fromIndex,
boolean ignoreCase)
int matchedCharCountReversed(@NotNull
@NotNull CharSequence chars,
int fromIndex)
int matchedCharCountReversedIgnoreCase(@NotNull
@NotNull CharSequence chars,
int fromIndex)
boolean endsWith(@NotNull
@NotNull CharSequence suffix)
suffix - characters to testboolean endsWith(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
boolean endsWithEOL()
boolean endsWithAnyEOL()
boolean endsWithSpace()
boolean endsWithSpaceTab()
boolean endsWithWhitespace()
boolean endsWithIgnoreCase(@NotNull
@NotNull CharSequence suffix)
suffix - characters to testboolean endsWith(@NotNull
@NotNull CharSequence suffix,
boolean ignoreCase)
suffix - characters to testignoreCase - case ignored when trueboolean startsWith(@NotNull
@NotNull CharSequence prefix)
prefix - characters to testboolean startsWith(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
boolean startsWithEOL()
boolean startsWithAnyEOL()
boolean startsWithSpace()
boolean startsWithSpaceTab()
boolean startsWithWhitespace()
boolean startsWithIgnoreCase(@NotNull
@NotNull CharSequence prefix)
prefix - characters to testboolean startsWith(@NotNull
@NotNull CharSequence prefix,
boolean ignoreCase)
prefix - characters to testignoreCase - case ignored when true@NotNull T removeSuffix(@NotNull @NotNull CharSequence suffix)
suffix - characters to remove@NotNull T removeSuffixIgnoreCase(@NotNull @NotNull CharSequence suffix)
suffix - characters to remove@NotNull T removeSuffix(@NotNull @NotNull CharSequence suffix, boolean ignoreCase)
suffix - characters to removeignoreCase - case ignored when true@NotNull T removePrefix(@NotNull @NotNull CharSequence prefix)
prefix - characters to remove@NotNull T removePrefixIgnoreCase(@NotNull @NotNull CharSequence prefix)
prefix - characters to remove@NotNull T removePrefix(@NotNull @NotNull CharSequence prefix, boolean ignoreCase)
prefix - characters to removeignoreCase - case ignored when true@NotNull T removeProperSuffix(@NotNull @NotNull CharSequence suffix)
suffix - characters to remove@NotNull T removeProperSuffixIgnoreCase(@NotNull @NotNull CharSequence suffix)
suffix - characters to remove@NotNull T removeProperSuffix(@NotNull @NotNull CharSequence suffix, boolean ignoreCase)
suffix - characters to removeignoreCase - case ignored when true@NotNull T removeProperPrefix(@NotNull @NotNull CharSequence prefix)
prefix - characters to remove@NotNull T removeProperPrefixIgnoreCase(@NotNull @NotNull CharSequence prefix)
prefix - characters to remove@NotNull T removeProperPrefix(@NotNull @NotNull CharSequence prefix, boolean ignoreCase)
prefix - characters to removeignoreCase - case ignored when true@NotNull T insert(int index, @NotNull @NotNull CharSequence chars)
index - index of insertion. if >length of this sequence then same as length, if <0 then same as 0chars - char sequence to insert@NotNull @Deprecated default T insert(@NotNull @NotNull CharSequence chars, int index)
insert(int, CharSequence) insteadchars - charsindex - index of insertion@NotNull T delete(int startIndex, int endIndex)
startIndex - start index of deletionendIndex - end index, not inclusive, of insertion@NotNull T replace(int startIndex, int endIndex, @NotNull @NotNull CharSequence replacement)
startIndex - start index of replaced partendIndex - end index of replaced partreplacement - char sequence@NotNull T replace(@NotNull @NotNull CharSequence find, @NotNull @NotNull CharSequence replace)
find - sequence to findreplace - replacement sequence@NotNull T toLowerCase()
@NotNull T toUpperCase()
@NotNull T toMapped(CharMapper mapper)
@NotNull T toNbSp()
@NotNull T toSpc()
@NotNull @NotNull String toVisibleWhitespaceString()
@NotNull @NotNull List<T> splitList(@NotNull @NotNull CharSequence delimiter, int limit, int flags, @Nullable @Nullable com.vladsch.flexmark.util.misc.CharPredicate trimChars)
delimiter - delimiter char sequence to use for splittinglimit - max number of segments to splitflags - flags for desired options:
SPLIT_INCLUDE_DELIMS: include delimiters as part of split item
SPLIT_TRIM_PARTS: trim the segments, if trimChars is not null or empty then this flag is turned on automatically
SPLIT_SKIP_EMPTY: skip empty segments (or empty after trimming if enabled)
SPLIT_INCLUDE_DELIM_PARTS: include delimiters as separate split item of its own
SPLIT_TRIM_SKIP_EMPTY: same as SPLIT_TRIM_PARTS | SPLIT_SKIP_EMPTYtrimChars - set of characters that should be used for trimming individual split results@NotNull @NotNull List<T> splitList(@NotNull @NotNull CharSequence delimiter, int limit, int flags)
@NotNull @NotNull List<T> splitList(@NotNull @NotNull CharSequence delimiter)
@NotNull T[] split(@NotNull @NotNull CharSequence delimiter, int limit, int flags, @Nullable @Nullable com.vladsch.flexmark.util.misc.CharPredicate trimChars)
@NotNull T[] split(@NotNull @NotNull CharSequence delimiter, int limit, int flags)
@NotNull T[] split(@NotNull @NotNull CharSequence delimiter)
@Deprecated @NotNull default T[] split(char delimiter, int limit, int flags)
@Deprecated @NotNull default T[] split(char delimiter, int limit)
@Deprecated @NotNull default T[] split(char delimiter)
@NotNull @NotNull List<T> splitList(@NotNull @NotNull CharSequence delimiter, int limit, boolean includeDelims, @Nullable @Nullable com.vladsch.flexmark.util.misc.CharPredicate trimChars)
delimiter - sequence of chars on which to split this sequencelimit - max number of segments to splitincludeDelims - if true include delimiters as part of split itemtrimChars - set of characters that should be used for trimming individual split results@NotNull @NotNull List<T> splitList(@NotNull @NotNull CharSequence delimiter, boolean includeDelims, @Nullable @Nullable com.vladsch.flexmark.util.misc.CharPredicate trimChars)
@NotNull T[] split(@NotNull @NotNull CharSequence delimiter, int limit, boolean includeDelims, @Nullable @Nullable com.vladsch.flexmark.util.misc.CharPredicate trimChars)
@NotNull T[] split(@NotNull @NotNull CharSequence delimiter, boolean includeDelims, @Nullable @Nullable com.vladsch.flexmark.util.misc.CharPredicate trimChars)
@NotNull T[] splitEOL()
@NotNull T[] splitEOL(boolean includeDelims)
@NotNull @NotNull List<T> splitListEOL(boolean includeDelims, @Nullable @Nullable com.vladsch.flexmark.util.misc.CharPredicate trimChars)
@NotNull
@NotNull int[] indexOfAll(@NotNull
@NotNull CharSequence s)
s - sequence whose indices to find@NotNull T prefixWith(@Nullable @Nullable CharSequence prefix)
prefix - char sequence@NotNull T suffixWith(@Nullable @Nullable CharSequence suffix)
suffix - char sequence@NotNull T prefixOnceWith(@Nullable @Nullable CharSequence prefix)
prefix - char sequence@NotNull T suffixOnceWith(@Nullable @Nullable CharSequence suffix)
suffix - char sequence@NotNull T appendEOL()
@NotNull T suffixWithEOL()
@NotNull T prefixWithEOL()
@NotNull T prefixOnceWithEOL()
@NotNull T suffixOnceWithEOL()
@NotNull T appendSpace()
@NotNull T suffixWithSpace()
@NotNull T prefixWithSpace()
@NotNull T appendSpaces(int count)
@NotNull T suffixWithSpaces(int count)
@NotNull T prefixWithSpaces(int count)
@NotNull T prefixOnceWithSpace()
@NotNull T suffixOnceWithSpace()
@NotNull T appendTo(@NotNull @NotNull StringBuilder out, @Nullable @Nullable CharMapper charMapper, int startIndex, int endIndex)
out - string builderstartIndex - start indexendIndex - end indexcharMapper - mapping to use for output or null if none@NotNull T appendTo(@NotNull @NotNull StringBuilder out, @Nullable @Nullable CharMapper charMapper)
@NotNull T appendTo(@NotNull @NotNull StringBuilder out, @Nullable @Nullable CharMapper charMapper, int startIndex)
@NotNull T appendTo(@NotNull @NotNull StringBuilder out, int startIndex, int endIndex)
@NotNull T appendTo(@NotNull @NotNull StringBuilder out)
@NotNull T appendTo(@NotNull @NotNull StringBuilder out, int startIndex)
@NotNull T appendRangesTo(@NotNull @NotNull StringBuilder out, @Nullable @Nullable CharMapper charMapper, Range... ranges)
out - string builder to append tocharMapper - mapping to use for output or null if noneranges - ranges to append, null range or one for which range.isNull() is true ranges are skipped@NotNull T appendRangesTo(@NotNull @NotNull StringBuilder out, Range... ranges)
@NotNull T appendRangesTo(@NotNull @NotNull StringBuilder out, @Nullable @Nullable CharMapper charMapper, Iterable<? extends Range> ranges)
@NotNull T appendRangesTo(@NotNull @NotNull StringBuilder out, Iterable<? extends Range> ranges)
@NotNull T extractRanges(Range... ranges)
NOTE: BasedSequence ranges must be non-overlapping and ordered by startOffset or IllegalArgumentException will be thrown
ranges - ranges to extract@NotNull T append(CharSequence... sequences)
sequences - list of char sequences to append to this sequence, null sequences are skipped@NotNull T append(Iterable<? extends CharSequence> sequences)
@NotNull @NotNull com.vladsch.flexmark.util.misc.Pair<Integer,Integer> lineColumnAtIndex(int index)
index - index for which to get line information@Deprecated @NotNull default @NotNull com.vladsch.flexmark.util.misc.Pair<Integer,Integer> getLineColumnAtIndex(int index)
int columnAtIndex(int index)
@Deprecated default int getColumnAtIndex(int index)
boolean isCharAt(int index,
@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate predicate)
index - index in stringpredicate - character set predicate@Nullable @Nullable String toStringOrNull()
boolean isIn(@NotNull
@NotNull String[] texts)
boolean isIn(@NotNull
@NotNull Collection<? extends CharSequence> texts)
Copyright © 2020. All rights reserved.