Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <BC_EncoderContext.h>
Public Member Functions | |
CBC_EncoderContext (const WideString &msg) | |
~CBC_EncoderContext () | |
void | setSkipAtEnd (int32_t count) |
wchar_t | getCurrentChar () |
wchar_t | getCurrent () |
void | writeCodewords (const WideString &codewords) |
void | writeCodeword (wchar_t codeword) |
size_t | getCodewordCount () |
void | SignalEncoderChange (CBC_HighLevelEncoder::Encoding encoding) |
void | ResetEncoderSignal () |
bool | hasMoreCharacters () |
size_t | getRemainingCharacters () |
bool | UpdateSymbolInfo () |
bool | UpdateSymbolInfo (size_t len) |
void | resetSymbolInfo () |
bool | HasCharactersOutsideISO88591Encoding () const |
Public Attributes | |
WideString | m_msg |
WideString | m_codewords |
size_t | m_pos = 0 |
CBC_HighLevelEncoder::Encoding | m_newEncoding |
UnownedPtr< const CBC_SymbolInfo > | m_symbolInfo |
Definition at line 16 of file BC_EncoderContext.h.
|
explicit |
Definition at line 32 of file BC_EncoderContext.cpp.
References fxcrt::WideString::operator+=(), and fxcrt::WideString::ToUTF8().
Referenced by CBC_HighLevelEncoder::EncodeHighLevel().
|
default |
size_t CBC_EncoderContext::getCodewordCount | ( | ) |
Definition at line 68 of file BC_EncoderContext.cpp.
wchar_t CBC_EncoderContext::getCurrent | ( | ) |
Definition at line 56 of file BC_EncoderContext.cpp.
wchar_t CBC_EncoderContext::getCurrentChar | ( | ) |
Definition at line 53 of file BC_EncoderContext.cpp.
Referenced by CBC_ASCIIEncoder::Encode(), CBC_Base256Encoder::Encode(), CBC_C40Encoder::Encode(), CBC_EdifactEncoder::Encode(), and CBC_X12Encoder::Encode().
size_t CBC_EncoderContext::getRemainingCharacters | ( | ) |
Definition at line 85 of file BC_EncoderContext.cpp.
|
inline |
Definition at line 35 of file BC_EncoderContext.h.
Referenced by CBC_HighLevelEncoder::EncodeHighLevel().
bool CBC_EncoderContext::hasMoreCharacters | ( | ) |
Definition at line 81 of file BC_EncoderContext.cpp.
Referenced by CBC_Base256Encoder::Encode(), CBC_C40Encoder::Encode(), CBC_EdifactEncoder::Encode(), CBC_X12Encoder::Encode(), CBC_HighLevelEncoder::EncodeHighLevel(), and CBC_C40Encoder::HandleEOD().
void CBC_EncoderContext::ResetEncoderSignal | ( | ) |
Definition at line 77 of file BC_EncoderContext.cpp.
References m_newEncoding, and CBC_HighLevelEncoder::UNKNOWN.
Referenced by CBC_HighLevelEncoder::EncodeHighLevel().
void CBC_EncoderContext::resetSymbolInfo | ( | ) |
Definition at line 102 of file BC_EncoderContext.cpp.
void CBC_EncoderContext::setSkipAtEnd | ( | int32_t | count | ) |
Definition at line 50 of file BC_EncoderContext.cpp.
Referenced by CBC_HighLevelEncoder::EncodeHighLevel().
void CBC_EncoderContext::SignalEncoderChange | ( | CBC_HighLevelEncoder::Encoding | encoding | ) |
Definition at line 72 of file BC_EncoderContext.cpp.
References m_newEncoding.
Referenced by CBC_ASCIIEncoder::Encode(), CBC_Base256Encoder::Encode(), CBC_C40Encoder::Encode(), CBC_EdifactEncoder::Encode(), CBC_X12Encoder::Encode(), CBC_C40Encoder::HandleEOD(), and CBC_X12Encoder::HandleEOD().
bool CBC_EncoderContext::UpdateSymbolInfo | ( | ) |
Definition at line 89 of file BC_EncoderContext.cpp.
Referenced by CBC_Base256Encoder::Encode(), CBC_C40Encoder::Encode(), CBC_HighLevelEncoder::EncodeHighLevel(), CBC_C40Encoder::HandleEOD(), and CBC_X12Encoder::HandleEOD().
bool CBC_EncoderContext::UpdateSymbolInfo | ( | size_t | len | ) |
Definition at line 93 of file BC_EncoderContext.cpp.
void CBC_EncoderContext::writeCodeword | ( | wchar_t | codeword | ) |
Definition at line 64 of file BC_EncoderContext.cpp.
Referenced by CBC_ASCIIEncoder::Encode(), CBC_Base256Encoder::Encode(), CBC_HighLevelEncoder::EncodeHighLevel(), CBC_C40Encoder::HandleEOD(), and CBC_X12Encoder::HandleEOD().
void CBC_EncoderContext::writeCodewords | ( | const WideString & | codewords | ) |
Definition at line 60 of file BC_EncoderContext.cpp.
Referenced by CBC_EdifactEncoder::Encode(), and CBC_C40Encoder::WriteNextTriplet().
WideString CBC_EncoderContext::m_codewords |
Definition at line 40 of file BC_EncoderContext.h.
WideString CBC_EncoderContext::m_msg |
Definition at line 39 of file BC_EncoderContext.h.
CBC_HighLevelEncoder::Encoding CBC_EncoderContext::m_newEncoding |
Definition at line 42 of file BC_EncoderContext.h.
Referenced by CBC_HighLevelEncoder::EncodeHighLevel(), ResetEncoderSignal(), and SignalEncoderChange().
size_t CBC_EncoderContext::m_pos = 0 |
Definition at line 41 of file BC_EncoderContext.h.
UnownedPtr<const CBC_SymbolInfo> CBC_EncoderContext::m_symbolInfo |
Definition at line 44 of file BC_EncoderContext.h.