2026-04-28 06:32:35 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2026-present, the Ladybird developers.
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include <LibWeb/Encoding/TextDecoderCommon.h>
|
|
|
|
|
|
|
|
|
|
namespace Web::Encoding {
|
|
|
|
|
|
2026-06-22 17:07:40 -03:00
|
|
|
TextDecoderCommonMixin::TextDecoderCommonMixin(TextCodec::Decoder& decoder, FlyString encoding, TextCodec::ErrorMode error_mode, bool ignore_bom)
|
2026-04-28 06:32:35 -03:00
|
|
|
: m_decoder(decoder)
|
|
|
|
|
, m_encoding(move(encoding))
|
|
|
|
|
, m_error_mode(error_mode)
|
|
|
|
|
, m_ignore_bom(ignore_bom)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TextDecoderCommonMixin::~TextDecoderCommonMixin() = default;
|
|
|
|
|
|
|
|
|
|
}
|