terminate() 공개 메소드

Set the scan pointer to the end of the string and clear matching data.
public terminate ( )
예제 #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);
 }