Public Member Functions | Public Attributes | List of all members
mox.Regex Class Reference
Inheritance diagram for mox.Regex:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, pattern, flags=0)
 
def __init__ (self, pattern, flags=0)
 
def __repr__ (self)
 
def __repr__ (self)
 
def equals (self, rhs)
 
def equals (self, rhs)
 
- Public Member Functions inherited from mox.Comparator
def __eq__ (self, rhs)
 
def __eq__ (self, rhs)
 
def __ne__ (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.

Definition at line 904 of file bloaty/third_party/protobuf/python/mox.py.

Constructor & Destructor Documentation

◆ __init__() [1/2]

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

Definition at line 910 of file bloaty/third_party/protobuf/python/mox.py.

◆ __init__() [2/2]

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

Definition at line 910 of file protobuf/python/mox.py.

Member Function Documentation

◆ __repr__() [1/2]

def mox.Regex.__repr__ (   self)

Definition at line 931 of file bloaty/third_party/protobuf/python/mox.py.

◆ __repr__() [2/2]

def mox.Regex.__repr__ (   self)

Definition at line 931 of file protobuf/python/mox.py.

◆ equals() [1/2]

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

Returns:
  bool

Reimplemented from mox.Comparator.

Definition at line 922 of file protobuf/python/mox.py.

◆ equals() [2/2]

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

Returns:
  bool

Reimplemented from mox.Comparator.

Definition at line 922 of file bloaty/third_party/protobuf/python/mox.py.

Member Data Documentation

◆ regex

mox.Regex.regex

Definition at line 920 of file bloaty/third_party/protobuf/python/mox.py.


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:41