Moodle PHP Documentation 4.5
Moodle 4.5.5+ (Build: 20250711) (ce34e8ff087)
libphonenumber\Matcher Class Reference

Public Member Functions

 __construct (string $pattern, string $subject)
 
 end (?int $group=null)
 
 find (?int $offset=null)
 
 group (?int $group=null)
 
 groupCount ()
 
 lookingAt ()
 
 matches ()
 
 replaceAll (string $replacement)
 
 replaceFirst (string $replacement)
 
 reset (string $input='')
 
 start (int $group=0)
 

Protected Member Functions

 doMatch (string $type='find', int $offset=0)
 

Protected Attributes

array< array{string, int}> array $groups = []
 
string $pattern
 
string $subject = ''
 

Constructor & Destructor Documentation

◆ __construct()

libphonenumber\Matcher::__construct ( string $pattern,
string $subject )
Parameters
string$pattern
string$subject

Member Function Documentation

◆ doMatch()

libphonenumber\Matcher::doMatch ( string $type = 'find',
int $offset = 0 )
protected
Parameters
string$type
int$offset
Return values
bool

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