function name()
{
$len = strcspn($this->data, "\n:", $this->position);
if (isset($this->data[$this->position + $len])) {
if ($this->data[$this->position + $len] === "\n") {
$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;
}
}