66 static CompressionTable loadCompressionTable();
67 static CompressionTable loadCompressionTable(QTextStream &stream);
80 quint32 s, quint32 c);
102 static bool exists(QString w, quint32 *pIndex);
110 static quint32
lookup(QString w,
bool *ok);
118 static quint32
lookup(
char const *b,
bool *ok);
120 static const quint32
size = 262144;
QVector< bool > Codeword
Codeword bit-vector type.
Definition JSC.h:44
QPair< QVector< bool >, quint32 > CodewordPair
Tuple containing a codeword bit-vector and an associated integer.
Definition JSC.h:34
Static compressor/lookup helper for JS8Call.
Definition JSC.h:63
static Codeword codeword(quint32 index, bool separate, quint32 bytesize, quint32 s, quint32 c)
Build a codeword for the given parameters.
Definition JSC.cpp:43
static const Tuple map[262144]
Definition JSC.h:25
static quint32 lookup(QString w, bool *ok)
Lookup a word and return its dictionary index.
Definition JSC.cpp:226
static const quint32 prefixSize
Definition JSC.h:124
static const quint32 size
Definition JSC.h:120
static bool exists(QString w, quint32 *pIndex)
Test whether a word exists in the dictionary.
Definition JSC.cpp:211
static QList< CodewordPair > compress(QString text)
Compress text into a sequence of codewords.
Definition JSC.cpp:71
static const Tuple prefix[103]
Definition JSC.h:262173
static QString decompress(Codeword const &bits)
Decompress a codeword bit-vector into a QString.
Definition JSC.cpp:127
static const Tuple list[262144]
Definition JSC.h:25
Definition qpriorityqueue.h:39
Small mapping tuple used in the static lookup arrays.
Definition JSC.h:49
char const * str
Definition JSC.h:50
int size
Definition JSC.h:51
int index
Definition JSC.h:52