Lines Matching defs:part

12  *   This file is part of GeSHi.
2354 // when we have only one part, we don't have anything to highlight at all.
2431 // Now we go through each part. We know that even-indexed parts are
2446 $part = $parts[$key][1];
2487 $length = strlen($part);
2490 $char = $part[$i];
2507 } elseif (preg_match($regexp, $part, $match, PREG_OFFSET_CAPTURE, $i)) {
2540 if ($testchar === substr($part, $i, strlen($testchar)) &&
2551 if ($testchar === substr($part, $i, strlen($testchar))) {
2588 $close_pos = strpos($part, $char, $start);
2608 } elseif (preg_match($regexp, $part, $match, PREG_OFFSET_CAPTURE, $start)) {
2633 $simple_escape = strpos($part, $this->language_data['ESCAPE_CHAR'], $start);
2652 $string .= $this->hsc(substr($part, $start, $es_pos - $start));
2666 $es_char = $part[$es_pos + 1];
2675 $es_char_m = mb_substr(substr($part, $es_pos+1, 16), 0, 1, $this->encoding);
2685 $part, $es_char_m, null, $es_pos + 1)) {
2703 $string .= $this->hsc(substr($part, $start, $es_pos - $start));
2707 $escape_str = substr($part, $es_pos, $escape['length']);
2724 $string .= $this->hsc(substr($part, $start, $close_pos - $start + $char_len)) . '</span>';
2744 substr($part, $i, $hq_strlen) == $hq && ($i != $next_comment_regexp_pos)) {
2762 while ($close_pos = strpos($part, $this->language_data['HARDQUOTE'][1], $start)) {
2764 if ($this->lexic_permissions['ESCAPE_CHAR'] && $part[$close_pos - 1] == $this->language_data['HARDCHAR'] &&
2768 if (substr($part, $close_pos - 1, strlen($hardescape)) == $hardescape) {
2772 && $part[$escape_char_pos - 1] == $this->language_data['HARDCHAR']) {
2789 // span till the end of this $part when no closing delimiter is found
2794 $string = substr($part, $i, $close_pos - $i + 1);
2856 $test_str = $this->hsc(substr($part, $i, $comment['length']));
2901 } elseif (($match_i = stripos($part, $open, $i)) !== false) {
2941 // "important" part
2948 $close_pos = strpos( $part, $close, $i + $open_strlen );
2955 $rest_of_comment = $this->hsc(substr($part, $i + $open_strlen, $close_pos - $i - $open_strlen + $close_strlen));
3001 ($match_i = stripos($part, $comment_mark, $i)) !== false) ||
3004 (($match_i = strpos($part, $comment_mark, $i)) !== false))) {
3027 (false === strpos($sc_disallowed_before, $part[$i-1]))) &&
3029 (false === strpos($sc_disallowed_after, $part[$i + $com_len]))))
3045 $close_pos = strpos($part, "\n", $i);
3051 $test_str .= $this->hsc(substr($part, $i + $com_len, $close_pos - $i - $com_len));
3084 $result .= $this->hsc($part);
3093 unset($part, $parts[$key], $result);
4613 // only part of the keys match