Lines Matching refs:part

12  *   This file is part of GeSHi.
2193 // when we have only one part, we don't have anything to highlight at all.
2270 // Now we go through each part. We know that even-indexed parts are
2285 $part = $parts[$key][1];
2326 $length = strlen($part);
2329 $char = $part[$i];
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))
2386 if ($testchar === substr($part, $i, strlen($testchar)) &&
2397 if ($testchar === substr($part, $i, strlen($testchar))) {
2434 $close_pos = strpos($part, $char, $start);
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))
2486 $simple_escape = strpos($part, $this->language_data['ESCAPE_CHAR'], $start);
2505 $string .= $this->hsc(substr($part, $start, $es_pos - $start));
2519 $es_char = $part[$es_pos + 1];
2528 $es_char_m = mb_substr(substr($part, $es_pos+1, 16), 0, 1, $this->encoding);
2538 $part, $es_char_m, null, $es_pos + 1)) {
2556 $string .= $this->hsc(substr($part, $start, $es_pos - $start));
2560 $escape_str = substr($part, $es_pos, $escape['length']);
2577 $string .= $this->hsc(substr($part, $start, $close_pos - $start + $char_len)) . '</span>';
2597 substr($part, $i, $hq_strlen) == $hq) {
2615 while ($close_pos = strpos($part, $this->language_data['HARDQUOTE'][1], $start)) {
2617 if ($this->lexic_permissions['ESCAPE_CHAR'] && $part[$close_pos - 1] == $this->language_data['HARDCHAR']) {
2620 if (substr($part, $close_pos - 1, strlen($hardescape)) == $hardescape) {
2624 && $part[$escape_char_pos - 1] == $this->language_data['HARDCHAR']) {
2641 // span till the end of this $part when no closing delimiter is found
2646 $string = substr($part, $i, $close_pos - $i + 1);
2708 $test_str = $this->hsc(substr($part, $i, $comment['length']));
2753 } else if (($match_i = stripos($part, $open, $i)) !== false) {
2793 // "important" part
2800 $close_pos = strpos( $part, $close, $i + $open_strlen );
2807 $rest_of_comment = $this->hsc(substr($part, $i + $open_strlen, $close_pos - $i - $open_strlen + $close_strlen));
2853 ($match_i = stripos($part, $comment_mark, $i)) !== false) ||
2856 (($match_i = strpos($part, $comment_mark, $i)) !== false))) {
2879 (false === strpos($sc_disallowed_before, $part[$i-1]))) &&
2881 (false === strpos($sc_disallowed_after, $part[$i + $com_len]))))
2897 $close_pos = strpos($part, "\n", $i);
2903 $test_str .= $this->hsc(substr($part, $i + $com_len, $close_pos - $i - $com_len));
2936 $result .= $this->hsc($part);
2945 unset($part, $parts[$key], $result);
4477 // only part of the keys match