Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
BC_C40Encoder.h
Go to the documentation of this file.
1
// Copyright 2014 The PDFium Authors
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7
#
ifndef
FXBARCODE_DATAMATRIX_BC_C40ENCODER_H_
8
#
define
FXBARCODE_DATAMATRIX_BC_C40ENCODER_H_
9
10
#
include
"core/fxcrt/widestring.h"
11
#
include
"fxbarcode/datamatrix/BC_Encoder.h"
12
13
class
CBC_C40Encoder
:
public
CBC_Encoder
{
14
public
:
15
CBC_C40Encoder
();
16
~
CBC_C40Encoder
()
override
;
17
18
// CBC_Encoder
19
CBC_HighLevelEncoder
::
Encoding
GetEncodingMode
()
override
;
20
bool
Encode
(
CBC_EncoderContext
* context)
override
;
21
22
static
void
WriteNextTriplet
(
CBC_EncoderContext
* context, WideString* buffer);
23
24
virtual
bool
HandleEOD
(
CBC_EncoderContext
* context, WideString* buffer);
25
26
// Returns the number of characters appended to |sb|, or 0 on failure.
27
virtual
int32_t
EncodeChar
(
wchar_t
c, WideString* sb);
28
29
private
:
30
// Moves back by 1 position in |context| and adjusts |buffer| accordingly
31
// using |lastCharSize|. Returns the length of the current character in
32
// |context| after adjusting the position. If the character cannot be encoded,
33
// return -1.
34
int32_t BacktrackOneCharacter(
CBC_EncoderContext
* context,
35
WideString* buffer,
36
int32_t lastCharSize);
37
};
38
39
#
endif
// FXBARCODE_DATAMATRIX_BC_C40ENCODER_H_
CBC_C40Encoder
Definition
BC_C40Encoder.h:13
CBC_C40Encoder::WriteNextTriplet
static void WriteNextTriplet(CBC_EncoderContext *context, WideString *buffer)
Definition
BC_C40Encoder.cpp:104
CBC_C40Encoder::EncodeChar
virtual int32_t EncodeChar(wchar_t c, WideString *sb)
Definition
BC_C40Encoder.cpp:146
CBC_C40Encoder::GetEncodingMode
CBC_HighLevelEncoder::Encoding GetEncodingMode() override
Definition
BC_C40Encoder.cpp:54
CBC_C40Encoder::HandleEOD
virtual bool HandleEOD(CBC_EncoderContext *context, WideString *buffer)
Definition
BC_C40Encoder.cpp:110
CBC_C40Encoder::CBC_C40Encoder
CBC_C40Encoder()
CBC_C40Encoder::Encode
bool Encode(CBC_EncoderContext *context) override
Definition
BC_C40Encoder.cpp:58
CBC_C40Encoder::~CBC_C40Encoder
~CBC_C40Encoder() override
CBC_EncoderContext
Definition
BC_EncoderContext.h:16
CBC_EncoderContext::writeCodewords
void writeCodewords(const WideString &codewords)
Definition
BC_EncoderContext.cpp:60
CBC_EncoderContext::writeCodeword
void writeCodeword(wchar_t codeword)
Definition
BC_EncoderContext.cpp:64
CBC_EncoderContext::getCurrentChar
wchar_t getCurrentChar()
Definition
BC_EncoderContext.cpp:53
CBC_EncoderContext::resetSymbolInfo
void resetSymbolInfo()
Definition
BC_EncoderContext.cpp:102
CBC_EncoderContext::UpdateSymbolInfo
bool UpdateSymbolInfo()
Definition
BC_EncoderContext.cpp:89
CBC_EncoderContext::hasMoreCharacters
bool hasMoreCharacters()
Definition
BC_EncoderContext.cpp:81
CBC_EncoderContext::SignalEncoderChange
void SignalEncoderChange(CBC_HighLevelEncoder::Encoding encoding)
Definition
BC_EncoderContext.cpp:72
CBC_Encoder
Definition
BC_Encoder.h:14
CBC_HighLevelEncoder
Definition
BC_HighLevelEncoder.h:12
CBC_HighLevelEncoder::C40_UNLATCH
static const wchar_t C40_UNLATCH
Definition
BC_HighLevelEncoder.h:42
CBC_HighLevelEncoder::Encoding
Encoding
Definition
BC_HighLevelEncoder.h:14
CBC_HighLevelEncoder::Encoding::C40
@ C40
CBC_HighLevelEncoder::Encoding::ASCII
@ ASCII
fxcrt::WideString::operator+=
WideString & operator+=(wchar_t ch)
Definition
widestring.cpp:519
fxcrt::WideString::operator[]
CharType operator[](const size_t index) const
Definition
widestring.h:146
FXSYS_IsDecimalDigit
bool FXSYS_IsDecimalDigit(wchar_t c)
Definition
fx_extension.h:101
FXSYS_IsUpperASCII
bool FXSYS_IsUpperASCII(int32_t c)
Definition
fx_extension.h:51
std
Definition
qfloat16.h:493
qtwebengine
src
3rdparty
chromium
third_party
pdfium
fxbarcode
datamatrix
BC_C40Encoder.h
Generated on Wed Nov 13 2024 01:01:42 for Qt by
1.12.0