class Wildcard extends Matchable
The Wildcard
value class provides an implementation for wildcard string
matching that checks if the 'pattern' string matches against a given 'self'
string based on single (CHAR_WILD_ONE) and/or multiple (CHAR_WILD_MANY) wildcards.
- Alphabetic
- By Inheritance
- Wildcard
- Matchable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Wildcard(self: String)
Value Members
-
def
=~(pattern: String): Boolean
The equal-match operator determines whether the 'pattern' string matches the given 'self' string.
The equal-match operator determines whether the 'pattern' string matches the given 'self' string. Pattern may contain single- and/or multiple-replacing wildcard characters.
- pattern
the pattern to be matched (e.g., wildcard or regex)@param self the self against which the string to be matched
-
def
isMatch(pattern: String): Boolean
Test whether the 'pattern' string matches the given 'self' string.
Test whether the 'pattern' string matches the given 'self' string. Pattern may contain single- and/or multiple-replacing wildcard characters.
- val self: String
-
def
toString(): String
Convert this
Wildcard
object to its underlying string.Convert this
Wildcard
object to its underlying string.- Definition Classes
- Wildcard → AnyRef → Any