15typedef QPair<QVector<bool>, quint32>
17typedef QVector<bool> Codeword;
28 static CompressionTable loadCompressionTable();
29 static CompressionTable loadCompressionTable(QTextStream &stream);
31 static Codeword
codeword(quint32 index,
bool separate, quint32 bytesize,
32 quint32 s, quint32 c);
34 static QString
decompress(Codeword
const &bits);
36 static bool exists(QString w, quint32 *pIndex);
37 static quint32
lookup(QString w,
bool *ok);
38 static quint32
lookup(
char const *b,
bool *ok);
40 static const quint32 size = 262144;
41 static const Tuple map[262144];
42 static const Tuple list[262144];
44 static const quint32 prefixSize = 103;
45 static const Tuple prefix[103];
static Codeword codeword(quint32 index, bool separate, quint32 bytesize, quint32 s, quint32 c)
Generates a codeword for the given index and parameters.
Definition JSC.cpp:43
static quint32 lookup(QString w, bool *ok)
Looks up the index of the given word in the compression map.
Definition JSC.cpp:226
static bool exists(QString w, quint32 *pIndex)
Checks if the given word exists in the compression map.
Definition JSC.cpp:211
static QList< CodewordPair > compress(QString text)
Compresses the given text into a list of codeword pairs.
Definition JSC.cpp:71
static QString decompress(Codeword const &bits)
Decompresses the given bit vector into a string.
Definition JSC.cpp:127
Definition qpriorityqueue.h:39