#include "fxbarcode/datamatrix/BC_ErrorCorrection.h"
#include <stdint.h>
#include <algorithm>
#include <array>
#include <vector>
#include "core/fxcrt/check.h"
#include "core/fxcrt/fixed_size_data_vector.h"
#include "core/fxcrt/span.h"
#include "fxbarcode/datamatrix/BC_Encoder.h"
#include "fxbarcode/datamatrix/BC_SymbolInfo.h"
namespace {
constexpr std::array<uint8_t, 5> FACTORS_0 = …;
constexpr std::array<uint8_t, 7> FACTORS_1 = …;
constexpr std::array<uint8_t, 10> FACTORS_2 = …;
constexpr std::array<uint8_t, 11> FACTORS_3 = …;
constexpr std::array<uint8_t, 12> FACTORS_4 = …;
constexpr std::array<uint8_t, 14> FACTORS_5 = …;
constexpr std::array<uint8_t, 18> FACTORS_6 = …;
constexpr std::array<uint8_t, 20> FACTORS_7 = …;
constexpr std::array<uint8_t, 24> FACTORS_8 = …;
constexpr std::array<uint8_t, 28> FACTORS_9 = …;
constexpr std::array<uint8_t, 36> FACTORS_10 = …;
constexpr std::array<uint8_t, 42> FACTORS_11 = …;
constexpr std::array<uint8_t, 48> FACTORS_12 = …;
constexpr std::array<uint8_t, 56> FACTORS_13 = …;
constexpr std::array<uint8_t, 62> FACTORS_14 = …;
constexpr std::array<uint8_t, 68> FACTORS_15 = …;
constexpr std::array<pdfium::span<const uint8_t>, 16> FACTORS = …;
constexpr std::array<uint8_t, 256> LOG = …;
constexpr std::array<uint8_t, 256> ALOG = …;
WideString CreateECCBlock(const WideString& codewords, size_t numECWords) { … }
}
WideString CBC_ErrorCorrection::EncodeECC200(const WideString& codewords,
const CBC_SymbolInfo* symbolInfo) { … }