private function decodeSplitPart($entity)
    {
        if (preg_match("/^=\?([A-Za-z\-_0-9]+)\*?([A-Za-z\-_0-9]+)?\?([QBqb])\?([^\?]+)\?=$/", $entity, $matches)) {
            return $this->decodeMatchedEntity($matches);
        }
        $decoded = $this->convertEncoding($entity);
        $this->addToLanguage($decoded);
        return $decoded;
    }
private function decodeSplitPart($entity)
    {
        if (preg_match("/^=\?([A-Za-z\-_0-9]+)\*?([A-Za-z\-_0-9]+)?\?([QBqb])\?([^\?]+)\?=$/", $entity, $matches)) {
            return $this->decodeMatchedEntity($matches);
        }
        $decoded = $this->convertEncoding($entity);
        $this->addToLanguage($decoded);
        return $decoded;
    }
private function decodeSplitPart ( $ entity ) { if ( preg_match ( "/^=\?([A-Za-z\-_0-9]+)\*?([A-Za-z\-_0-9]+)?\?([QBqb])\?([^\?]+)\?=$/" , $ entity , $ matches ) ) { return $ this -> decodeMatchedEntity ( $ matches ) ; } $ decoded = $ this -> convertEncoding ( $ entity ) ; $ this -> addToLanguage ( $ decoded ) ; return $ decoded ; }
Decodes a single mime-encoded entity.

Unfortunately, mb_decode_header fails for many charsets on PHP 5.4 and
PHP 5.5 (even if they're listed as supported).  iconv_mime_decode doesn't
support all charsets.

Parsing out the charset and body of the encoded entity seems to be the
way to go to support the most charsets.

@param string $entity
@return string
Decodes a single mime - encoded entity .