Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | List of all members
bs4.filter.MatchRule Class Reference
Inheritance diagram for bs4.filter.MatchRule:
Inheritance graph
[legend]
Collaboration diagram for bs4.filter.MatchRule:
Collaboration graph
[legend]

Public Member Functions

 __init__ (self, Optional[Union[str, bytes]] string=None, Optional[_RegularExpressionProtocol] pattern=None, Optional[Callable] function=None, Optional[bool] present=None, Optional[bool] exclude_everything=None)
 
bool matches_string (self, Optional[str] string)
 
str __repr__ (self)
 
bool __eq__ (self, Any other)
 

Public Attributes

 string
 
 pattern
 
 function
 
 present
 
 exclude_everything
 

Static Public Attributes

Optional string [str]
 
Optional pattern [_RegularExpressionProtocol]
 
Optional present [bool]
 
Optional exclude_everything [bool]
 

Protected Member Functions

Optional[bool] _base_match (self, Optional[str] string)
 

Detailed Description

Each MatchRule encapsulates the logic behind a single argument
passed in to one of the Beautiful Soup find* methods.

Member Function Documentation

◆ _base_match()

Optional[bool] bs4.filter.MatchRule._base_match (   self,
Optional[str]  string 
)
protected
Run the 'cheap' portion of a match, trying to get an answer without
calling a potentially expensive custom function.

:return: True or False if we have a (positive or negative)
match; None if we need to keep trying.

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