| 程序包 | 说明 |
|---|---|
| org.apache.oro.text |
This package used to be the TextTools library and provides general
text processing support, including a glob regular expression class,
pattern caching and line-by-line processing classes.
|
| 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.regex |
This package used to be the OROMatcher library and provides both
generic regular expression interfaces and Perl5 regular expression
compatible implementation classes.
|
| 限定符和类型 | 字段和说明 |
|---|---|
PatternMatcher |
MatchActionInfo.matcher
The PatternMatcher used to find the match.
|
| 构造器和说明 |
|---|
MatchActionProcessor(PatternCompiler compiler,
PatternMatcher matcher)
Creates a new MatchActionProcessor instance initialized with the specified
pattern compiler and matcher.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
AwkMatcher
The AwkMatcher class is used to match regular expressions
(conforming to the Awk regular expression syntax) generated by
AwkCompiler.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
Perl5Matcher
The Perl5Matcher class is used to match regular expressions
(conforming to the Perl5 regular expression syntax) generated by
Perl5Compiler.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
static void |
Util.split(Collection results,
PatternMatcher matcher,
Pattern pattern,
String input)
Splits up a
String instance and stores results as a
Collection of all its substrings using a regular expression
as the delimiter. |
static void |
Util.split(Collection results,
PatternMatcher matcher,
Pattern pattern,
String input,
int limit)
Splits up a
String instance and stores results as a
List of substrings numbering no more than a specified
limit. |
static Vector |
Util.split(PatternMatcher matcher,
Pattern pattern,
String input)
已过时。
|
static Vector |
Util.split(PatternMatcher matcher,
Pattern pattern,
String input,
int limit)
已过时。
|
static String |
Util.substitute(PatternMatcher matcher,
Pattern pattern,
Substitution sub,
String input)
Searches a string for a pattern and substitutes only the first
occurence of the pattern.
|
static String |
Util.substitute(PatternMatcher matcher,
Pattern pattern,
Substitution sub,
String 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.
|
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.
|
static int |
Util.substitute(StringBuffer result,
PatternMatcher matcher,
Pattern pattern,
Substitution sub,
String 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 © 2022. All rights reserved.