src/ADT/StringBuffer.php
public function getNextChar()
	{
		$character	= NULL;
		if( $this->direction == "<" )
			$this->pointer++;
		if( $this->pointer < $this->count() &&  $this->pointer >=0 )
		{
			$this->direction = ">";
			$character = $this->buffer[$this->pointer];
			$this->pointer++;
		}
		return $character;
	}
public function getNextChar()
	{
		$character	= NULL;
		if( $this->direction == "<" )
			$this->pointer++;
		if( $this->pointer < $this->count() &&  $this->pointer >=0 )
		{
			$this->direction = ">";
			$character = $this->buffer[$this->pointer];
			$this->pointer++;
		}
		return $character;
	}
public function getNextChar ( ) { $ character = NULL ; if ( $ this -> direction == "<" ) $ this -> pointer ++ ; if ( $ this -> pointer < $ this -> count ( ) && $ this -> pointer >= 0 ) { $ this -> direction = ">" ; $ character = $ this -> buffer [ $ this -> pointer ] ; $ this -> pointer ++ ; } return $ character ; }
Returns the next Character.
@access		public
@return		string
Returns the next Character .