Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- alternatives(Sequence[]) - Static method in class de.unkrig.lfr.core.Sequences
-
Creates and returns
Sequence
that returns the first match of one alternatives plus this sequence's successor. - appendReplacement(Appendable) - Method in interface de.unkrig.lfr.core.Matcher.CompiledReplacement
-
An optimized version of
Matcher.appendReplacement(Appendable, String)
that uses this pre-compiled replacement. - appendReplacement(Appendable, String) - Method in interface de.unkrig.ref4j.Matcher
- appendTail(T) - Method in interface de.unkrig.ref4j.Matcher
- asMatchPredicate() - Method in class de.unkrig.lfr.core.Pattern
- asMatchPredicate() - Method in interface de.unkrig.ref4j.Pattern
-
Creates a predicate that tests if this pattern matches a given input string.
- asPredicate() - Method in class de.unkrig.lfr.core.Pattern
- asPredicate() - Method in interface de.unkrig.ref4j.Pattern
-
Creates a predicate that tests if this pattern is found in a given input string.
B
- beginningOfInput() - Static method in class de.unkrig.lfr.core.Sequences
-
Implements
"^"
with ! - beginningOfLine() - Static method in class de.unkrig.lfr.core.Sequences
-
Implements
"^"
with MULTILINE. - beginningOfUnixLine() - Static method in class de.unkrig.lfr.core.Sequences
-
Implements
"^"
with MULTILINE and UNIX_LINES.
C
- CANON_EQ - Static variable in interface de.unkrig.ref4j.Pattern
- capturingGroupEnd(int) - Static method in class de.unkrig.lfr.core.Sequences
-
Implements
")"
. - capturingGroupStart(int) - Static method in class de.unkrig.lfr.core.Sequences
-
Implements
"("
. - capturingQuantifier(Sequence, int, int, int, Sequences.QuantifierNature) - Static method in class de.unkrig.lfr.core.Sequences
-
Implements capturing quantifiers (greedy, reluctant and possessive).
- CASE_INSENSITIVE - Static variable in interface de.unkrig.ref4j.Pattern
- CharacterClass - Class in de.unkrig.lfr.core
-
A
CompositeSequence
that implementsCharacterClass.matches(MatcherImpl)
by applyingCharacterClass.matches(int)
onto itself. - CharacterClass() - Constructor for class de.unkrig.lfr.core.CharacterClass
- CharacterClass(int) - Constructor for class de.unkrig.lfr.core.CharacterClass
- CharacterClass(int, int) - Constructor for class de.unkrig.lfr.core.CharacterClass
- checkQuantified(int, Consumer<Integer>, Sequence, int, int, Sequence, int, int) - Static method in class de.unkrig.lfr.core.Sequences
- checkWithoutNext(int, Consumer<Integer>) - Method in class de.unkrig.lfr.core.CharacterClass
- checkWithoutNext(int, Consumer<Integer>) - Method in class de.unkrig.lfr.core.Sequences.LiteralString
- COMMENTS - Static variable in interface de.unkrig.ref4j.Pattern
- compile(String) - Static method in class de.unkrig.lfr.core.Pattern
- compile(String) - Method in class de.unkrig.lfr.core.PatternFactory
- compile(String) - Method in class de.unkrig.ref4j.PatternFactory
-
Compiles the given regex into a
Pattern
. - compile(String, int) - Static method in class de.unkrig.lfr.core.Pattern
- compile(String, int) - Method in class de.unkrig.lfr.core.PatternFactory
- compile(String, int) - Method in class de.unkrig.ref4j.PatternFactory
-
Compiles the given regex into a
Pattern
with the given flags. - compileReplacement(String) - Method in interface de.unkrig.lfr.core.Matcher
-
Pre-compiles a replacement string for later use by
Matcher.appendReplacement(Appendable, String)
,Matcher.replaceAll(String)
andMatcher.replaceFirst(String)
. - concat(Sequence) - Method in class de.unkrig.lfr.core.CharacterClass
- count(int) - Method in interface de.unkrig.lfr.core.Matcher
-
Returns, after a successful match, the value of the designated "capturing quantifier".
D
- de.unkrig.lfr.core - package de.unkrig.lfr.core
-
A super-fast drop-in replacement for
java.util.regex
. - de.unkrig.ref4j - package de.unkrig.ref4j
- DOTALL - Static variable in interface de.unkrig.ref4j.Pattern
E
- end() - Method in interface de.unkrig.ref4j.Matcher
- end(int) - Method in interface de.unkrig.ref4j.Matcher
- end(String) - Method in interface de.unkrig.ref4j.Matcher
- endOfInput() - Static method in class de.unkrig.lfr.core.Sequences
-
Implements
"$"
with ! - endOfInputButFinalTerminator() - Static method in class de.unkrig.lfr.core.Sequences
-
Implements
"\Z"
. - endOfInputButFinalUnixTerminator() - Static method in class de.unkrig.lfr.core.Sequences
-
Implements
"\Z"
. - endOfLine() - Static method in class de.unkrig.lfr.core.Sequences
-
Implements
"$"
withPattern.MULTILINE
. - endOfPreviousMatch() - Static method in class de.unkrig.lfr.core.Sequences
-
Implements
"\G"
. - endOfUnixLine() - Static method in class de.unkrig.lfr.core.Sequences
- evaluate(int) - Method in interface de.unkrig.lfr.core.IntPredicate
-
Returns
true
iff the subject "qualifies", otherwisefalse
.
F
- find() - Method in interface de.unkrig.ref4j.Matcher
- find(int) - Method in interface de.unkrig.ref4j.Matcher
- find(MatcherImpl) - Method in class de.unkrig.lfr.core.CharacterClass
- find(MatcherImpl) - Method in class de.unkrig.lfr.core.Sequences.LiteralString
- flags() - Method in class de.unkrig.lfr.core.Pattern
- flags() - Method in interface de.unkrig.ref4j.Pattern
G
- get() - Static method in class de.unkrig.ref4j.PatternFactory
-
Returns the pattern factory configured in this JVM.
- get(String) - Static method in class de.unkrig.ref4j.PatternFactory
- getId() - Method in class de.unkrig.lfr.core.PatternFactory
- getId() - Method in class de.unkrig.ref4j.PatternFactory
- getNeedle() - Method in class de.unkrig.lfr.core.Sequences.LiteralString
- getSupportedFlags() - Method in class de.unkrig.lfr.core.PatternFactory
- getSupportedFlags() - Method in class de.unkrig.ref4j.PatternFactory
- Grapheme - Class in de.unkrig.lfr.core
- greedyQuantifierOnAnyCharAndLiteralString(int, int, CharSequence) - Static method in class de.unkrig.lfr.core.Sequences
-
Implements a greedy quantifier on an "any char" operand, followed by a literal String.
- greedyQuantifierOnChar(char, int, int, int) - Static method in class de.unkrig.lfr.core.Sequences
-
Optimized version of
Sequences.greedyOrReluctantQuantifier(Sequence, int, int, int, boolean)
when the operand is a bare (basic plane)char
. - greedyQuantifierOnCharacterClass(CharacterClass, int, int, int) - Static method in class de.unkrig.lfr.core.Sequences
-
Optimized version of
Sequences.greedyOrReluctantQuantifier(Sequence, int, int, int, boolean)
when the operand is a bare character class. - group() - Method in interface de.unkrig.ref4j.Matcher
- group(int) - Method in interface de.unkrig.ref4j.Matcher
- group(String) - Method in interface de.unkrig.ref4j.Matcher
- groupCount() - Method in interface de.unkrig.ref4j.Matcher
H
- hasAnchoringBounds() - Method in interface de.unkrig.ref4j.Matcher
- hasTransparentBounds() - Method in interface de.unkrig.ref4j.Matcher
- hitEnd() - Method in interface de.unkrig.ref4j.Matcher
I
- independentNonCapturingGroup(Sequence[]) - Static method in class de.unkrig.lfr.core.Sequences
-
Creates and returns a
Sequence
that matches the alternatives, and, after the first matching alternative, matches its successor. - INSTANCE - Static variable in class de.unkrig.lfr.core.PatternFactory
-
The singleton
PatternFactory
that implements the LFR regex engine. - IntPredicate - Interface in de.unkrig.lfr.core
-
An optimization of
Predicate
<Integer>
which saves the overhead of boxing and unboxing. - isBoundary(int, int) - Static method in class de.unkrig.lfr.core.Grapheme
L
- linebreak() - Static method in class de.unkrig.lfr.core.Sequences
-
A sequence that matches a linebreak; implements
"\R"
. - LITERAL - Static variable in interface de.unkrig.ref4j.Pattern
- lookingAt() - Method in interface de.unkrig.ref4j.Matcher
- lowerBound() - Method in class de.unkrig.lfr.core.CharacterClass
-
CharacterClass.matches(int)
is guaranteed to returnfalse
for all subjects smaller thanCharacterClass.lowerBound()
.
M
- matcher(CharSequence) - Method in class de.unkrig.lfr.core.Pattern
- matcher(CharSequence) - Method in interface de.unkrig.ref4j.Pattern
- Matcher - Interface in de.unkrig.lfr.core
-
Adds some "advanced" methods to the
Matcher
interface. - Matcher - Interface in de.unkrig.ref4j
-
A wrapper for
Matcher
. - Matcher.CompiledReplacement - Interface in de.unkrig.lfr.core
-
Pre-parsing a "replacement string" saves considerable overhead compared to repeatedly calling
Matcher.appendReplacement(Appendable, String)
. - matches() - Method in interface de.unkrig.ref4j.Matcher
- matches(int) - Method in class de.unkrig.lfr.core.CharacterClass
- matches(MatcherImpl) - Method in class de.unkrig.lfr.core.CharacterClass
- matches(MatcherImpl) - Method in class de.unkrig.lfr.core.Sequences.LiteralString
- matches(CharSequence) - Method in class de.unkrig.lfr.core.Pattern
-
Equivalent with
pattern.matcher(subject).matches()
, but is slightly faster because it does not expose theMatcher
and can thus save some overhead. - matches(CharSequence) - Method in interface de.unkrig.ref4j.Pattern
- matches(CharSequence, int) - Method in class de.unkrig.lfr.core.Pattern
- matches(CharSequence, int) - Method in interface de.unkrig.ref4j.Pattern
- matches(CharSequence, int, int) - Method in class de.unkrig.lfr.core.Pattern
- matches(CharSequence, int, int) - Method in interface de.unkrig.ref4j.Pattern
- matches(String, CharSequence) - Static method in class de.unkrig.lfr.core.Pattern
- matches(String, CharSequence) - Method in class de.unkrig.lfr.core.PatternFactory
- matches(String, CharSequence) - Method in class de.unkrig.ref4j.PatternFactory
- MULTILINE - Static variable in interface de.unkrig.ref4j.Pattern
N
- negate(Sequence) - Static method in class de.unkrig.lfr.core.Sequences
-
Creates and returns a sequence that produces a zero-width match iff the op does not match, and otherwise (iff the op does match) does not match.
O
- original() - Method in class de.unkrig.lfr.core.ReverseCharSequence
P
- pattern() - Method in class de.unkrig.lfr.core.Pattern
- pattern() - Method in interface de.unkrig.ref4j.Matcher
- pattern() - Method in interface de.unkrig.ref4j.Pattern
- Pattern - Class in de.unkrig.lfr.core
-
A drop-in replacement for
Pattern
. - Pattern - Interface in de.unkrig.ref4j
- PatternFactory - Class in de.unkrig.lfr.core
-
A drop-in replacement for
Pattern
. - PatternFactory - Class in de.unkrig.ref4j
-
A facade or abstraction for various regular expression frameworks.
- PatternFactory() - Constructor for class de.unkrig.ref4j.PatternFactory
- positiveLookahead(Sequence) - Static method in class de.unkrig.lfr.core.Sequences
-
Implements
"(?=X)"
. - positiveLookbehind(Sequence) - Static method in class de.unkrig.lfr.core.Sequences
-
Implements
"(?<=X)"
.
Q
- quantifierInfinity(Sequence, boolean, Sequences.QuantifierNature) - Static method in class de.unkrig.lfr.core.Sequences
-
Implements quantifiers (greedy, reluctant and possessive) with minimum quantity zero or one, and infinite maximum quantity.
- quantifierZeroOne(Sequence, Sequences.QuantifierNature) - Static method in class de.unkrig.lfr.core.Sequences
-
Implements quantifiers (greedy, reluctant and possessive) with minimum quantity zero and maximum quantity one.
- quote(String) - Static method in class de.unkrig.lfr.core.Pattern
- quote(String) - Method in class de.unkrig.ref4j.PatternFactory
- quoteReplacement(String) - Method in interface de.unkrig.lfr.core.Matcher
- quoteReplacement(String) - Method in interface de.unkrig.ref4j.Matcher
- quoteReplacement(String) - Method in class de.unkrig.ref4j.PatternFactory
R
- region(int, int) - Method in interface de.unkrig.ref4j.Matcher
- regionEnd() - Method in interface de.unkrig.ref4j.Matcher
- regionStart() - Method in interface de.unkrig.ref4j.Matcher
- reluctantQuantifierOnAnyCharAndLiteralString(int, int, CharSequence) - Static method in class de.unkrig.lfr.core.Sequences
-
Implements a reluctant quantifier on an "any char" operand, followed by a literal String.
- reluctantQuantifierOnChar(char, int, int, int) - Static method in class de.unkrig.lfr.core.Sequences
-
Optimized version of
Sequences.reluctantQuantifierOnCharacterClass(CharacterClass, int, int, int)
when the operand is a bare (basic plane)char
. - reluctantQuantifierOnCharacterClass(CharacterClass, int, int, int) - Static method in class de.unkrig.lfr.core.Sequences
-
Optimized version of
Sequences.greedyOrReluctantQuantifier(Sequence, int, int, int, boolean)
when the operand is a bare character class. - replaceAll() - Method in interface de.unkrig.lfr.core.Matcher.CompiledReplacement
-
An optimized version of
Matcher.replaceAll(String)
that uses this pre-compiled replacement. - replaceAll(String) - Method in interface de.unkrig.ref4j.Matcher
- replaceAll(Function<MatchResult, String>) - Method in interface de.unkrig.ref4j.Matcher
- replaceFirst() - Method in interface de.unkrig.lfr.core.Matcher.CompiledReplacement
-
An optimized version of
Matcher.replaceFirst(String)
that uses this pre-compiled replacement. - replaceFirst(String) - Method in interface de.unkrig.ref4j.Matcher
- replaceFirst(Function<MatchResult, String>) - Method in interface de.unkrig.ref4j.Matcher
- requireEnd() - Method in interface de.unkrig.ref4j.Matcher
- reset() - Method in interface de.unkrig.ref4j.Matcher
- reset(CharSequence) - Method in interface de.unkrig.ref4j.Matcher
- results() - Method in interface de.unkrig.ref4j.Matcher
- reverse(CharSequence) - Static method in class de.unkrig.lfr.core.ReverseCharSequence
- reverseByCopy(CharSequence) - Static method in class de.unkrig.lfr.core.ReverseCharSequence
-
Returns a string that is the "logical reverse" of the cs, i.e. surrogate pairs and CR-LF pairs are not reversed.
- ReverseCharSequence - Class in de.unkrig.lfr.core
- ReverseCharSequence() - Constructor for class de.unkrig.lfr.core.ReverseCharSequence
- reverseInPlace(CharSequence) - Static method in class de.unkrig.lfr.core.ReverseCharSequence
-
Returns a
CharSequence
that is the "logical reverse" of the cs, i.e. surrogate pairs and CR-LF pairs are not reversed.
S
- Sequences - Class in de.unkrig.lfr.core
-
Methods that create all kinds of
Sequence
s. - Sequences.LiteralString - Class in de.unkrig.lfr.core
-
Representation of a sequence of literal, case-sensitive characters.
- sequenceToString() - Method in class de.unkrig.lfr.core.Pattern
-
Returns the parsed
Sequence
in an internal syntax. - sizeBound() - Method in class de.unkrig.lfr.core.CharacterClass
- split(CharSequence) - Method in class de.unkrig.lfr.core.Pattern
- split(CharSequence) - Method in interface de.unkrig.ref4j.Pattern
- split(CharSequence, int) - Method in class de.unkrig.lfr.core.Pattern
- split(CharSequence, int) - Method in interface de.unkrig.ref4j.Pattern
- splitAsStream(CharSequence) - Method in class de.unkrig.lfr.core.Pattern
- splitAsStream(CharSequence) - Method in interface de.unkrig.ref4j.Pattern
-
Creates a stream from the given input sequence around matches of this pattern.
- start() - Method in interface de.unkrig.ref4j.Matcher
- start(int) - Method in interface de.unkrig.ref4j.Matcher
- start(String) - Method in interface de.unkrig.ref4j.Matcher
T
- TERMINAL - Static variable in class de.unkrig.lfr.core.Sequences
-
Matches depending on the
MatcherImpl.offset
and the value ofMatcherImpl.end
. - toMatchResult() - Method in interface de.unkrig.ref4j.Matcher
- toString() - Method in class de.unkrig.lfr.core.CharacterClass
- toString() - Method in class de.unkrig.lfr.core.Pattern
- toString() - Method in interface de.unkrig.ref4j.Matcher
- toStringWithoutNext() - Method in class de.unkrig.lfr.core.CharacterClass
- toStringWithoutNext() - Method in class de.unkrig.lfr.core.Sequences.LiteralString
U
- UNICODE_CASE - Static variable in interface de.unkrig.ref4j.Pattern
- UNICODE_CHARACTER_CLASS - Static variable in interface de.unkrig.ref4j.Pattern
- unicodeExtendedGrapheme() - Static method in class de.unkrig.lfr.core.Sequences
- unicodeExtendedGraphemeClusterBoundary() - Static method in class de.unkrig.lfr.core.Sequences
-
Implements
"\b{g}"
. - UNIX_LINES - Static variable in interface de.unkrig.ref4j.Pattern
- upperBound() - Method in class de.unkrig.lfr.core.CharacterClass
-
CharacterClass.matches(int)
is guaranteed to returnfalse
for all subjects greater than or equal toCharacterClass.upperBound()
. - useAnchoringBounds(boolean) - Method in interface de.unkrig.ref4j.Matcher
- usePattern(Pattern) - Method in interface de.unkrig.ref4j.Matcher
- useTransparentBounds(boolean) - Method in interface de.unkrig.ref4j.Matcher
W
- wordBoundary() - Static method in class de.unkrig.lfr.core.Sequences
-
Implements
"\b"
, and, negated,"\B"
.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form