Lines Matching refs:list

965      * the code in an ordered list.
1591 * @param bool $recompile Wether to automatically recompile the optimized regexp list or not.
1595 * it might be too expensive to recompile the regexp list for every removal if you want to
1659 * compile optimized regexp list for keyword group
3402 //NEW in 1.0.8, the cached regexp list
3533 // Highlight brackets. Yes, I've tried adding a semi-colon to this list.
3932 // Add in the line surrounded by appropriate list HTML
4556 * this functions creates an optimized regular expression list
4560 * <code>$list = array('faa', 'foo', 'foobar');
4563 * @param array $list array of (unquoted) strings
4569 protected function optimize_regexp_list($list, $regexp_delimiter = '/') {
4572 sort($list);
4577 // the tokens which we will use to generate the regexp list
4580 // go through all entries of the list and generate the token list
4582 for ($i = 0, $i_max = count($list); $i < $i_max; ++$i) {
4591 $entry = preg_quote((string) $list[$i], $regexp_delimiter);
4664 unset($list[$i]);
4693 $list = '';
4695 $list .= $token;
4699 $list .= '(?:' . $this->_optimize_regexp_list_tokens_to_string($sub_tokens, true) . ')';
4702 $list .= '?';
4705 $list .= '|';
4711 //$list = preg_replace_callback('#(?<=^|\:|\|)\w+?(\w+)(?:\|.+\1)+(?=\|)#', create_function(
4712 // '$matches', 'return "(?:" . preg_replace("#" . preg_quote($matches[1], "#") . "(?=\||$)#", "", $matches[0]) . ")" . $matches[1];'), $list);
4714 $list = preg_replace('#\(\?\:(.)\)\?#', '\1?', $list);
4723 $list = preg_replace_callback('#\(\?\:((?:.\|)+.)\)#', $callback_2, $list);
4725 // return $list without trailing pipe
4726 return substr($list, 0, -1);