Home | History | Annotate | Download | only in geshi

Lines Matching defs:regexp

131 // Advanced regexp handling constants, used in language files
146 for this regexp's html tag class */
1445 //NEW in 1.0.8 don't recompile the whole optimized regexp, simply append it
1458 * @param bool Wether to automatically recompile the optimized regexp list or not.
1462 * it might be too expensive to recompile the regexp list for every removal if you want to
1500 //NEW in 1.0.8, cache keyword regexp
1524 * compile optimized regexp list for keyword group
1840 // cache symbol regexp
1901 // cache optimized regexp for keyword matching
1976 //specific style or an string denoting a regexp given its index.
1980 $regexp = $rxdata;
1990 $regexp = implode("|", $rxuse);
1994 "/(?<!<\|\/NUM!)(?<!\d\/>)($regexp)(?!\|>)/i";
2103 //So we should match an RegExp as Strict Block ...
2105 * The value in $delimiters is expected to be an RegExp
2332 // update regexp comment cache if needed
2335 foreach ($this->language_data['COMMENT_REGEXP'] as $comment_key => $regexp) {
2348 (GESHI_PHP_PRE_433 && preg_match($regexp, substr($part, $i), $match, PREG_OFFSET_CAPTURE)) ||
2349 (!GESHI_PHP_PRE_433 && preg_match($regexp, $part, $match, PREG_OFFSET_CAPTURE, $i))
2440 // update escape regexp cache if needed
2443 foreach ($this->language_data['ESCAPE_REGEXP'] as $escape_key => $regexp) {
2456 (GESHI_PHP_PRE_433 && preg_match($regexp, substr($part, $start), $match, PREG_OFFSET_CAPTURE)) ||
2457 (!GESHI_PHP_PRE_433 && preg_match($regexp, $part, $match, PREG_OFFSET_CAPTURE, $start))
2704 //Have a look for regexp comments
2737 // If we haven't matched a regexp comment, try multi-line comments
3206 foreach ($this->language_data['REGEXPS'] as $key => $regexp) {
3208 if (is_array($regexp)) {
3211 $this->_hmr_replace = $regexp[GESHI_REPLACE];
3212 $this->_hmr_before = $regexp[GESHI_BEFORE];
3214 $this->_hmr_after = $regexp[GESHI_AFTER];
3216 "/" . $regexp[GESHI_SEARCH] . "/{$regexp[GESHI_MODIFIERS]}",
3224 '/' . $regexp[GESHI_SEARCH] . '/' . $regexp[GESHI_MODIFIERS],
3225 $regexp[GESHI_BEFORE] . '<|!REG3XP'. $key .'!>' . $regexp[GESHI_REPLACE] . '|>' . $regexp[GESHI_AFTER],
3232 $stuff_to_parse = preg_replace_callback( "/(" . $regexp . ")/",
3236 $stuff_to_parse = preg_replace( "/(" . $regexp . ")/", "<|!REG3XP$key!>\\1|>", $stuff_to_parse);
3248 foreach($this->language_data['NUMBERS_RXCACHE'] as $id => $regexp) {
3250 $stuff_to_parse = preg_replace($regexp, "<|/NUM!$id/>\\1|>", $stuff_to_parse);
3313 //NEW in 1.0.8, the cached regexp list
3345 foreach($this->language_data['NUMBERS_RXCACHE'] as $id => $regexp) {
3407 //Get all matches and throw away those witin a block that is already highlighted... (i.e. matched by a regexp)
4441 // the tokens which we will use to generate the regexp list
4543 * this function creates the appropriate regexp string of an token array