Lines Matching refs:offset
4 function autoclose_tag(&$sample_html, $offset, $tags, $nested, $close) { argument
7 while (preg_match("#^(.*?)({$tags})#is", substr($sample_html, $offset),$matches)) {
11 $tag_start = $offset + strlen($matches[1]);
18 $offset = $nested[$tag]($sample_html, $tag_end);
27 return $offset;
34 function skip_to(&$html, $offset, $tag) { argument
35 $prefix = substr($html,0,$offset);
36 $suffix = substr($html,$offset);
45 function autoclose_tag_cleanup(&$sample_html, $offset, $tags_raw, $nested, $close) { argument
47 skip_to($sample_html, $offset, $tags_raw);
49 while (preg_match("#^(.*?)({$tags})#is", substr($sample_html, $offset),$matches)) {
53 $tag_start = $offset + strlen($matches[1]);
60 $offset = $nested[$tag]($sample_html, $tag_end);
68 skip_to($sample_html, $offset, $tags_raw);
71 return $offset;