Home
last modified time | relevance | path

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

12

/php-src/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/", RegexIterator::MATCH, 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 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 Dbug54304.phpt2 Bug #54304 (Setting replacement value for RegexIterator doesn't work)
13 $i = new RegexIterator($h, '/^test(.*)/', RegexIterator::REPLACE);
H A Diterator_054.phpt2 SPL: RegexIterator::SPLIT
6 class MyRegexIterator extends RegexIterator
19 $it = new MyRegexIterator($ar, '/,/', RegexIterator::SPLIT);
H A Dbug46088.phpt2 Bug #46088 (RegexIterator::accept - segfault)
6 $x = new RegexIterator(new ArrayIterator(range(1, 10)), '/\d/');
H A Dbug68175.phpt2 Bug #68175 (RegexIterator pregFlags are NULL instead of 0)
6 $regex = new RegexIterator($arr, '/^test/');
H A Dgh14290.phpt9 $i = new RegexIterator($h, '/^test(.*)/', RegexIterator::REPLACE);
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);
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{}
/php-src/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-src/Zend/tests/gc/
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:{…
12 Deprecated: Creation of dynamic property RegexIterator::$5 is deprecated in %s on line %d
28 object(RegexIterator)#4 (2) {
/php-src/ext/pcre/tests/
H A Dgh15205_1.phpt2 GH-15205: UAF when destroying RegexIterator after pcre request shutdown
8 $regex = [new RegexIterator($array, '/Array/')];

Completed in 20 milliseconds

12