| 程序包 | 说明 |
|---|---|
| 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.
|
| 限定符和类型 | 字段和说明 |
|---|---|
Pattern |
MatchActionInfo.fieldSeparator
The field separator used by the MatchActionProcessor.
|
Pattern |
MatchActionInfo.pattern
The pattern found in the line of input.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Pattern |
PatternCache.addPattern(String expression)
Adds a pattern to the cache and returns the compiled pattern.
|
Pattern |
GenericPatternCache.addPattern(String expression)
Same as calling
addPattern(expression, 0);
|
Pattern |
PatternCache.addPattern(String expression,
int options)
Adds a pattern to the cache and returns the compiled pattern.
|
Pattern |
GenericPatternCache.addPattern(String expression,
int options)
Adds a pattern to the cache and returns the compiled pattern.
|
Pattern |
GlobCompiler.compile(char[] pattern)
Same as calling compile(pattern, GlobCompiler.DEFAULT_MASK);
|
Pattern |
GlobCompiler.compile(char[] pattern,
int options)
Compiles a Glob expression into a Perl5Pattern instance that
can be used by a Perl5Matcher object to perform pattern matching.
|
Pattern |
GlobCompiler.compile(String pattern)
Same as calling compile(pattern, GlobCompiler.DEFAULT_MASK);
|
Pattern |
GlobCompiler.compile(String pattern,
int options)
Compiles a Glob expression into a Perl5Pattern instance that
can be used by a Perl5Matcher object to perform pattern matching.
|
Pattern |
PatternCache.getPattern(String expression)
This method fetches a pattern from the cache.
|
Pattern |
GenericPatternCache.getPattern(String expression)
Same as calling
getPattern(expression, 0)
|
Pattern |
PatternCache.getPattern(String expression,
int options)
This method fetches a pattern from the cache.
|
Pattern |
GenericPatternCache.getPattern(String expression,
int options)
This method fetches a pattern from the cache.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
AwkPattern
An implementation of the Pattern interface for Awk regular expressions.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Pattern |
AwkCompiler.compile(char[] pattern)
Same as calling compile(pattern, AwkCompiler.DEFAULT_MASK);
|
Pattern |
AwkCompiler.compile(char[] pattern,
int options)
Compiles an Awk regular expression into an AwkPattern instance that
can be used by an AwkMatcher object to perform pattern matching.
|
Pattern |
AwkCompiler.compile(String pattern)
Same as calling compile(pattern, AwkCompiler.DEFAULT_MASK);
|
Pattern |
AwkCompiler.compile(String pattern,
int options)
Compiles an Awk regular expression into an AwkPattern instance that
can be used by an AwkMatcher object to perform pattern matching.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
AwkMatcher.contains(AwkStreamInput input,
Pattern pattern)
Determines if the contents of an AwkStreamInput, starting from the
current offset of the input contains a pattern.
|
boolean |
AwkMatcher.contains(char[] input,
Pattern pattern)
Determines if a string (represented as a char[]) contains a pattern.
|
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.contains(String input,
Pattern pattern)
Determines if a string contains a pattern.
|
boolean |
AwkMatcher.matches(char[] input,
Pattern pattern)
Determines if a string (represented as a char[]) exactly
matches a given pattern.
|
boolean |
AwkMatcher.matches(PatternMatcherInput input,
Pattern pattern)
Determines if the contents of a PatternMatcherInput instance
exactly matches a given pattern.
|
boolean |
AwkMatcher.matches(String input,
Pattern pattern)
Determines if a string exactly matches a given pattern.
|
boolean |
AwkMatcher.matchesPrefix(char[] input,
Pattern pattern)
Determines if a prefix of a string (represented as a char[])
matches a given pattern.
|
boolean |
AwkMatcher.matchesPrefix(char[] input,
Pattern pattern,
int offset)
Determines if a prefix of a string (represented as a char[])
matches a given pattern, starting from a given offset into the string.
|
boolean |
AwkMatcher.matchesPrefix(PatternMatcherInput input,
Pattern pattern)
Determines if a prefix of a PatternMatcherInput instance
matches a given pattern.
|
boolean |
AwkMatcher.matchesPrefix(String input,
Pattern pattern)
Determines if a prefix of a string matches a given pattern.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
Perl5Pattern
An implementation of the Pattern interface for Perl5 regular expressions.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Pattern |
Perl5Compiler.compile(char[] pattern)
Same as calling compile(pattern, Perl5Compiler.DEFAULT_MASK);
|
Pattern |
PatternCompiler.compile(char[] pattern)
Compiles a regular expression into a data structure that can be used
by a PatternMatcher implementation to perform pattern matching.
|
Pattern |
Perl5Compiler.compile(char[] pattern,
int options)
Compiles a Perl5 regular expression into a Perl5Pattern instance that
can be used by a Perl5Matcher object to perform pattern matching.
|
Pattern |
PatternCompiler.compile(char[] pattern,
int options)
Compiles a regular expression into a data structure that can be
used by a PatternMatcher implementation to perform pattern matching.
|
Pattern |
Perl5Compiler.compile(String pattern)
Same as calling compile(pattern, Perl5Compiler.DEFAULT_MASK);
|
Pattern |
PatternCompiler.compile(String pattern)
Compiles a regular expression into a data structure that can be used
by a PatternMatcher implementation to perform pattern matching.
|
Pattern |
Perl5Compiler.compile(String pattern,
int options)
Compiles a Perl5 regular expression into a Perl5Pattern instance that
can be used by a Perl5Matcher object to perform pattern matching.
|
Pattern |
PatternCompiler.compile(String pattern,
int options)
Compiles a regular expression into a data structure that can be
used by a PatternMatcher implementation to perform pattern matching.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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(char[] input,
Pattern pattern)
Determines if a string (represented as a char[]) contains a pattern.
|
boolean |
PatternMatcher.contains(char[] input,
Pattern pattern)
Determines if a string (represented as a char[]) contains a pattern.
|
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.contains(String input,
Pattern pattern)
Determines if a string contains a pattern.
|
boolean |
PatternMatcher.contains(String input,
Pattern pattern)
Determines if a string contains a pattern.
|
boolean |
Perl5Matcher.matches(char[] input,
Pattern pattern)
Determines if a string (represented as a char[]) exactly
matches a given pattern.
|
boolean |
PatternMatcher.matches(char[] input,
Pattern pattern)
Determines if a string (represented as a char[]) exactly matches
a given 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.matches(String input,
Pattern pattern)
Determines if a string exactly matches a given pattern.
|
boolean |
PatternMatcher.matches(String input,
Pattern pattern)
Determines if a string exactly matches a given pattern.
|
boolean |
Perl5Matcher.matchesPrefix(char[] input,
Pattern pattern)
Determines if a prefix of a string (represented as a char[])
matches a given pattern.
|
boolean |
PatternMatcher.matchesPrefix(char[] input,
Pattern pattern)
Determines if a prefix of a string (represented as a char[])
matches a given pattern.
|
boolean |
Perl5Matcher.matchesPrefix(char[] input,
Pattern pattern,
int offset)
Determines if a prefix of a string (represented as a char[])
matches a given pattern, starting from a given offset into the string.
|
boolean |
PatternMatcher.matchesPrefix(char[] input,
Pattern pattern,
int offset)
Determines if a prefix of a string (represented as a char[])
matches a given pattern, starting from a given offset into the string.
|
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.
|
boolean |
Perl5Matcher.matchesPrefix(String input,
Pattern pattern)
Determines if a prefix of a string matches a given pattern.
|
boolean |
PatternMatcher.matchesPrefix(String input,
Pattern pattern)
Determines if a prefix of a string matches a given pattern.
|
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.