php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
RegexIterator Class Reference
Inheritance diagram for RegexIterator:
FilterIterator IteratorIterator OuterIterator Iterator Traversable RecursiveRegexIterator

Public Member Functions

 __construct (Iterator $iterator, string $pattern, int $mode=RegexIterator::MATCH, int $flags=0, int $pregFlags=0)
 
 accept ()
 
 getMode ()
 
 setMode (int $mode)
 
 getFlags ()
 
 setFlags (int $flags)
 
 getRegex ()
 
 getPregFlags ()
 
 setPregFlags (int $pregFlags)
 
- Public Member Functions inherited from FilterIterator
 __construct (Iterator $iterator)
 
 rewind ()
 
 next ()
 
- Public Member Functions inherited from IteratorIterator
 __construct (Traversable $iterator, ?string $class=null)
 
 getInnerIterator ()
 
 valid ()
 
 key ()
 
 current ()
 

Data Fields

const int USE_KEY = UNKNOWN
 
const int INVERT_MATCH = UNKNOWN
 
const int MATCH = UNKNOWN
 
const int GET_MATCH = UNKNOWN
 
const int ALL_MATCHES = UNKNOWN
 
const int SPLIT = UNKNOWN
 
const int REPLACE = UNKNOWN
 
string $replacement = null
 

Detailed Description

Definition at line 343 of file spl_iterators.stub.php.

Constructor & Destructor Documentation

◆ __construct()

RegexIterator::__construct ( Iterator $iterator,
string $pattern,
int $mode = RegexIterator::MATCH,
int $flags = 0,
int $pregFlags = 0 )

Definition at line 362 of file spl_iterators.stub.php.

Member Function Documentation

◆ accept()

RegexIterator::accept ( )

@tentative-return-type

Reimplemented from FilterIterator.

Reimplemented in RecursiveRegexIterator.

Definition at line 365 of file spl_iterators.stub.php.

◆ getFlags()

RegexIterator::getFlags ( )

@tentative-return-type

Definition at line 374 of file spl_iterators.stub.php.

◆ getMode()

RegexIterator::getMode ( )

@tentative-return-type

Definition at line 368 of file spl_iterators.stub.php.

◆ getPregFlags()

RegexIterator::getPregFlags ( )

@tentative-return-type

Definition at line 383 of file spl_iterators.stub.php.

◆ getRegex()

RegexIterator::getRegex ( )

@tentative-return-type

Definition at line 380 of file spl_iterators.stub.php.

◆ setFlags()

RegexIterator::setFlags ( int $flags)

@tentative-return-type

Definition at line 377 of file spl_iterators.stub.php.

◆ setMode()

RegexIterator::setMode ( int $mode)

@tentative-return-type

Definition at line 371 of file spl_iterators.stub.php.

◆ setPregFlags()

RegexIterator::setPregFlags ( int $pregFlags)

@tentative-return-type

Definition at line 386 of file spl_iterators.stub.php.

Field Documentation

◆ $replacement

string RegexIterator::$replacement = null

Definition at line 360 of file spl_iterators.stub.php.

◆ ALL_MATCHES

const int RegexIterator::ALL_MATCHES = UNKNOWN

@cvalue REGIT_MODE_ALL_MATCHES

Definition at line 354 of file spl_iterators.stub.php.

◆ GET_MATCH

const int RegexIterator::GET_MATCH = UNKNOWN

@cvalue REGIT_MODE_GET_MATCH

Definition at line 352 of file spl_iterators.stub.php.

◆ INVERT_MATCH

const int RegexIterator::INVERT_MATCH = UNKNOWN

@cvalue REGIT_INVERTED

Definition at line 348 of file spl_iterators.stub.php.

◆ MATCH

const int RegexIterator::MATCH = UNKNOWN

@cvalue REGIT_MODE_MATCH

Definition at line 350 of file spl_iterators.stub.php.

◆ REPLACE

const int RegexIterator::REPLACE = UNKNOWN

@cvalue REGIT_MODE_REPLACE

Definition at line 358 of file spl_iterators.stub.php.

◆ SPLIT

const int RegexIterator::SPLIT = UNKNOWN

@cvalue REGIT_MODE_SPLIT

Definition at line 356 of file spl_iterators.stub.php.

◆ USE_KEY

const int RegexIterator::USE_KEY = UNKNOWN

@cvalue REGIT_USE_KEY

Definition at line 346 of file spl_iterators.stub.php.


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