Home
last modified time | relevance | path

Searched refs:RegexIterator (Results 1 – 25 of 38) sorted by relevance

12

/PHP-8.0/ext/spl/tests/
H A Dbug66702.phpt2 Bug #66702 (RegexIterator inverted result works as expected)
10 $it2 = new \RegexIterator($it, "/^ba/", \RegexIterator::MATCH);
12 $it2 = new \RegexIterator($it, "/^ba/", \RegexIterator::MATCH, \RegexIterator::INVERT_MATCH);
16 $it2 = new \RegexIterator($it, "/^ba/", \RegexIterator::MATCH, \RegexIterator::USE_KEY);
18 $it2 = new \RegexIterator($it, "/^ba/", \RegexIterator::MATCH, \RegexIterator::USE_KEY | \RegexIter…
H A DregexIterator_mode_basic.phpt2 SPL: RegexIterator::getMode() and setMode() basic tests
10 $regexIterator = new RegexIterator($iterator, "/f/");
12 var_dump($regexIterator->getMode() === RegexIterator::MATCH);
14 $regexIterator->setMode(RegexIterator::MATCH);
15 var_dump($regexIterator->getMode() === RegexIterator::MATCH);
17 $regexIterator->setMode(RegexIterator::GET_MATCH);
18 var_dump($regexIterator->getMode() === RegexIterator::GET_MATCH);
20 $regexIterator->setMode(RegexIterator::ALL_MATCHES);
21 var_dump($regexIterator->getMode() === RegexIterator::ALL_MATCHES);
23 $regexIterator->setMode(RegexIterator::SPLIT);
[all …]
H A DregexIterator_setMode_error.phpt2 SPL: RegexIterator::setMode() error tests
9 $regexIterator = new RegexIterator(new ArrayIterator($array), "/f/");
23 RegexIterator::setMode(): Argument #1 ($mode) must be RegexIterator::MATCH, RegexIterator::GET_MATC…
H A DregexIterator_flags_basic.phpt2 SPL: RegexIterator::getFlags() and setFlags() basic tests
10 $regexIterator = new RegexIterator($iterator, "/f/", null, RegexIterator::USE_KEY);
12 var_dump($regexIterator->getFlags() === RegexIterator::USE_KEY);
16 var_dump($regexIterator->getFlags() === RegexIterator::USE_KEY);
17 $regexIterator->setFlags(RegexIterator::USE_KEY);
18 var_dump($regexIterator->getFlags() === RegexIterator::USE_KEY);
H A Diterator_051.phpt2 SPL: RegexIterator::GET_MATCH, USE_KEY
6 class MyRegexIterator extends RegexIterator
19 $it = new MyRegexIterator($ar, '/(\d),(\d)/', RegexIterator::GET_MATCH, RegexIterator::USE_KEY);
22 $it = new MyRegexIterator($ar, '/(\d)/', RegexIterator::GET_MATCH, RegexIterator::USE_KEY);
H A Diterator_029.phpt2 SPL: RegexIterator
8 foreach(new RegexIterator(new ArrayIterator($ar), "/2/") as $k => $v)
17 foreach(new RegexIterator(new ArrayIterator($ar), "/2/", 0, RegexIterator::USE_KEY) as $k => $v)
H A Dbug50579.phpt2 Bug #50579 (RegexIterator::REPLACE doesn't work)
15 $i = new RegexIterator($h, '/^test(.*)/', RegexIterator::REPLACE);
27 $i = new RegexIterator($h, '/^test(.*)/', RegexIterator::REPLACE);
H A Diterator_055.phpt2 SPL: RegexIterator::SPLIT, USE_KEY
6 class MyRegexIterator extends RegexIterator
19 $it = new MyRegexIterator($ar, '/(\d),(\d)/', RegexIterator::SPLIT, RegexIterator::USE_KEY);
H A Dregexiterator_getregex.phpt2 SPL: RegexIterator::getRegex() basic tests
12 $regexIterator = new RegexIterator($iterator, '/.at/');
16 $regexIterator = new RegexIterator($iterator, '//');
20 $regexIterator = new RegexIterator($iterator, '|\b[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b|');
H A DRegexIterator_with_reference_replacement.phpt2 RegexIterator with $replacement being a reference
6 $i = new RegexIterator($a, '/^(test)(\d+)/', RegexIterator::REPLACE);
H A Diterator_050.phpt2 SPL: RegexIterator::GET_MATCH
6 class MyRegexIterator extends RegexIterator
19 $it = new MyRegexIterator($ar, '/(\d),(\d)/', RegexIterator::GET_MATCH);
22 $it = new MyRegexIterator($ar, '/(\d)/', RegexIterator::GET_MATCH);
H A Dbug68128-USE_KEY.phpt7 $regexIterator = new RegexIterator($arrayIterator, '/^key/', RegexIterator::MATCH, RegexIterator::U…
H A Dbug61418.phpt2 Bug #61418: Segmentation fault using FiltesystemIterator & RegexIterator
6 $regexpIterator = new RegexIterator($fileIterator, '#.*#');
14 $regexpIterator2 = new RegexIterator($dirIterator, '#.*#');
H A Dbug54304.phpt2 Bug #54304 (Setting replacement value for RegexIterator doesn't work)
13 $i = new RegexIterator($h, '/^test(.*)/', RegexIterator::REPLACE);
H A Diterator_053.phpt2 SPL: RegexIterator::ALL_MATCHES
6 class MyRegexIterator extends RegexIterator
36 $it = new MyRegexIterator($ar, '/(\d),(\d)/', RegexIterator::ALL_MATCHES, RegexIterator::USE_KEY);
39 $it = new MyRegexIterator($ar, '/(\d)/', RegexIterator::ALL_MATCHES, RegexIterator::USE_KEY);
H A Dbug46088.phpt2 Bug #46088 (RegexIterator::accept - segfault)
6 $x = new RegexIterator(new ArrayIterator(range(1, 10)), '/\d/');
H A Diterator_054.phpt2 SPL: RegexIterator::SPLIT
6 class MyRegexIterator extends RegexIterator
19 $it = new MyRegexIterator($ar, '/,/', RegexIterator::SPLIT);
H A Dbug68175.phpt2 Bug #68175 (RegexIterator pregFlags are NULL instead of 0)
6 $regex = new RegexIterator($arr, '/^test/');
H A Dregexiterator_setpregflags.phpt2 SPL: RegexIterator::setPregFlags()
20 class TestRegexIterator extends RegexIterator{}
H A Dregexiterator_getpregflags.phpt2 SPL: RegexIterator::getPregFlags()
20 class TestRegexIterator extends RegexIterator{}
H A Diterator_052.phpt2 SPL: RegexIterator::ALL_MATCHES
6 class MyRegexIterator extends RegexIterator
36 $it = new MyRegexIterator($ar, '/(\d),(\d)/', RegexIterator::ALL_MATCHES);
39 $it = new MyRegexIterator($ar, '/(\d)/', RegexIterator::ALL_MATCHES);
/PHP-8.0/ext/phar/phar/
H A Dinvertedregexiterator.inc9 * Inverted RegexIterator
13 * @brief Inverted RegexIterator
17 class InvertedRegexIterator extends RegexIterator
19 /** @return !RegexIterator::accept()
23 return !RegexIterator::accept();
/PHP-8.0/ext/spl/
H A Dspl_iterators_arginfo.h369 ZEND_METHOD(RegexIterator, __construct);
370 ZEND_METHOD(RegexIterator, accept);
371 ZEND_METHOD(RegexIterator, getMode);
372 ZEND_METHOD(RegexIterator, setMode);
373 ZEND_METHOD(RegexIterator, getFlags);
374 ZEND_METHOD(RegexIterator, setFlags);
375 ZEND_METHOD(RegexIterator, getRegex);
376 ZEND_METHOD(RegexIterator, getPregFlags);
377 ZEND_METHOD(RegexIterator, setPregFlags);
565 ZEND_ME(RegexIterator, accept, arginfo_class_RegexIterator_accept, ZEND_ACC_PUBLIC)
[all …]
/PHP-8.0/sapi/fuzzer/corpus/unserialize/
H A Dleak_176461 …:1:"x";a:9:{i:04;R:1;i:5312;O:13:"RegexIterator":53;�i:08032617006;a:7:{i:0;R:04;S:1:"a";i:2;i:531…
/PHP-8.0/Zend/tests/
H A Dgc_043.phpt6 O:8:"stdClass":2:{i:5;C:8:"SplStack":29:{i:4;:r:1;:O:8:"stdClass":0:{}}i:0;O:13:"RegexIterator":1:{…
27 object(RegexIterator)#4 (2) {

Completed in 30 milliseconds

12