terminate() public method

Set the scan pointer to the end of the string and clear matching data.
public terminate ( )
Exemplo n.º 1
0
 public function testEos()
 {
     $s = new StringScanner('test string');
     $this->assertFalse($s->eos);
     $s->scan('/test/');
     $this->assertFalse($s->eos);
     $s->terminate();
     $this->assertTrue($s->eos);
 }