Lines Matching refs:matches
1171 * @param string The style to make the regular expression matches
2059 $matches = array();
2070 if (!isset($matches[$dk][$open])) {
2071 $matches[$dk][$open] = array(
2083 if ($matches[$dk][$open]['next_match'] < $i) {
2091 $matches[$dk][$open]['next_match'] = $open_pos;
2093 if ($matches[$dk][$open]['next_match'] < $next_match_pos) {
2095 $matches[$dk][$open]['close_pos'] =
2096 strpos($code, $close, $matches[$dk][$open]['next_match']+1);
2098 $next_match_pointer =& $matches[$dk][$open];
2099 $next_match_pos = $matches[$dk][$open]['next_match'];
2113 $matches[$dk] = array(
2126 if ($matches[$dk]['next_match'] <= $next_match_pos) {
2127 $next_match_pointer =& $matches[$dk];
2128 $next_match_pos = $matches[$dk]['next_match'];
2162 foreach ($matches as $submatches) {
2165 // a different block already matches here!
2189 unset($delim_copy, $next_match_pointer, $next_match_pos, $matches);
3149 * @param array the matches array
3154 function handle_regexps_callback($matches) {
3156 return ' style="' . call_user_func($this->language_data['STYLES']['REGEXPS'][$this->_rx_key], $matches[1]) . '"'. $matches[1] . '|>';
3160 * handles newlines in REGEXPS matches. Set the _hmr_* vars before calling this
3164 * @param array the matches array
3169 function handle_multiline_regexps($matches) {
3176 foreach (array_keys($matches) as $k) {
3180 $before = str_replace($search, $matches, $before);
3181 $after = str_replace($search, $matches, $after);
3182 $replace = str_replace($search, $matches, $replace);
3184 $replace = $matches[0];
3407 //Get all matches and throw away those witin a block that is already highlighted... (i.e. matched by a regexp)
4139 * http://php.net/htmlspecialchars); it also matches the entity definition
4573 // '$matches', 'return "(?:" . preg_replace("#" . preg_quote($matches[1], "#") . "(?=\||$)#", "", $matches[0]) . ")" . $matches[1];'), $list);
4580 $callback_2 = create_function('$matches', 'return "[" . str_replace("|", "", $matches[1]) . "]";');