class PatMatcherB extends MatchResult with Error
The PatMatcherB
class provides a simple means for using Brics regular expressions.
FIX: Brics results often do not agree with Java regex results, so still searching
for a good alternative to 'java.util.regex'. The following benchmark shows that
Brics is fast, but only agrees with 'java.util.regex' in 2 of 5 test cases.
- See also
www.javaadvent.com/2015/12/java-regular-expression-library-benchmarks-2015.html
- Alphabetic
- By Inheritance
- PatMatcherB
- Error
- MatchResult
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
PatMatcherB(regex: String)
- regex
the regular expression pattern to be matched
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
end(group: Int): Int
Return the offset after the last character of the subsequence captured by the given group during this match.
Return the offset after the last character of the subsequence captured by the given group during this match.
- group
the index of a capturing group in this matcher's pattern
- Definition Classes
- PatMatcherB → MatchResult
-
def
end(): Int
Return the offset after the last character matched.
Return the offset after the last character matched.
- Definition Classes
- PatMatcherB → MatchResult
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
find(start: Int): Boolean
Resets this matcher and then attempts to find the next subsequence of the input sequence that matches the pattern, starting at the specified index.
Resets this matcher and then attempts to find the next subsequence of the input sequence that matches the pattern, starting at the specified index. Must call 'matcher' method first.
- start
the index to start searching for a match
-
def
find(): Boolean
Find the next occurrence of 'regex' in the 'input' string.
Find the next occurrence of 'regex' in the 'input' string. Must call 'matcher' method first.
-
final
def
flaw(method: String, message: String): Unit
Show the flaw by printing the error message.
Show the flaw by printing the error message.
- method
the method where the error occurred
- message
the error message
- Definition Classes
- Error
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
group(group: Int): String
Return the input subsequence captured by the given group during the previous match operation.
Return the input subsequence captured by the given group during the previous match operation.
- Definition Classes
- PatMatcherB → MatchResult
-
def
group(): String
Return the input subsequence matched by the previous match.
Return the input subsequence matched by the previous match.
- Definition Classes
- PatMatcherB → MatchResult
-
def
groupCount(): Int
Return the number of capturing groups in this match result's pattern.
Return the number of capturing groups in this match result's pattern.
- Definition Classes
- PatMatcherB → MatchResult
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
lookingAt(): Boolean
Match the input sequence, starting at the beginning of the region, against the pattern.
-
def
matcher(_input: String): AutomatonMatcher
Create a matcher that will match the given 'input' against the regex pattern.
-
def
matches(): Boolean
Match the entire region against the pattern.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
start(group: Int): Int
Return the start index of the subsequence captured by the given group during this match.
Return the start index of the subsequence captured by the given group during this match.
- Definition Classes
- PatMatcherB → MatchResult
-
def
start(): Int
Return the start index of the match.
Return the start index of the match.
- Definition Classes
- PatMatcherB → MatchResult
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
Convert this
PatMatcherB
object to its underlying regex string.Convert this
PatMatcherB
object to its underlying regex string.- Definition Classes
- PatMatcherB → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )