#include "fxbarcode/oned/BC_OnedCode39Writer.h"
#include <algorithm>
#include <array>
#include <iterator>
#include <memory>
#include "core/fxcrt/compiler_specific.h"
#include "core/fxcrt/fx_extension.h"
#include "core/fxcrt/stl_util.h"
#include "fxbarcode/BC_Writer.h"
#include "fxbarcode/oned/BC_OneDimWriter.h"
namespace {
constexpr auto kOnedCode39Alphabet = …;
constexpr size_t kOnedCode39AlphabetLen = …;
constexpr auto kOnedCode39Checksum = …;
static_assert …;
constexpr auto kOnedCode39CharacterEncoding = …;
static_assert …;
bool IsInOnedCode39Alphabet(wchar_t ch) { … }
char CalcCheckSum(const ByteString& contents) { … }
void ToIntArray(int16_t value, uint8_t ratio, pdfium::span<uint8_t> span) { … }
}
CBC_OnedCode39Writer::CBC_OnedCode39Writer() = default;
CBC_OnedCode39Writer::~CBC_OnedCode39Writer() = default;
bool CBC_OnedCode39Writer::CheckContentValidity(WideStringView contents) { … }
WideString CBC_OnedCode39Writer::FilterContents(WideStringView contents) { … }
WideString CBC_OnedCode39Writer::RenderTextContents(WideStringView contents) { … }
void CBC_OnedCode39Writer::SetTextLocation(BC_TEXT_LOC location) { … }
bool CBC_OnedCode39Writer::SetWideNarrowRatio(int8_t ratio) { … }
DataVector<uint8_t> CBC_OnedCode39Writer::Encode(const ByteString& contents) { … }
bool CBC_OnedCode39Writer::encodedContents(WideStringView contents,
WideString* result) { … }
bool CBC_OnedCode39Writer::RenderResult(WideStringView contents,
pdfium::span<const uint8_t> code) { … }