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_HighLevelEncoder.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_HIGHLEVELENCODER_H_
8
#
define
FXBARCODE_DATAMATRIX_BC_HIGHLEVELENCODER_H_
9
10
#
include
"core/fxcrt/widestring.h"
11
12
class
CBC_HighLevelEncoder
{
13
public
:
14
enum
class
Encoding
:
int8_t
{
15
UNKNOWN
= -1,
16
ASCII
= 0,
17
C40
,
18
TEXT
,
19
X12
,
20
EDIFACT
,
21
BASE256
,
22
LAST
=
BASE256
,
23
};
24
25
CBC_HighLevelEncoder
() =
delete
;
26
~
CBC_HighLevelEncoder
() =
delete
;
27
28
// Returns an empty string on failure.
29
static
WideString
EncodeHighLevel
(
const
WideString& msg);
30
31
static
Encoding
LookAheadTest
(
const
WideString& msg,
32
size_t startpos,
33
Encoding
currentMode);
34
static
bool
IsExtendedASCII
(
wchar_t
ch);
35
36
static
const
wchar_t
LATCH_TO_C40
= 230;
37
static
const
wchar_t
LATCH_TO_BASE256
= 231;
38
static
const
wchar_t
UPPER_SHIFT
= 235;
39
static
const
wchar_t
LATCH_TO_ANSIX12
= 238;
40
static
const
wchar_t
LATCH_TO_TEXT
= 239;
41
static
const
wchar_t
LATCH_TO_EDIFACT
= 240;
42
static
const
wchar_t
C40_UNLATCH
= 254;
43
static
const
wchar_t
X12_UNLATCH
= 254;
44
};
45
46
#
endif
// FXBARCODE_DATAMATRIX_BC_HIGHLEVELENCODER_H_
CBC_ASCIIEncoder::Encode
bool Encode(CBC_EncoderContext *context) override
Definition
BC_ASCIIEncoder.cpp:67
CBC_ASCIIEncoder::~CBC_ASCIIEncoder
~CBC_ASCIIEncoder() override
CBC_ASCIIEncoder::GetEncodingMode
CBC_HighLevelEncoder::Encoding GetEncodingMode() override
Definition
BC_ASCIIEncoder.cpp:63
CBC_ASCIIEncoder::CBC_ASCIIEncoder
CBC_ASCIIEncoder()
CBC_EncoderContext
Definition
BC_EncoderContext.h:16
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::SignalEncoderChange
void SignalEncoderChange(CBC_HighLevelEncoder::Encoding encoding)
Definition
BC_EncoderContext.cpp:72
CBC_Encoder
Definition
BC_Encoder.h:14
CBC_Encoder::Encode
virtual bool Encode(CBC_EncoderContext *context)=0
CBC_Encoder::GetEncodingMode
virtual CBC_HighLevelEncoder::Encoding GetEncodingMode()=0
CBC_Encoder::~CBC_Encoder
virtual ~CBC_Encoder()
CBC_Encoder::CBC_Encoder
CBC_Encoder()
CBC_HighLevelEncoder
Definition
BC_HighLevelEncoder.h:12
CBC_HighLevelEncoder::LATCH_TO_TEXT
static const wchar_t LATCH_TO_TEXT
Definition
BC_HighLevelEncoder.h:40
CBC_HighLevelEncoder::LATCH_TO_ANSIX12
static const wchar_t LATCH_TO_ANSIX12
Definition
BC_HighLevelEncoder.h:39
CBC_HighLevelEncoder::LATCH_TO_BASE256
static const wchar_t LATCH_TO_BASE256
Definition
BC_HighLevelEncoder.h:37
CBC_HighLevelEncoder::IsExtendedASCII
static bool IsExtendedASCII(wchar_t ch)
Definition
BC_HighLevelEncoder.cpp:328
CBC_HighLevelEncoder::C40_UNLATCH
static const wchar_t C40_UNLATCH
Definition
BC_HighLevelEncoder.h:42
CBC_HighLevelEncoder::EncodeHighLevel
static WideString EncodeHighLevel(const WideString &msg)
Definition
BC_HighLevelEncoder.cpp:122
CBC_HighLevelEncoder::LATCH_TO_C40
static const wchar_t LATCH_TO_C40
Definition
BC_HighLevelEncoder.h:36
CBC_HighLevelEncoder::UPPER_SHIFT
static const wchar_t UPPER_SHIFT
Definition
BC_HighLevelEncoder.h:38
CBC_HighLevelEncoder::CBC_HighLevelEncoder
CBC_HighLevelEncoder()=delete
CBC_HighLevelEncoder::Encoding
Encoding
Definition
BC_HighLevelEncoder.h:14
CBC_HighLevelEncoder::Encoding::BASE256
@ BASE256
CBC_HighLevelEncoder::Encoding::TEXT
@ TEXT
CBC_HighLevelEncoder::Encoding::UNKNOWN
@ UNKNOWN
CBC_HighLevelEncoder::Encoding::C40
@ C40
CBC_HighLevelEncoder::Encoding::X12
@ X12
CBC_HighLevelEncoder::Encoding::EDIFACT
@ EDIFACT
CBC_HighLevelEncoder::Encoding::ASCII
@ ASCII
CBC_HighLevelEncoder::Encoding::LAST
@ LAST
CBC_HighLevelEncoder::LATCH_TO_EDIFACT
static const wchar_t LATCH_TO_EDIFACT
Definition
BC_HighLevelEncoder.h:41
CBC_HighLevelEncoder::LookAheadTest
static Encoding LookAheadTest(const WideString &msg, size_t startpos, Encoding currentMode)
Definition
BC_HighLevelEncoder.cpp:185
CBC_HighLevelEncoder::~CBC_HighLevelEncoder
~CBC_HighLevelEncoder()=delete
CBC_HighLevelEncoder::X12_UNLATCH
static const wchar_t X12_UNLATCH
Definition
BC_HighLevelEncoder.h:43
fxcrt::WideString::c_str
const wchar_t * c_str() const
Definition
widestring.h:81
FXSYS_IsDecimalDigit
bool FXSYS_IsDecimalDigit(wchar_t c)
Definition
fx_extension.h:101
qtwebengine
src
3rdparty
chromium
third_party
pdfium
fxbarcode
datamatrix
BC_HighLevelEncoder.h
Generated on Wed Nov 13 2024 01:01:40 for Qt by
1.12.0