Lines Matching defs:matches

748             if (!preg_match('/^([^.]+)\.php$/', $entry, $matches)) {
753 $langname = $matches[1];
797 if (!preg_match('/\'LANG_NAME\'\s*=>\s*\'((?:[^\']|\\\')+?)\'/', $data, $matches)) {
803 return stripcslashes($matches[1]);
1288 * @param string $key The style to make the regular expression matches
2209 $matches = array();
2220 if (!isset($matches[$dk][$open])) {
2221 $matches[$dk][$open] = array(
2233 if ($matches[$dk][$open]['next_match'] < $i) {
2241 $matches[$dk][$open]['next_match'] = $open_pos;
2243 if ($matches[$dk][$open]['next_match'] < $next_match_pos) {
2245 $matches[$dk][$open]['close_pos'] =
2246 strpos($code, $close, $matches[$dk][$open]['next_match']+1);
2248 $next_match_pointer =& $matches[$dk][$open];
2249 $next_match_pos = $matches[$dk][$open]['next_match'];
2264 $matches[$dk] = array(
2272 $matches[$dk] = array(
2286 if ($matches[$dk]['next_match'] <= $next_match_pos) {
2287 $next_match_pointer =& $matches[$dk];
2288 $next_match_pos = $matches[$dk]['next_match'];
2323 foreach ($matches as $submatches) {
2326 // a different block already matches here!
2350 unset($delim_copy, $next_match_pointer, $next_match_pos, $matches);
3297 * @param array $matches the matches array
3301 protected function handle_regexps_callback($matches) {
3303 return ' style="' . call_user_func($this->language_data['STYLES']['REGEXPS'][$this->_rx_key], $matches[1]) . '"'. $matches[1] . '|>';
3307 * handles newlines in REGEXPS matches. Set the _hmr_* vars before calling this
3311 * @param array $matches the matches array
3315 protected function handle_multiline_regexps($matches) {
3322 foreach (array_keys($matches) as $k) {
3326 $before = str_replace($search, $matches, $before);
3327 $after = str_replace($search, $matches, $after);
3328 $replace = str_replace($search, $matches, $replace);
3330 $replace = $matches[0];
3546 //Get all matches and throw away those witin a block that is already highlighted... (i.e. matched by a regexp)
4267 * http://php.net/htmlspecialchars); it also matches the entity definition
4712 // '$matches', 'return "(?:" . preg_replace("#" . preg_quote($matches[1], "#") . "(?=\||$)#", "", $matches[0]) . ")" . $matches[1];'), $list);
4719 $callback_2 = function($matches) {
4720 return "[" . str_replace("|", "", $matches[1]) . "]";