| 程序包 | 说明 |
|---|---|
| org.apache.oro.text.awk |
This package used to be the AwkTools library and provides AWK-like
regular expression classes that implement the
org.apache.oro.text.regex interfaces. |
| org.apache.oro.text.perl |
This package used to be the PerlTools library and adds Perl5
regular expression syntactic sugar built on top of the
org.apache.oro.text.regex Perl5 regular expression classes. |
| org.apache.oro.text.regex |
This package used to be the OROMatcher library and provides both
generic regular expression interfaces and Perl5 regular expression
compatible implementation classes.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
AwkMatcher.contains(PatternMatcherInput input,
Pattern pattern)
Determines if the contents of a PatternMatcherInput, starting from the
current offset of the input contains a pattern.
|
boolean |
AwkMatcher.matches(PatternMatcherInput input,
Pattern pattern)
Determines if the contents of a PatternMatcherInput instance
exactly matches a given pattern.
|
boolean |
AwkMatcher.matchesPrefix(PatternMatcherInput input,
Pattern pattern)
Determines if a prefix of a PatternMatcherInput instance
matches a given pattern.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
Perl5Util.match(String pattern,
PatternMatcherInput input)
Searches for the next pattern match somewhere in a
org.apache.oro.text.regex.PatternMatcherInput instance, taking
a pattern specified in Perl5 native format:
[m]/pattern/[i][m][s][x]
The
m prefix is optional and the meaning of the optional
trailing options are:
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
Substitution.appendSubstitution(StringBuffer appendBuffer,
MatchResult match,
int substitutionCount,
PatternMatcherInput originalInput,
PatternMatcher matcher,
Pattern pattern)
Appends the substitution to a buffer containing the original input
with substitutions applied for the pattern matches found so far.
|
void |
StringSubstitution.appendSubstitution(StringBuffer appendBuffer,
MatchResult match,
int substitutionCount,
PatternMatcherInput originalInput,
PatternMatcher matcher,
Pattern pattern)
Appends the substitution to a buffer containing the original input
with substitutions applied for the pattern matches found so far.
|
void |
Perl5Substitution.appendSubstitution(StringBuffer appendBuffer,
MatchResult match,
int substitutionCount,
PatternMatcherInput originalInput,
PatternMatcher matcher,
Pattern pattern)
Appends the substitution to a buffer containing the original input
with substitutions applied for the pattern matches found so far.
|
boolean |
Perl5Matcher.contains(PatternMatcherInput input,
Pattern pattern)
Determines if the contents of a PatternMatcherInput, starting from the
current offset of the input contains a pattern.
|
boolean |
PatternMatcher.contains(PatternMatcherInput input,
Pattern pattern)
Determines if the contents of a PatternMatcherInput, starting from the
current offset of the input contains a pattern.
|
boolean |
Perl5Matcher.matches(PatternMatcherInput input,
Pattern pattern)
Determines if the contents of a PatternMatcherInput instance
exactly matches a given pattern.
|
boolean |
PatternMatcher.matches(PatternMatcherInput input,
Pattern pattern)
Determines if the contents of a PatternMatcherInput instance
exactly matches a given pattern.
|
boolean |
Perl5Matcher.matchesPrefix(PatternMatcherInput input,
Pattern pattern)
Determines if a prefix of a PatternMatcherInput instance
matches a given pattern.
|
boolean |
PatternMatcher.matchesPrefix(PatternMatcherInput input,
Pattern pattern)
Determines if a prefix of a PatternMatcherInput instance
matches a given pattern.
|
static int |
Util.substitute(StringBuffer result,
PatternMatcher matcher,
Pattern pattern,
Substitution sub,
PatternMatcherInput input,
int numSubs)
Searches a string for a pattern and replaces the first occurrences
of the pattern with a Substitution up to the number of
substitutions specified by the numSubs parameter.
|
Copyright © 2023. All rights reserved.