webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Public Attributes | List of all members
mox.Regex Class Reference
Inheritance diagram for mox.Regex:
mox.Comparator

Public Member Functions

def __init__ (self, pattern, flags=0)
 
def equals (self, rhs)
 
def __repr__ (self)
 
- Public Member Functions inherited from mox.Comparator
def equals (self, rhs)
 
def __eq__ (self, rhs)
 
def __ne__ (self, rhs)
 

Public Attributes

 regex
 

Detailed Description

Checks if a string matches a regular expression.

This uses a given regular expression to determine equality.

Constructor & Destructor Documentation

◆ __init__()

def mox.Regex.__init__ (   self,
  pattern,
  flags = 0 
)
Initialize.

Args:
  # pattern is the regular expression to search for
  pattern: str
  # flags passed to re.compile function as the second argument
  flags: int

Member Function Documentation

◆ __repr__()

def mox.Regex.__repr__ (   self)

◆ equals()

def mox.Regex.equals (   self,
  rhs 
)
Check to see if rhs matches regular expression pattern.

Returns:
  bool

Member Data Documentation

◆ regex

mox.Regex.regex

The documentation for this class was generated from the following file: