类的使用
org.apache.oro.text.regex.PatternMatcherInput
使用PatternMatcherInput的程序包
程序包
说明
This package used to be the AwkTools library and provides AWK-like
regular expression classes that implement the
org.apache.oro.text.regex interfaces.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.This package used to be the OROMatcher library and provides both
generic regular expression interfaces and Perl5 regular expression
compatible implementation classes.
-
org.apache.oro.text.awk中PatternMatcherInput的使用
修饰符和类型方法说明booleanAwkMatcher.contains(PatternMatcherInput input, Pattern pattern) Determines if the contents of a PatternMatcherInput, starting from the current offset of the input contains a pattern.booleanAwkMatcher.matches(PatternMatcherInput input, Pattern pattern) Determines if the contents of a PatternMatcherInput instance exactly matches a given pattern.booleanAwkMatcher.matchesPrefix(PatternMatcherInput input, Pattern pattern) Determines if a prefix of a PatternMatcherInput instance matches a given pattern. -
org.apache.oro.text.perl中PatternMatcherInput的使用
修饰符和类型方法说明booleanPerl5Util.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: -
org.apache.oro.text.regex中PatternMatcherInput的使用
修饰符和类型方法说明voidPerl5Substitution.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.voidStringSubstitution.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.voidSubstitution.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.booleanPatternMatcher.contains(PatternMatcherInput input, Pattern pattern) Determines if the contents of a PatternMatcherInput, starting from the current offset of the input contains a pattern.booleanPerl5Matcher.contains(PatternMatcherInput input, Pattern pattern) Determines if the contents of a PatternMatcherInput, starting from the current offset of the input contains a pattern.booleanPatternMatcher.matches(PatternMatcherInput input, Pattern pattern) Determines if the contents of a PatternMatcherInput instance exactly matches a given pattern.booleanPerl5Matcher.matches(PatternMatcherInput input, Pattern pattern) Determines if the contents of a PatternMatcherInput instance exactly matches a given pattern.booleanPatternMatcher.matchesPrefix(PatternMatcherInput input, Pattern pattern) Determines if a prefix of a PatternMatcherInput instance matches a given pattern.booleanPerl5Matcher.matchesPrefix(PatternMatcherInput input, Pattern pattern) Determines if a prefix of a PatternMatcherInput instance matches a given pattern.static intUtil.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.