@@ 249-270 (lines=22) @@ | ||
246 | } |
|
247 | } |
|
248 | ||
249 | function skipInTag ($chars) { |
|
250 | $sb = ""; |
|
251 | while (($ch = $this->iCurrentChar) !== -1) { |
|
252 | if ($ch == ">") { |
|
253 | return $sb; |
|
254 | } else { |
|
255 | $match = false; |
|
256 | for ($idx = 0; $idx < count($chars); $idx++) { |
|
257 | if ($ch == $chars[$idx]) { |
|
258 | $match = true; |
|
259 | break; |
|
260 | } |
|
261 | } |
|
262 | if (!$match) { |
|
263 | return $sb; |
|
264 | } |
|
265 | $sb .= $ch; |
|
266 | $this->moveNext(); |
|
267 | } |
|
268 | } |
|
269 | return $sb; |
|
270 | } |
|
271 | ||
272 | function skipMaxInTag ($chars, $maxChars) { |
|
273 | $sb = ""; |
|
@@ 296-315 (lines=20) @@ | ||
293 | return $sb; |
|
294 | } |
|
295 | ||
296 | function skipToInTag ($chars) { |
|
297 | $sb = ""; |
|
298 | while (($ch = $this->iCurrentChar) !== -1) { |
|
299 | $match = $ch == ">"; |
|
300 | if (!$match) { |
|
301 | for ($idx = 0; $idx < count($chars); $idx++) { |
|
302 | if ($ch == $chars[$idx]) { |
|
303 | $match = true; |
|
304 | break; |
|
305 | } |
|
306 | } |
|
307 | } |
|
308 | if ($match) { |
|
309 | return $sb; |
|
310 | } |
|
311 | $sb .= $ch; |
|
312 | $this->moveNext(); |
|
313 | } |
|
314 | return $sb; |
|
315 | } |
|
316 | ||
317 | function skipToElement() { |
|
318 | $sb = ""; |