src/Alg/Turing/Machine.php
private function wrapTape( &$tape )
	{
		if( substr( $tape, 0, 1 ) != $this->blank )
			$tape = $this->blank.$tape;
		if( substr( $tape, -1 ) != $this->blank )
			$tape = $tape.$this->blank;
	}
private function wrapTape( &$tape )
	{
		if( substr( $tape, 0, 1 ) != $this->blank )
			$tape = $this->blank.$tape;
		if( substr( $tape, -1 ) != $this->blank )
			$tape = $tape.$this->blank;
	}
private function wrapTape ( & $ tape ) { if ( substr ( $ tape , 0 , 1 ) != $ this -> blank ) $ tape = $ this -> blank . $ tape ; if ( substr ( $ tape , - 1 ) != $ this -> blank ) $ tape = $ tape . $ this -> blank ; }
Adds Blanks at start and end of the tape.
@access		private
@param		string		$tape			current tape to be cleaned up
@return		string
Adds Blanks at start and end of the tape .