Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 8... Línea 8...
8
use OpenSpout\Common\Exception\EncodingConversionException;
8
use OpenSpout\Common\Exception\EncodingConversionException;
Línea 9... Línea 9...
9
 
9
 
10
/**
10
/**
11
 * @internal
11
 * @internal
12
 */
12
 */
13
final class EncodingHelper
13
final readonly class EncodingHelper
14
{
14
{
15
    /**
15
    /**
16
     * Definition of the encodings that can have a BOM.
16
     * Definition of the encodings that can have a BOM.
17
     */
17
     */
Línea 31... Línea 31...
31
    public const BOM_UTF32_BE = "\x00\x00\xFE\xFF";
31
    public const BOM_UTF32_BE = "\x00\x00\xFE\xFF";
Línea 32... Línea 32...
32
 
32
 
33
    /** @var array<string, string> Map representing the encodings supporting BOMs (key) and their associated BOM (value) */
33
    /** @var array<string, string> Map representing the encodings supporting BOMs (key) and their associated BOM (value) */
Línea 34... Línea 34...
34
    private array $supportedEncodingsWithBom;
34
    private array $supportedEncodingsWithBom;
Línea 35... Línea 35...
35
 
35
 
Línea 36... Línea 36...
36
    private readonly bool $canUseIconv;
36
    private bool $canUseIconv;
37
 
37
 
38
    private readonly bool $canUseMbString;
38
    private bool $canUseMbString;
39
 
39