|
JS8Call-Improved master
|
Compression and lookup utilities for the JS8Call wordlist. More...
#include <QList>#include <QMap>#include <QPair>#include <QStringList>#include <QTextStream>#include <QVector>

Go to the source code of this file.
Classes | |
| struct | Tuple |
| Small mapping tuple used in the static lookup arrays. More... | |
| class | JSC |
| Static compressor/lookup helper for JS8Call. More... | |
Typedefs | |
| typedef QPair< QVector< bool >, quint32 > | CodewordPair |
| Tuple containing a codeword bit-vector and an associated integer. | |
| typedef QVector< bool > | Codeword |
| Codeword bit-vector type. | |
| typedef struct Tuple | Tuple |
| Small mapping tuple used in the static lookup arrays. | |
Compression and lookup utilities for the JS8Call wordlist.
The JSC utilities implement static helpers used to compress and decompress strings to and from a compact bit-oriented codeword representation. The header exposes small convenience types and the in-memory lookup tables used by the compressor.
| typedef QVector<bool> Codeword |
| typedef QPair<QVector<bool>, quint32> CodewordPair |
Tuple containing a codeword bit-vector and an associated integer.
Tuple(Codeword, N) where N is the number of characters
This typedef aliases a QPair<Codeword, quint32> and is used to represent a codeword together with an auxiliary integer value such as the character count or an index. The first element is the bit-vector representation and the second is the associated unsigned integer.