Copyright (C) 2021-2023, AdaCore
SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
type Converter_Flag is
(Stateless,
Stop_On_Error,
Process_BOM);
Converter doesn't save state between two conversions, and report an error when provided data is incomplete.
Stop conversion on first found error and report it. Consequential calls of converter's will do nothing, till its state is reset.
Otherwise, errors of conversion are reported, one or more replacement characters (uFFFD) are added at place of error and conversion continues.
Process BOM by converter. When enabled, decoder will skip BOM, and encoder will generate BOM.
type Converter_Flags is array (Converter_Flag) of Boolean
with Pack;
Default_Converter_Flags : constant Converter_Flags := [others => False];