#include "fxbarcode/datamatrix/BC_C40Encoder.h"
#include <iterator>
#include "core/fxcrt/check.h"
#include "core/fxcrt/compiler_specific.h"
#include "core/fxcrt/fx_extension.h"
#include "fxbarcode/datamatrix/BC_Encoder.h"
#include "fxbarcode/datamatrix/BC_EncoderContext.h"
#include "fxbarcode/datamatrix/BC_HighLevelEncoder.h"
#include "fxbarcode/datamatrix/BC_SymbolInfo.h"
namespace {
WideString EncodeToC40Codewords(const WideString& sb) { … }
}
CBC_C40Encoder::CBC_C40Encoder() = default;
CBC_C40Encoder::~CBC_C40Encoder() = default;
CBC_HighLevelEncoder::Encoding CBC_C40Encoder::GetEncodingMode() { … }
bool CBC_C40Encoder::Encode(CBC_EncoderContext* context) { … }
void CBC_C40Encoder::WriteNextTriplet(CBC_EncoderContext* context,
WideString* buffer) { … }
bool CBC_C40Encoder::HandleEOD(CBC_EncoderContext* context,
WideString* buffer) { … }
int32_t CBC_C40Encoder::EncodeChar(wchar_t c, WideString* sb) { … }
int32_t CBC_C40Encoder::BacktrackOneCharacter(CBC_EncoderContext* context,
WideString* buffer,
int32_t lastCharSize) { … }