src/Alg/Turing/Machine.php
private function extendTape( &$tape, $pointer )
	{
		if( $pointer < 0 )
			$tape = $this->blank.$tape;
		else if( $pointer >= strlen( $tape ) )
			$tape .= $this->blank;
	}
private function extendTape( &$tape, $pointer )
	{
		if( $pointer < 0 )
			$tape = $this->blank.$tape;
		else if( $pointer >= strlen( $tape ) )
			$tape .= $this->blank;
	}
private function extendTape ( & $ tape , $ pointer ) { if ( $ pointer < 0 ) $ tape = $ this -> blank . $ tape ; else if ( $ pointer >= strlen ( $ tape ) ) $ tape .= $ this -> blank ; }
Checks and extends the pseudo infinite tape.
@access		private
@param		string		$tape			current tape to be cleaned up
@param		string		$pointer		current Position on tape
@return		string
Checks and extends the pseudo infinite tape .