Top Fields Constructors Methods
com.vladsch.flexmark.util.sequence.builder

public Class CharRecoveryOptimizer

extends Object
implements SegmentOptimizer
Class Inheritance
All Implemented Interfaces
com.vladsch.flexmark.util.sequence.builder.SegmentOptimizer, java.util.function.BiFunction
Imports
com.vladsch.flexmark.util.misc.Utils, com.vladsch.flexmark.util.sequence.PositionAnchor, .Range, .SequenceUtils, org.jetbrains.annotations.NotNull

Field Summary

Modifier and TypeField and Description
private final PositionAnchor
private int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object[]
apply(@NotNull CharSequence
the first function argument
chars
,
Object[]
the second function argument
parts
)

Implements java.util.function.BiFunction.apply.

Applies this function to the given arguments.

pack-priv int
nextMatchPos(@NotNull CharSequence base, CharSequence chars, int startIndex, int fromIndex)

pack-priv int
prevMatchPos(@NotNull CharSequence base, CharSequence chars, int startIndex, int endIndex)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

anchorback to summary
private final PositionAnchor anchor
prevEolPosback to summary
private int prevEolPos

Constructor Detail

CharRecoveryOptimizerback to summary
public CharRecoveryOptimizer(PositionAnchor anchor)

Method Detail

applyback to summary
public Object[] apply(@NotNull CharSequence chars, Object[] parts)

Implements java.util.function.BiFunction.apply.

Doc from java.util.function.BiFunction.apply.

Applies this function to the given arguments.

Parameters
chars:@NotNull CharSequence

the first function argument

parts:Object[]

the second function argument

Returns:Object[]

the function result

nextMatchPosback to summary
pack-priv int nextMatchPos(@NotNull CharSequence base, CharSequence chars, int startIndex, int fromIndex)
prevMatchPosback to summary
pack-priv int prevMatchPos(@NotNull CharSequence base, CharSequence chars, int startIndex, int endIndex)