Added substitute flag in dictionary compression...for later
This commit is contained in:
parent
16b5193216
commit
3fb66f888c
@ -245,7 +245,7 @@ void TransmitTextEdit::on_textContentsChanged(int /*pos*/, int rem, int add){
|
||||
QString normalized = text.normalized(QString::NormalizationForm_KD);
|
||||
QString result;
|
||||
std::copy_if(normalized.begin(), normalized.end(), std::back_inserter(result), [](QChar& c) {
|
||||
return c.toLatin1() != 0 && (c == 10 || (c > 31 && c < 128));
|
||||
return c.toLatin1() != 0 && (c == 10 || c == 0x1A || (c > 31 && c < 128));
|
||||
});
|
||||
|
||||
if(result != text){
|
||||
|
4
jsc.h
4
jsc.h
@ -40,8 +40,8 @@ public:
|
||||
static const Tuple map[262144];
|
||||
static const Tuple list[262144];
|
||||
|
||||
static const quint32 prefixSize = 70;
|
||||
static const Tuple prefix[70];
|
||||
static const quint32 prefixSize = 71;
|
||||
static const Tuple prefix[71];
|
||||
};
|
||||
|
||||
#endif // JSC_H
|
||||
|
@ -145937,7 +145937,7 @@ const Tuple JSC::list[262144] = {
|
||||
{"JSTR", 4, 190085},
|
||||
{"JSTOR", 5, 75164},
|
||||
{"JSTL", 4, 132651},
|
||||
{"JSQSO", 5, 72},
|
||||
{"\x1A", 1, 72}, // FYI: This used to be JSQSO in JS8 2.0
|
||||
{"JSQCALL", 7, 73},
|
||||
{"JSPWIKI", 7, 154802},
|
||||
{"JSPS", 4, 113215},
|
||||
@ -262167,7 +262167,7 @@ const Tuple JSC::list[262144] = {
|
||||
{"!", 1, 28},
|
||||
};
|
||||
|
||||
const Tuple JSC::prefix[70] = {
|
||||
const Tuple JSC::prefix[71] = {
|
||||
{"!", 1, 262143},
|
||||
{"\"", 1, 262142},
|
||||
{"#", 1, 262141},
|
||||
@ -262211,6 +262211,7 @@ const Tuple JSC::prefix[70] = {
|
||||
{"G", 10672, 168185},
|
||||
{"H", 9060, 159125},
|
||||
{"I", 9503, 149622},
|
||||
{"\x1A", 1, 145916},
|
||||
{"J", 4262, 145360},
|
||||
{"K", 7986, 137374},
|
||||
{"L", 12241, 125133},
|
||||
|
@ -93,8 +93,8 @@ const Tuple JSC::map[262144] = {
|
||||
{"\n", 1, 69}, // FYI: this used to be "\" in JS8 1.0
|
||||
{"JS8", 3, 70},
|
||||
{"JS8CALL", 7, 71},
|
||||
{"JSQSO", 5, 72},
|
||||
{"JSQCALL", 7, 73},
|
||||
{"\x1A", 1, 72}, // FYI: this used to be JSQSO in JS8 1.0, it is now a substitute flag
|
||||
{"JSQCALL", 7, 73},
|
||||
{"JORDAN", 6, 74},
|
||||
{"KN4CRD", 6, 75},
|
||||
{"599", 3, 76},
|
||||
|
Loading…
Reference in New Issue
Block a user