original_string: protected function name()
  	{
  		$len = strcspn($this->data, "\x0A:", $this->position);
  		if (isset($this->data[$this->position + $len]))
  		{
  			if ($this->data[$this->position + $len] === "\x0A")
  			{
  				$this->position += $len;
  				$this->state = 'new_line';
  			}
  			else
  			{
  				$this->name = substr($this->data, $this->position, $len);
  				$this->position += $len + 1;
  				$this->state = 'value';
  			}
  		}
  		else
  		{
  			$this->state = false;
  		}
  	}
code: protected function name()
  	{
  		$len = strcspn($this->data, "\x0A:", $this->position);
  		if (isset($this->data[$this->position + $len]))
  		{
  			if ($this->data[$this->position + $len] === "\x0A")
  			{
  				$this->position += $len;
  				$this->state = 'new_line';
  			}
  			else
  			{
  				$this->name = substr($this->data, $this->position, $len);
  				$this->position += $len + 1;
  				$this->state = 'value';
  			}
  		}
  		else
  		{
  			$this->state = false;
  		}
  	}
code_tokens: protected function name ( ) { $ len = strcspn ( $ this -> data , "\x0A:" , $ this -> position ) ; if ( isset ( $ this -> data [ $ this -> position + $ len ] ) ) { if ( $ this -> data [ $ this -> position + $ len ] === "\x0A" ) { $ this -> position += $ len ; $ this -> state = 'new_line' ; } else { $ this -> name = substr ( $ this -> data , $ this -> position , $ len ) ; $ this -> position += $ len + 1 ; $ this -> state = 'value' ; } } else { $ this -> state = false ; } }
docstring: Parse a header name
docstring_tokens: Parse a header name