Lines Matching refs:segment
181 $segment = substr($html, $cursor, $strlen_segment);
183 if ($segment === false) {
190 if (substr($segment, 0, 3) === '!--') {
206 $segment = substr($html, $cursor, $strlen_segment);
210 $segment,
226 $is_end_tag = (strpos($segment, '/') === 0);
228 $type = substr($segment, 1);
243 if (!ctype_alpha($segment[0])) {
262 $is_self_closing = (strrpos($segment, '/') === $strlen_segment - 1);
265 $segment = substr($segment, 0, $strlen_segment);
269 $position_first_space = strcspn($segment, $this->_whitespace);
273 $token = new HTMLPurifier_Token_Empty($segment);
275 $token = new HTMLPurifier_Token_Start($segment);
288 $type = substr($segment, 0, $position_first_space);
292 $segment,