PHP 8.3.31
Preview: QpMimeHeaderEncoder.php Size: 1.05 KB
/home/getspomw/royalsquad.us/vendor/symfony/mime/Encoder/QpMimeHeaderEncoder.php

<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Mime\Encoder;

/**
 * @author Chris Corbyn
 */
final class QpMimeHeaderEncoder extends QpEncoder implements MimeHeaderEncoderInterface
{
    protected function initSafeMap(): void
    {
        foreach (array_merge(
            range(0x61, 0x7A), range(0x41, 0x5A),
            range(0x30, 0x39), [0x20, 0x21, 0x2A, 0x2B, 0x2D, 0x2F]
        ) as $byte) {
            $this->safeMap[$byte] = \chr($byte);
        }
    }

    public function getName(): string
    {
        return 'Q';
    }

    public function encodeString(string $string, ?string $charset = 'utf-8', int $firstLineOffset = 0, int $maxLineLength = 0): string
    {
        return str_replace([' ', '=20', "=\r\n"], ['_', '_', "\r\n"],
            parent::encodeString($string, $charset, $firstLineOffset, $maxLineLength)
        );
    }
}

Directory Contents

Dirs: 0 × Files: 14

Name Size Perms Modified Actions
689 B lrw-rw-rw- 2025-09-17 06:53:20
Edit Download
1.30 KB lrw-rw-rw- 2025-09-17 06:53:20
Edit Download
1.25 KB lrw-rw-rw- 2025-09-17 06:53:20
Edit Download
1.26 KB lrw-rw-rw- 2025-09-17 06:53:20
Edit Download
668 B lrw-rw-rw- 2025-09-17 06:53:20
Edit Download
834 B lrw-rw-rw- 2025-09-17 06:53:20
Edit Download
717 B lrw-rw-rw- 2025-09-17 06:53:20
Edit Download
10.01 KB lrw-r--r-- 2026-04-26 08:36:12
Edit Download
1.28 KB lrw-rw-rw- 2025-09-17 06:53:20
Edit Download
467 B lrw-rw-rw- 2025-09-17 06:53:20
Edit Download
1.69 KB lrw-rw-rw- 2025-09-17 06:53:20
Edit Download
7.67 KB lrw-rw-rw- 2025-09-17 06:53:20
Edit Download
1.05 KB lrw-rw-rw- 2025-09-17 06:53:20
Edit Download
1.40 KB lrw-rw-rw- 2025-09-17 06:53:20
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).