| Modifier and Type | Interface and Description |
|---|---|
interface |
ReplacedBasedSequence
Interface implemented by sequences which do not contain contiguous base characters
from startOffset to endOffset
|
| Modifier and Type | Class and Description |
|---|---|
static class |
BasedSequence.EmptyBasedSequence |
class |
BasedSequenceImpl
Implementation of BaseSequence
|
class |
CharSubSequence
A CharSequence that references original char[]
a subSequence() returns a sub-sequence from the original base sequence
|
class |
MappedBasedSequence
A BasedSequence which maps characters according to CharMapper
|
class |
PrefixedSubSequence
A BasedSequence with an out of scope of original char sequence prefix
|
class |
SegmentedSequence
A BasedSequence which consists of segments of other BasedSequences
|
class |
SegmentedSequenceFull
A BasedSequence which consists of segments of other BasedSequences
NOTE: very efficient for random access but extremely wasteful with space by allocating 4 bytes per character in the sequence with corresponding construction penalty
use SegmentedSequenceTree which is binary tree based segmented sequence with minimal overhead and optimized to give penalty free random access for most applications.
|
class |
SegmentedSequenceTree
A BasedSequence which consists of segments of other BasedSequences
NOTE: very efficient for random access but extremely wasteful with space by allocating 4 bytes per character in the sequence with corresponding construction penalty
use SegmentedSequenceTree which is binary tree based segmented sequence with minimal overhead and optimized to give penalty free random access for most applications.
|
class |
SubSequence
A BasedSequence implementation which wraps original CharSequence to provide a BasedSequence for
all its subsequences, a subSequence() returns a SubSequence from the original base sequence.
|
| Modifier and Type | Field and Description |
|---|---|
protected BasedSequence |
SegmentedSequence.baseSeq |
static BasedSequence |
BasedSequence.EMPTY |
static BasedSequence[] |
BasedSequence.EMPTY_ARRAY |
static BasedSequence[] |
BasedSequence.EMPTY_SEGMENTS |
static BasedSequence |
BasedSequence.EOL |
static BasedSequence |
BasedSequence.LINE_SEP |
static BasedSequence |
BasedSequence.NULL |
static BasedSequence |
BasedSequence.SPACE |
| Modifier and Type | Field and Description |
|---|---|
static List<BasedSequence> |
BasedSequence.EMPTY_LIST |
| Modifier and Type | Method and Description |
|---|---|
static BasedSequence |
BasedUtils.asBased(CharSequence sequence) |
@NotNull BasedSequence |
Range.basedSafeSubSequence(@NotNull CharSequence charSequence) |
@NotNull BasedSequence |
Range.basedSubSequence(@NotNull CharSequence charSequence) |
@NotNull BasedSequence |
BasedSequence.baseSubSequence(int startIndex)
Get a portion of the original sequence that this sequence is based on
|
@NotNull BasedSequence |
BasedSequenceImpl.baseSubSequence(int startIndex) |
@NotNull BasedSequence |
PrefixedSubSequence.baseSubSequence(int startIndex,
int endIndex) |
@NotNull BasedSequence |
BasedSequence.baseSubSequence(int startIndex,
int endIndex)
Get a portion of this sequence's base sequence
|
@NotNull BasedSequence |
BasedSequence.EmptyBasedSequence.baseSubSequence(int startIndex,
int endIndex) |
@NotNull BasedSequence |
SegmentedSequence.baseSubSequence(int startIndex,
int endIndex) |
@NotNull BasedSequence |
BasedSequenceImpl.baseSubSequence(int startIndex,
int endIndex) |
static @NotNull BasedSequence |
Escaping.collapseWhitespace(@NotNull BasedSequence s,
@NotNull ReplacedTextMapper textMapper) |
static BasedSequence |
SegmentedSequence.create(BasedSequence... segments) |
static BasedSequence |
SegmentedSequence.create(BasedSequence basedSequence,
@NotNull Iterable<? extends BasedSequence> segments)
Use
getBuilder() and then ISequenceBuilder.addAll(Iterable) or
if you know which are based segments vs. |
static BasedSequence |
SegmentedSequence.create(SequenceBuilder builder) |
@NotNull BasedSequence[] |
BasedSequenceImpl.emptyArray() |
static BasedSequence |
Html5Entities.entityToSequence(BasedSequence input) |
static @NotNull BasedSequence |
Escaping.escapeHtml(@NotNull BasedSequence s,
boolean preserveEntities,
@NotNull ReplacedTextMapper textMapper) |
@NotNull BasedSequence |
BasedSequence.extendByAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate charSet) |
@NotNull BasedSequence |
BasedSequenceImpl.extendByAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate charSet) |
@NotNull BasedSequence |
BasedSequence.extendByAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate charSet,
int maxCount)
Extend this based sequence to include characters from underlying based sequence
|
@NotNull BasedSequence |
BasedSequenceImpl.extendByAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate charSet,
int maxCount) |
@NotNull BasedSequence |
BasedSequence.extendByAnyNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate charSet) |
@NotNull BasedSequence |
BasedSequenceImpl.extendByAnyNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate charSet) |
@NotNull BasedSequence |
BasedSequence.extendByAnyNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate charSet,
int maxCount)
Extend this based sequence to include characters from underlying based sequence not in character set
|
@NotNull BasedSequence |
BasedSequenceImpl.extendByAnyNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate charSet,
int maxCount) |
@NotNull BasedSequence |
BasedSequence.extendByOneOfAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate charSet) |
@NotNull BasedSequence |
BasedSequenceImpl.extendByOneOfAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate charSet) |
@NotNull BasedSequence |
BasedSequence.extendByOneOfAnyNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate charSet) |
@NotNull BasedSequence |
BasedSequenceImpl.extendByOneOfAnyNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate charSet) |
default @NotNull BasedSequence |
BasedSequence.extendToAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate charSet)
Deprecated.
|
default @NotNull BasedSequence |
BasedSequence.extendToAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate charSet,
int maxCount)
Deprecated.
|
@NotNull BasedSequence |
BasedSequence.extendToEndOfLine() |
@NotNull BasedSequence |
BasedSequenceImpl.extendToEndOfLine() |
@NotNull BasedSequence |
BasedSequence.extendToEndOfLine(boolean includeEol) |
@NotNull BasedSequence |
BasedSequenceImpl.extendToEndOfLine(boolean includeEol) |
@NotNull BasedSequence |
BasedSequence.extendToEndOfLine(@NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars) |
@NotNull BasedSequence |
BasedSequenceImpl.extendToEndOfLine(@NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars) |
@NotNull BasedSequence |
BasedSequence.extendToEndOfLine(@NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars,
boolean includeEol)
Extend in contained based sequence
|
@NotNull BasedSequence |
BasedSequenceImpl.extendToEndOfLine(@NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars,
boolean includeEol) |
@NotNull BasedSequence |
BasedSequence.extendToStartOfLine() |
@NotNull BasedSequence |
BasedSequenceImpl.extendToStartOfLine() |
@NotNull BasedSequence |
BasedSequence.extendToStartOfLine(boolean includeEol) |
@NotNull BasedSequence |
BasedSequenceImpl.extendToStartOfLine(boolean includeEol) |
@NotNull BasedSequence |
BasedSequence.extendToStartOfLine(@NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars) |
@NotNull BasedSequence |
BasedSequenceImpl.extendToStartOfLine(@NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars) |
@NotNull BasedSequence |
BasedSequence.extendToStartOfLine(@NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars,
boolean includeEol)
Extend in contained based sequence
|
@NotNull BasedSequence |
BasedSequenceImpl.extendToStartOfLine(@NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars,
boolean includeEol) |
static BasedSequence |
BasedSequenceImpl.firstNonNull(BasedSequence... sequences) |
@NotNull BasedSequence |
BasedSequence.EmptyBasedSequence.getBase() |
@NotNull BasedSequence |
PrefixedSubSequence.getBaseSequence() |
@NotNull BasedSequence |
BasedSequence.getBaseSequence()
Get the base sequence for the text
|
@NotNull BasedSequence |
BasedSequence.EmptyBasedSequence.getBaseSequence() |
@NotNull BasedSequence |
SegmentedSequence.getBaseSequence() |
@NotNull BasedSequence |
MappedBasedSequence.getBaseSequence() |
@NotNull BasedSequence |
LineAppendable.getBeforeEolPrefix()
Get prefix used before EOL
|
@NotNull BasedSequence |
LineAppendableImpl.getBeforeEolPrefix() |
@NotNull BasedSequence |
MappedBasedSequence.getCharSequence() |
@NotNull BasedSequence |
BasedSequence.getEmptyPrefix()
Get empty prefix to this sequence
|
@NotNull BasedSequence |
BasedSequenceImpl.getEmptyPrefix() |
@NotNull BasedSequence |
BasedSequence.getEmptySuffix()
Get empty suffix to this sequence
|
@NotNull BasedSequence |
BasedSequenceImpl.getEmptySuffix() |
@NotNull BasedSequence |
LineInfo.getEOL() |
@NotNull BasedSequence |
LineAppendable.getIndentPrefix()
Get prefix appended after a new line character for every indent level
|
@NotNull BasedSequence |
LineAppendableImpl.getIndentPrefix() |
@NotNull BasedSequence |
LineInfo.getLine() |
@NotNull BasedSequence |
LineAppendable.getLine(int lineIndex)
Get Line at given line index
|
@NotNull BasedSequence |
LineAppendableImpl.getLine(int lineIndex) |
default @NotNull BasedSequence |
LineAppendable.getLineContent(int lineIndex)
Get Line content of given line
|
@NotNull BasedSequence |
LineInfo.getLineNoEOL() |
default @NotNull BasedSequence |
LineAppendable.getLinePrefix(int lineIndex)
Get prefix of given line
|
@NotNull BasedSequence |
LineInfo.getPrefix() |
@NotNull BasedSequence |
LineAppendable.getPrefix()
Get prefix being applied to all lines, even in pre-formatted sections
This is the prefix that will be set after EOL
|
@NotNull BasedSequence |
LineAppendableImpl.getPrefix() |
BasedSequence |
ReplacedTextMapper.getReplacedSequence() |
@NotNull BasedSequence |
LineInfo.getText() |
@NotNull BasedSequence |
LineInfo.getTextNoEOL() |
@NotNull BasedSequence |
BasedSequence.intersect(@NotNull BasedSequence other)
start/end offset based intersection, not textual
|
@NotNull BasedSequence |
BasedSequenceImpl.intersect(@NotNull BasedSequence other) |
static @NotNull BasedSequence |
MappedBasedSequence.mappedOf(@NotNull BasedSequence baseSeq,
@NotNull CharMapper mapper) |
static @NotNull BasedSequence |
Escaping.normalizeEndWithEOL(@NotNull BasedSequence s,
@NotNull ReplacedTextMapper textMapper)
Normalize eol: embedded \r and \r\n are converted to \n
|
@NotNull BasedSequence |
BasedSequence.normalizeEndWithEOL(@NotNull ReplacedTextMapper textMapper)
replace any \r\n and \r by \n, append terminating EOL if one is not present
|
@NotNull BasedSequence |
BasedSequenceImpl.normalizeEndWithEOL(@NotNull ReplacedTextMapper textMapper) |
static @NotNull BasedSequence |
Escaping.normalizeEOL(@NotNull BasedSequence s,
@NotNull ReplacedTextMapper textMapper)
Normalize eol: embedded \r and \r\n are converted to \n
|
static @NotNull BasedSequence |
Escaping.normalizeEOL(@NotNull BasedSequence s,
@NotNull ReplacedTextMapper textMapper,
boolean endWithEOL)
Normalize eol: embedded \r and \r\n are converted to \n
|
@NotNull BasedSequence |
BasedSequence.normalizeEOL(@NotNull ReplacedTextMapper textMapper)
replace any \r\n and \r by \n
|
@NotNull BasedSequence |
BasedSequenceImpl.normalizeEOL(@NotNull ReplacedTextMapper textMapper) |
@NotNull BasedSequence |
BasedSequenceImpl.nullSequence() |
static BasedSequence |
SegmentedSequenceFull.of(BasedSequence... segments)
Deprecated.
|
static BasedSequence |
SegmentedSequence.of(BasedSequence... segments)
Deprecated.
|
static BasedSequence |
SegmentedSequenceFull.of(BasedSequence basedSequence,
@NotNull Iterable<? extends BasedSequence> segments)
Deprecated.
use
getBuilder() and then ISequenceBuilder.addAll(Iterable)
or if you know which are based segments vs. out of base Strings then use BasedSegmentBuilder
to construct segments directly. If you must use segments then use SegmentedSequence.create(BasedSequence, Iterable)
which does the builder calls for you. |
static BasedSequence |
SegmentedSequence.of(BasedSequence basedSequence,
@NotNull Iterable<? extends BasedSequence> segments)
Deprecated.
use
getBuilder() and then ISequenceBuilder.addAll(Iterable) or if you know which are based segments vs. out of base Strings then use BasedSegmentBuilder to construct segments directly.
If you absolutely need to use the old method then use SegmentedSequence.create(BasedSequence, Iterable) |
static @NotNull BasedSequence |
BasedSequence.of(@Nullable CharSequence charSequence) |
static BasedSequence |
BasedSequenceImpl.of(@Nullable CharSequence charSequence)
Deprecated.
|
static BasedSequence |
SubSequence.of(@Nullable CharSequence charSequence)
Deprecated.
|
static @NotNull BasedSequence |
BasedSequence.of(@Nullable CharSequence charSequence,
int startIndex)
Deprecated.
|
static BasedSequence |
BasedSequenceImpl.of(@Nullable CharSequence charSequence,
int startIndex)
Deprecated.
|
static BasedSequence |
SubSequence.of(@Nullable CharSequence charSequence,
int startIndex)
Deprecated.
|
static @NotNull BasedSequence |
BasedSequence.of(@Nullable CharSequence charSequence,
int startIndex,
int endIndex)
Deprecated.
|
static BasedSequence |
BasedSequenceImpl.of(@Nullable CharSequence charSequence,
int startIndex,
int endIndex)
Deprecated.
|
static BasedSequence |
SubSequence.of(@Nullable CharSequence charSequence,
int startIndex,
int endIndex)
Deprecated.
|
static @NotNull BasedSequence |
BasedSequence.ofSpaces(int count) |
static @NotNull BasedSequence |
Escaping.percentDecodeUrl(@NotNull BasedSequence s,
@NotNull ReplacedTextMapper textMapper) |
static @NotNull BasedSequence |
Escaping.percentEncodeUrl(@NotNull BasedSequence s,
@NotNull ReplacedTextMapper textMapper) |
@NotNull BasedSequence |
BasedSequence.prefixOf(@NotNull BasedSequence other)
Get the prefix part of this from other, start/end offset based containment, not textual
|
@NotNull BasedSequence |
BasedSequenceImpl.prefixOf(@NotNull BasedSequence other) |
@NotNull BasedSequence |
BasedSequenceImpl.prefixWith(@Nullable CharSequence prefix) |
@NotNull BasedSequence |
BasedSequence.prefixWithIndent() |
@NotNull BasedSequence |
BasedSequenceImpl.prefixWithIndent() |
@NotNull BasedSequence |
BasedSequence.prefixWithIndent(int maxColumns)
Extend this based sequence to include characters from underlying based sequence
taking tab expansion to 4th spaces into account
|
@NotNull BasedSequence |
BasedSequenceImpl.prefixWithIndent(int maxColumns) |
static @NotNull BasedSequence |
Escaping.removeAll(@NotNull BasedSequence s,
@NotNull CharSequence remove,
@NotNull ReplacedTextMapper textMapper)
Replace entities and backslash escapes with literal characters.
|
static @NotNull BasedSequence |
BasedSequence.repeatOf(char c,
int count) |
static @NotNull BasedSequence |
BasedSequence.repeatOf(@NotNull CharSequence chars,
int count) |
static @NotNull BasedSequence |
BasedSequence.repeatOf(@NotNull CharSequence chars,
int startIndex,
int endIndex) |
@NotNull BasedSequence |
BasedSequenceImpl.sequenceOf(@Nullable CharSequence charSequence,
int startIndex,
int endIndex) |
@NotNull BasedSequence |
MappedBasedSequence.sequenceOf(@Nullable CharSequence baseSeq,
int startIndex,
int endIndex) |
@NotNull BasedSequence |
BasedSequence.spliceAtEnd(@NotNull BasedSequence other)
Splice the given sequence to the end of this one and return a BasedSequence of the result.
|
@NotNull BasedSequence |
BasedSequenceImpl.spliceAtEnd(@NotNull BasedSequence other) |
@NotNull BasedSequence |
Range.subSequence(@NotNull CharSequence charSequence)
Deprecated.
use
Range.basedSubSequence(CharSequence) instead |
@NotNull BasedSequence |
SegmentedSequenceFull.subSequence(int startIndex,
int endIndex) |
@NotNull BasedSequence |
PrefixedSubSequence.subSequence(int startIndex,
int endIndex) |
@NotNull BasedSequence |
BasedSequence.subSequence(int startIndex,
int endIndex)
Get a portion of this sequence
|
@NotNull BasedSequence |
BasedSequence.EmptyBasedSequence.subSequence(int i,
int i1) |
@NotNull BasedSequence |
SegmentedSequenceTree.subSequence(int startIndex,
int endIndex) |
@NotNull BasedSequence |
MappedBasedSequence.subSequence(int startIndex,
int endIndex) |
@NotNull BasedSequence |
BasedSequence.suffixOf(@NotNull BasedSequence other)
Get the suffix part of this from other, start/end offset based containment, not textual
|
@NotNull BasedSequence |
BasedSequenceImpl.suffixOf(@NotNull BasedSequence other) |
@NotNull BasedSequence |
BasedSequenceImpl.toMapped(CharMapper mapper) |
@NotNull BasedSequence |
MappedBasedSequence.toMapped(CharMapper mapper) |
static @NotNull BasedSequence |
Escaping.unescape(@NotNull BasedSequence s,
@NotNull ReplacedTextMapper textMapper)
Replace entities and backslash escapes with literal characters.
|
@NotNull BasedSequence |
BasedSequence.unescape(@NotNull ReplacedTextMapper textMapper)
Get the unescaped string of this sequence content
|
@NotNull BasedSequence |
BasedSequenceImpl.unescape(@NotNull ReplacedTextMapper textMapper) |
static @NotNull BasedSequence |
Escaping.unescapeHtml(@NotNull BasedSequence s,
@NotNull List<Range> ranges,
@NotNull ReplacedTextMapper textMapper)
Replace entities and backslash escapes with literal characters.
|
static @NotNull BasedSequence |
Escaping.unescapeHtml(@NotNull BasedSequence s,
@NotNull ReplacedTextMapper textMapper)
Replace entities and backslash escapes with literal characters.
|
| Modifier and Type | Method and Description |
|---|---|
ArrayList<BasedSequence> |
ReplacedTextMapper.getReplacedSegments() |
| Modifier and Type | Method and Description |
|---|---|
void |
ReplacedTextMapper.addReplacedText(int startIndex,
int endIndex,
BasedSequence replacedSequence) |
static @NotNull BasedSequence |
Escaping.collapseWhitespace(@NotNull BasedSequence s,
@NotNull ReplacedTextMapper textMapper) |
boolean |
BasedSequence.containsAllOf(@NotNull BasedSequence other)
start/end offset based containment, not textual
|
boolean |
BasedSequenceImpl.containsAllOf(@NotNull BasedSequence other) |
boolean |
BasedSequence.containsSomeOf(@NotNull BasedSequence other)
start/end offset based containment, not textual
|
boolean |
BasedSequenceImpl.containsSomeOf(@NotNull BasedSequence other) |
static BasedSequence |
SegmentedSequence.create(BasedSequence... segments) |
static SegmentedSequenceFull |
SegmentedSequenceFull.create(@NotNull BasedSequence baseSequence,
ISegmentBuilder<?> builder)
Base Constructor
|
static SegmentedSequenceTree |
SegmentedSequenceTree.create(@NotNull BasedSequence baseSeq,
ISegmentBuilder<?> builder)
Base Constructor
|
static BasedSequence |
SegmentedSequence.create(BasedSequence basedSequence,
@NotNull Iterable<? extends BasedSequence> segments)
Use
getBuilder() and then ISequenceBuilder.addAll(Iterable) or
if you know which are based segments vs. |
static BasedSequence |
Html5Entities.entityToSequence(BasedSequence input) |
static @NotNull BasedSequence |
Escaping.escapeHtml(@NotNull BasedSequence s,
boolean preserveEntities,
@NotNull ReplacedTextMapper textMapper) |
static BasedSequence |
BasedSequenceImpl.firstNonNull(BasedSequence... sequences) |
static void |
BasedUtils.generateSegments(IBasedSegmentBuilder<?> segments,
@NotNull BasedSequence chars)
Generate segments for given sequence
|
@NotNull BasedSequence |
BasedSequence.intersect(@NotNull BasedSequence other)
start/end offset based intersection, not textual
|
@NotNull BasedSequence |
BasedSequenceImpl.intersect(@NotNull BasedSequence other) |
boolean |
BasedSequence.isContinuationOf(@NotNull BasedSequence other)
Test if this sequence is a continuation of the given sequence in original source text
|
boolean |
BasedSequenceImpl.isContinuationOf(@NotNull BasedSequence other) |
boolean |
BasedSequence.isContinuedBy(@NotNull BasedSequence other)
Test if the given sequence is a continuation of this sequence in original source text
|
boolean |
BasedSequenceImpl.isContinuedBy(@NotNull BasedSequence other) |
static @NotNull BasedSequence |
MappedBasedSequence.mappedOf(@NotNull BasedSequence baseSeq,
@NotNull CharMapper mapper) |
static @NotNull BasedSequence |
Escaping.normalizeEndWithEOL(@NotNull BasedSequence s,
@NotNull ReplacedTextMapper textMapper)
Normalize eol: embedded \r and \r\n are converted to \n
|
static @NotNull BasedSequence |
Escaping.normalizeEOL(@NotNull BasedSequence s,
@NotNull ReplacedTextMapper textMapper)
Normalize eol: embedded \r and \r\n are converted to \n
|
static @NotNull BasedSequence |
Escaping.normalizeEOL(@NotNull BasedSequence s,
@NotNull ReplacedTextMapper textMapper,
boolean endWithEOL)
Normalize eol: embedded \r and \r\n are converted to \n
|
static BasedSequence |
SegmentedSequenceFull.of(BasedSequence... segments)
Deprecated.
|
static BasedSequence |
SegmentedSequence.of(BasedSequence... segments)
Deprecated.
|
static BasedSequence |
SegmentedSequenceFull.of(BasedSequence basedSequence,
@NotNull Iterable<? extends BasedSequence> segments)
Deprecated.
use
getBuilder() and then ISequenceBuilder.addAll(Iterable)
or if you know which are based segments vs. out of base Strings then use BasedSegmentBuilder
to construct segments directly. If you must use segments then use SegmentedSequence.create(BasedSequence, Iterable)
which does the builder calls for you. |
static BasedSequence |
SegmentedSequence.of(BasedSequence basedSequence,
@NotNull Iterable<? extends BasedSequence> segments)
Deprecated.
use
getBuilder() and then ISequenceBuilder.addAll(Iterable) or if you know which are based segments vs. out of base Strings then use BasedSegmentBuilder to construct segments directly.
If you absolutely need to use the old method then use SegmentedSequence.create(BasedSequence, Iterable) |
static PrefixedSubSequence |
PrefixedSubSequence.of(CharSequence prefix,
BasedSequence baseSeq)
Deprecated.
|
static PrefixedSubSequence |
PrefixedSubSequence.of(CharSequence prefix,
BasedSequence baseSeq,
int startIndex)
Deprecated.
|
static PrefixedSubSequence |
PrefixedSubSequence.of(CharSequence prefix,
BasedSequence baseSeq,
int startIndex,
int endIndex)
Deprecated.
|
static @NotNull BasedSequence |
Escaping.percentDecodeUrl(@NotNull BasedSequence s,
@NotNull ReplacedTextMapper textMapper) |
static @NotNull BasedSequence |
Escaping.percentEncodeUrl(@NotNull BasedSequence s,
@NotNull ReplacedTextMapper textMapper) |
@NotNull BasedSequence |
BasedSequence.prefixOf(@NotNull BasedSequence other)
Get the prefix part of this from other, start/end offset based containment, not textual
|
@NotNull BasedSequence |
BasedSequenceImpl.prefixOf(@NotNull BasedSequence other) |
static PrefixedSubSequence |
PrefixedSubSequence.prefixOf(CharSequence prefix,
BasedSequence baseSeq) |
static PrefixedSubSequence |
PrefixedSubSequence.prefixOf(CharSequence prefix,
BasedSequence baseSeq,
int startIndex) |
static PrefixedSubSequence |
PrefixedSubSequence.prefixOf(CharSequence prefix,
BasedSequence baseSeq,
int startIndex,
int endIndex) |
static @NotNull BasedSequence |
Escaping.removeAll(@NotNull BasedSequence s,
@NotNull CharSequence remove,
@NotNull ReplacedTextMapper textMapper)
Replace entities and backslash escapes with literal characters.
|
static PrefixedSubSequence |
PrefixedSubSequence.repeatOf(char prefix,
int count,
BasedSequence baseSeq) |
static PrefixedSubSequence |
PrefixedSubSequence.repeatOf(CharSequence prefix,
int count,
BasedSequence baseSeq) |
@NotNull BasedSequence |
BasedSequence.spliceAtEnd(@NotNull BasedSequence other)
Splice the given sequence to the end of this one and return a BasedSequence of the result.
|
@NotNull BasedSequence |
BasedSequenceImpl.spliceAtEnd(@NotNull BasedSequence other) |
void |
ReplacedTextMapper.startNestedReplacement(BasedSequence sequence) |
@NotNull BasedSequence |
BasedSequence.suffixOf(@NotNull BasedSequence other)
Get the suffix part of this from other, start/end offset based containment, not textual
|
@NotNull BasedSequence |
BasedSequenceImpl.suffixOf(@NotNull BasedSequence other) |
static @NotNull BasedSequence |
Escaping.unescape(@NotNull BasedSequence s,
@NotNull ReplacedTextMapper textMapper)
Replace entities and backslash escapes with literal characters.
|
static @NotNull BasedSequence |
Escaping.unescapeHtml(@NotNull BasedSequence s,
@NotNull List<Range> ranges,
@NotNull ReplacedTextMapper textMapper)
Replace entities and backslash escapes with literal characters.
|
static @NotNull BasedSequence |
Escaping.unescapeHtml(@NotNull BasedSequence s,
@NotNull ReplacedTextMapper textMapper)
Replace entities and backslash escapes with literal characters.
|
| Constructor and Description |
|---|
ReplacedTextMapper(BasedSequence original) |
SegmentedSequence(BasedSequence baseSeq,
int startOffset,
int endOffset,
int length) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull BasedSequence |
BasedSegmentBuilder.getBaseSequence() |
@NotNull BasedSequence |
IBasedSegmentBuilder.getBaseSequence() |
@NotNull BasedSequence |
SequenceBuilder.getBaseSequence() |
@Nullable BasedSequence |
SequenceBuilder.getSingleBasedSequence() |
@NotNull BasedSequence |
SequenceBuilder.toSequence() |
@NotNull BasedSequence |
SequenceBuilder.toSequence(@NotNull BasedSequence altSequence)
Construct sequence from this builder using another based sequence which is character identical to this builder's baseSeq
|
@NotNull BasedSequence |
SequenceBuilder.toSequence(@NotNull BasedSequence altSequence,
@Nullable com.vladsch.flexmark.util.misc.CharPredicate trimStart,
@Nullable com.vladsch.flexmark.util.misc.CharPredicate ignoreCharDiff)
Construct sequence from this builder using another based sequence which is character identical to this builder's baseSeq
|
@NotNull BasedSequence |
SequenceBuilder.toSequenceByIndex(@NotNull BasedSequence altSequence,
@Nullable com.vladsch.flexmark.util.misc.CharPredicate trimStart,
@Nullable com.vladsch.flexmark.util.misc.CharPredicate ignoreCharDiff)
Construct sequence from this builder using another based sequence which is character identical to this builder's baseSeq by length
|
| Modifier and Type | Method and Description |
|---|---|
static @NotNull BasedSegmentBuilder |
BasedSegmentBuilder.emptyBuilder(@NotNull BasedSequence sequence) |
static @NotNull SequenceBuilder |
SequenceBuilder.emptyBuilder(@NotNull BasedSequence base) |
static @NotNull BasedSegmentBuilder |
BasedSegmentBuilder.emptyBuilder(@NotNull BasedSequence sequence,
int options) |
static @NotNull SequenceBuilder |
SequenceBuilder.emptyBuilder(@NotNull BasedSequence base,
int options) |
static @NotNull SequenceBuilder |
SequenceBuilder.emptyBuilder(@NotNull BasedSequence base,
int options,
@NotNull SegmentOptimizer optimizer) |
static @NotNull BasedSegmentBuilder |
BasedSegmentBuilder.emptyBuilder(@NotNull BasedSequence sequence,
@NotNull SegmentOptimizer optimizer) |
static @NotNull SequenceBuilder |
SequenceBuilder.emptyBuilder(@NotNull BasedSequence base,
@NotNull SegmentOptimizer optimizer) |
static @NotNull BasedSegmentBuilder |
BasedSegmentBuilder.emptyBuilder(@NotNull BasedSequence sequence,
@NotNull SegmentOptimizer optimizer,
int options) |
@NotNull BasedSequence |
SequenceBuilder.toSequence(@NotNull BasedSequence altSequence)
Construct sequence from this builder using another based sequence which is character identical to this builder's baseSeq
|
@NotNull BasedSequence |
SequenceBuilder.toSequence(@NotNull BasedSequence altSequence,
@Nullable com.vladsch.flexmark.util.misc.CharPredicate trimStart,
@Nullable com.vladsch.flexmark.util.misc.CharPredicate ignoreCharDiff)
Construct sequence from this builder using another based sequence which is character identical to this builder's baseSeq
|
@NotNull BasedSequence |
SequenceBuilder.toSequenceByIndex(@NotNull BasedSequence altSequence,
@Nullable com.vladsch.flexmark.util.misc.CharPredicate trimStart,
@Nullable com.vladsch.flexmark.util.misc.CharPredicate ignoreCharDiff)
Construct sequence from this builder using another based sequence which is character identical to this builder's baseSeq by length
|
| Constructor and Description |
|---|
BasedSegmentBuilder(@NotNull BasedSequence baseSeq) |
BasedSegmentBuilder(@NotNull BasedSequence baseSeq,
int options) |
BasedSegmentBuilder(@NotNull BasedSequence baseSeq,
@NotNull SegmentOptimizer optimizer) |
BasedSegmentBuilder(@NotNull BasedSequence baseSeq,
@NotNull SegmentOptimizer optimizer,
int options) |
| Modifier and Type | Field and Description |
|---|---|
protected @NotNull BasedSequence |
BasedOffsetTracker.sequence |
| Modifier and Type | Method and Description |
|---|---|
@NotNull BasedSequence |
BasedOffsetTracker.getSequence() |
| Modifier and Type | Method and Description |
|---|---|
static @NotNull SegmentOffsetTree |
SegmentOffsetTree.build(@NotNull BasedSequence baseSeq) |
static @NotNull BasedOffsetTracker |
BasedOffsetTracker.create(@NotNull BasedSequence sequence)
Create a based offset tracker for the given sequence
|
static @NotNull BasedOffsetTracker |
BasedOffsetTracker.create(@NotNull BasedSequence sequence,
@NotNull SegmentOffsetTree segmentOffsetTree)
Create a based offset tracker for the given sequence
|
@Nullable Segment |
SegmentOffsetTree.findSegment(int index,
@NotNull BasedSequence baseSeq,
@Nullable Segment hint)
Deprecated.
|
@Nullable Segment |
SegmentTree.findSegment(int index,
@NotNull BasedSequence baseSeq,
@Nullable Segment hint) |
static @Nullable Segment |
SegmentTree.findSegment(int index,
int[] treeData,
int startPos,
int endPos,
byte[] segmentBytes,
@NotNull BasedSequence baseSeq) |
@Nullable Segment |
SegmentOffsetTree.findSegment(int index,
int startPos,
int endPos,
@NotNull BasedSequence baseSeq,
@Nullable Segment hint)
Deprecated.
|
@Nullable Segment |
SegmentTree.findSegment(int index,
int startPos,
int endPos,
@NotNull BasedSequence baseSeq,
@Nullable Segment hint) |
@Nullable Segment |
SegmentOffsetTree.findSegmentByOffset(int offset,
@NotNull BasedSequence baseSeq,
@Nullable Segment hint) |
@Nullable Segment |
SegmentOffsetTree.getNextText(@NotNull Segment segment,
@NotNull BasedSequence baseSeq) |
@Nullable Segment |
SegmentOffsetTree.getPrevAnchor(int pos,
@NotNull BasedSequence baseSeq)
Deprecated.
|
@Nullable Segment |
SegmentTree.getPrevAnchor(int pos,
@NotNull BasedSequence baseSeq) |
static @Nullable Segment |
SegmentTree.getPrevAnchor(int pos,
int[] treeData,
byte[] segmentBytes,
@NotNull BasedSequence baseSeq) |
@Nullable Segment |
SegmentOffsetTree.getPreviousText(@NotNull Segment segment,
@NotNull BasedSequence baseSeq) |
static Segment |
Segment.getSegment(byte[] bytes,
int byteOffset,
int pos,
int indexOffset,
@NotNull BasedSequence basedSequence) |
@NotNull Segment |
SegmentOffsetTree.getSegment(int pos,
@NotNull BasedSequence baseSeq) |
@NotNull Segment |
SegmentTree.getSegment(int pos,
@NotNull BasedSequence baseSeq) |
static @NotNull Segment |
SegmentTree.getSegment(int pos,
int[] treeData,
byte[] segmentBytes,
@NotNull BasedSequence baseSeq) |
@NotNull Segment |
SegmentTree.getSegment(int byteOffset,
int pos,
int startIndex,
@NotNull BasedSequence baseSeq) |
@NotNull SegmentOffsetTree |
SegmentTree.getSegmentOffsetTree(@NotNull BasedSequence baseSeq)
Build an offset segment tree from this index segment tree
|
@NotNull SegmentTreeRange |
SegmentOffsetTree.getSegmentRange(int startIndex,
int endIndex,
int startPos,
int endPos,
@NotNull BasedSequence baseSeq,
@Nullable Segment hint)
Deprecated.
|
@NotNull SegmentTreeRange |
SegmentTree.getSegmentRange(int startIndex,
int endIndex,
int startPos,
int endPos,
@NotNull BasedSequence baseSequence,
@Nullable Segment hint) |
int |
SegmentTree.getTextEndOffset(Segment segment,
@NotNull BasedSequence baseSequence) |
int |
SegmentTree.getTextStartOffset(Segment segment,
@NotNull BasedSequence baseSequence) |
@NotNull String |
SegmentOffsetTree.toString(@NotNull BasedSequence baseSeq) |
@NotNull String |
SegmentTree.toString(@NotNull BasedSequence baseSeq) |
| Constructor and Description |
|---|
BasedOffsetTracker(@NotNull BasedSequence sequence,
@NotNull SegmentOffsetTree segmentOffsetTree) |
BasedOffsetTracker(@NotNull BasedSequence sequence,
@NotNull SegmentTree segmentTree) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
SpecialLeadInCharsHandler.escape(@NotNull BasedSequence sequence,
@Nullable com.vladsch.flexmark.util.data.DataHolder options,
@NotNull Consumer<CharSequence> consumer)
Escape special lead-in characters which start a block element if first non-whitespace on the line
|
boolean |
SpecialLeadInHandler.escape(@NotNull BasedSequence sequence,
@Nullable com.vladsch.flexmark.util.data.DataHolder options,
@NotNull Consumer<CharSequence> consumer)
Escape special lead-in characters which start a block element if first non-whitespace on the line
|
boolean |
SpecialLeadInStartsWithCharsHandler.escape(@NotNull BasedSequence sequence,
@Nullable com.vladsch.flexmark.util.data.DataHolder options,
@NotNull Consumer<CharSequence> consumer)
Escape special lead-in characters which start a block element if first non-whitespace on the line
|
boolean |
SpecialLeadInCharsHandler.unEscape(@NotNull BasedSequence sequence,
@Nullable com.vladsch.flexmark.util.data.DataHolder options,
@NotNull Consumer<CharSequence> consumer)
UnEscape special lead-in characters which start a block element if first non-whitespace on the line
|
boolean |
SpecialLeadInHandler.unEscape(@NotNull BasedSequence sequence,
@Nullable com.vladsch.flexmark.util.data.DataHolder options,
@NotNull Consumer<CharSequence> consumer)
UnEscape special lead-in characters which start a block element if first non-whitespace on the line
|
boolean |
SpecialLeadInStartsWithCharsHandler.unEscape(@NotNull BasedSequence sequence,
@Nullable com.vladsch.flexmark.util.data.DataHolder options,
@NotNull Consumer<CharSequence> consumer)
UnEscape special lead-in characters which start a block element if first non-whitespace on the line
|
Copyright © 2020. All rights reserved.