$firstChar =
substr($token, 0, 1
);
switch ($firstChar) { case ' ':
case "\t":
$value .=
$firstChar;
$token =
substr($token, 1
);
} if (-1 ==
$usedLength) { $usedLength = \
strlen($header->
getName().': '
) + \
strlen($value);
} $value .=
$this->
getTokenAsEncodedWord($token,
$usedLength);
} else { $value .=
$token;
} } return $value;
} protected function tokenNeedsEncoding(string
$token): bool
{ return (bool) preg_match('~[\x00-\x08\x10-\x19\x7F-\xFF\r\n]~',
$token);
}