Compare commits
1 Commits
main
...
agent/w092
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
00c42dac3d |
@@ -168,7 +168,7 @@ typedef struct _ziGetParam {
|
||||
ziU8 letters; // 0x21
|
||||
ziU8 completion; // 0x22 (EZTXGetParam.completion)
|
||||
ziU8* scratch; // 0x24
|
||||
ziU32 unk_0x28; // 0x28
|
||||
ziU32 reserved; // 0x28
|
||||
} ziGetParam;
|
||||
|
||||
typedef struct _ziLanguageEntry {
|
||||
@@ -180,7 +180,7 @@ typedef struct _zi8DawgRec {
|
||||
ziU8* node;
|
||||
ziU32 attr;
|
||||
ziU16 key;
|
||||
ziU8 unk_0x0A[2];
|
||||
ziU8 reserved[2];
|
||||
ziU8* back;
|
||||
} zi8DawgRec;
|
||||
|
||||
@@ -189,11 +189,11 @@ typedef struct _zi8DawgCtx {
|
||||
ziU8 key; // 0x01
|
||||
ziU16 cnt; // 0x02
|
||||
ziU16 cap; // 0x04
|
||||
ziU8 unk_0x06[2];
|
||||
ziU8* p08; // 0x08
|
||||
ziU8* p0C; // 0x0C
|
||||
ziU8 reserved[2];
|
||||
ziU8* characters; // 0x08
|
||||
ziU8* characterFlags; // 0x0C
|
||||
ziU8* table; // 0x10
|
||||
ziU8* p14; // 0x14
|
||||
ziU8* keyCodes; // 0x14
|
||||
zi8DawgRec recs[0x32]; // 0x18
|
||||
ziU32 endNode; // 0x338
|
||||
} zi8DawgCtx;
|
||||
@@ -206,116 +206,116 @@ typedef struct _ziUwdNode {
|
||||
struct __zi8_work_data_s {
|
||||
ziU8 getcPhase; // 0x00
|
||||
ziU8 countOnly; // 0x01
|
||||
ziU8 unk_0x02[2];
|
||||
ziU8 reservedAlignment[2];
|
||||
ziLanguageEntry* langEntries; // 0x04
|
||||
ziU8 unk_0x08;
|
||||
ziU8 unk_0x09;
|
||||
ziU8 initializationState;
|
||||
ziU8 dictionaryFlags;
|
||||
ziU8 maxWordLength;
|
||||
ziU8 unk_0x0B;
|
||||
ziU8 reservedSettings;
|
||||
ziU32 targetCount; // 0x0C
|
||||
ziU32 unk_0x10;
|
||||
ziU16 unk_0x14;
|
||||
ziU32 maxCandidateCount;
|
||||
ziU16 errorCode;
|
||||
ziU8 cangjieEnabled; // 0x16
|
||||
ziU8 zhPudMinPrefix;
|
||||
ziU8 subLanguage; // 0x18
|
||||
ziU8 unk_0x19;
|
||||
ziU8 reservedSubLanguage;
|
||||
ziU16 separator; // 0x1A
|
||||
ziU8 unk_0x1C[3];
|
||||
ziU8 searchModes[3];
|
||||
ziU8 ignoreCase;
|
||||
ziU16 unk_0x20[0x40];
|
||||
ziU16 unk_0xA0[0x42];
|
||||
ziU16* unk_0x124[1];
|
||||
ziU8* unk_0x128;
|
||||
ziU16 duplicateCharacters[0x40];
|
||||
ziU16 duplicateOrdinalCache[0x42];
|
||||
ziU16* zhUwdPointers[1];
|
||||
ziU8* reservedUwdPointer;
|
||||
ziU8 uwdPtrCount; // 0x12C
|
||||
ziU8 unk_0x12D;
|
||||
ziU8 zhPudCount;
|
||||
ziU8 uwdPrioritySort; // 0x12E
|
||||
ziU8 unk_0x12F;
|
||||
ziU8 reservedUwdState;
|
||||
ziPtr uwdDicts[2]; // 0x130
|
||||
ziU8 uwdDictCount; // 0x138
|
||||
ziU8 unk_0x139[3];
|
||||
ziU32 unk_0x13C;
|
||||
ziU8 unk_0x140;
|
||||
ziU8 unk_0x141[0x43];
|
||||
ziU8 unk_0x184[0x43];
|
||||
ziU8 reservedUwdAlignment[3];
|
||||
ziU32 uwdSkipCount;
|
||||
ziU8 uwdContextEnabled;
|
||||
ziU8 uwdContextRecord[0x43];
|
||||
ziU8 uwdContextAlternateCase[0x43];
|
||||
ziU8 uwdCount; // 0x1C7
|
||||
ziUwdNode uwdNodes[0x20]; // 0x1C8
|
||||
ziUwdNode* uwdList; // 0x2C8
|
||||
ziU32 pudTable[0x10]; // 0x2CC
|
||||
ziU8 pudCount; // 0x30C
|
||||
ziU8 unk_0x30D[3];
|
||||
ziU32 unk_0x310;
|
||||
ziU32 unk_0x314;
|
||||
ziU32 unk_0x318;
|
||||
ziU8 reservedPudAlignment[3];
|
||||
ziU32 pudWordAddress;
|
||||
ziU32 pudWordCount;
|
||||
ziU32 pudWordIndex;
|
||||
ziU8 pdRemoveOpt; // 0x31C
|
||||
ziU8 unk_0x31D;
|
||||
ziU8 unk_0x31E;
|
||||
ziU8 unk_0x31F;
|
||||
ziU8 reservedPudState;
|
||||
ziU8 pudStopAtSpace;
|
||||
ziU8 reservedOemAlignment;
|
||||
ziU8 (*oemMatch)(ziU16 idx, ziWChar* buf, ziU8 len, ziPtr data); //0x320
|
||||
ziU16 oemLen; //0x324
|
||||
ziU8 unk_0x326[2];
|
||||
ziU8 reservedOemLengthAlignment[2];
|
||||
ziU32 oemIdx; //0x328
|
||||
ziPtr oemData; //0x32C
|
||||
ziU8 unk_0x330[8];
|
||||
ziU32 unk_0x338;
|
||||
ziU8 unk_0x33C[0x1FC];
|
||||
ziU8 reservedOemState[8];
|
||||
ziU32 candidateBufferHead;
|
||||
ziU8 candidateBufferTail[0x1FC];
|
||||
ziU8 language; // 0x538
|
||||
ziU8 unk_0x539;
|
||||
ziU8 unk_0x53A[0x40];
|
||||
ziWChar unk_0x57A[0x641];
|
||||
ziPtr unk_0x11FC;
|
||||
ziU8 duplicateCount;
|
||||
ziU8 duplicateWordOrder[0x40];
|
||||
ziWChar duplicateBuffer[0x641];
|
||||
ziPtr customKeyMap;
|
||||
ziPtr userKeys[0x83]; // 0x1200
|
||||
ziU8 unk_0x140C[4];
|
||||
ziU8 wordLengthSettings[4];
|
||||
ziU32 formats; // 0x1410
|
||||
ziU8 unk_0x1414[4];
|
||||
ziU8 dictionaryCountStorage[4];
|
||||
ziU8 formatCount;
|
||||
ziU8 unk_0x1419;
|
||||
ziU8 reservedFormatAlignment;
|
||||
ziU16 capacity; // 0x141A
|
||||
ziU8 forceAltGraph; // 0x141C (lang FI + group 0xC -> graphTableId 0x10)
|
||||
ziU8 advanceGroup; // 0x141D (nonzero: skip first dawg group)
|
||||
ziU8 graphTableId; // 0x141E
|
||||
ziU8 maxCnt; // 0x141F
|
||||
ziU8 unk_0x1420[4];
|
||||
ziU8 reservedDawgAlignment[4];
|
||||
zi8DawgCtx dawgCtx; // 0x1424
|
||||
ziU8 unk_0x1760[4]; // 0x1760
|
||||
ziU8 dawgSearchState[4]; // 0x1760
|
||||
ziU8* groupPtr; // 0x1764
|
||||
ziU8 unk_0x1768;
|
||||
ziU8 unk_0x1769[0x81];
|
||||
ziU8 dawgGroupIndex;
|
||||
ziU8 reservedDawgStorage[0x81];
|
||||
ziU16 matchOffset; // 0x17EA
|
||||
ziU8 unk_0x17EC;
|
||||
ziU8 unk_0x17ED[3];
|
||||
ziU8 dawgFallbackUsed;
|
||||
ziU8 reservedDawgGroupAlignment[3];
|
||||
ziU8* dawgGroup; // 0x17F0
|
||||
ziWChar unk_0x17F4[0x40]; // 0x17F4..0x1874
|
||||
ziU16 unk_0x1874;
|
||||
ziU8 unk_0x1876;
|
||||
ziU8 unk_0x1877;
|
||||
ziU8 unk_0x1878;
|
||||
ziU8 unk_0x1879;
|
||||
ziWChar unk_0x187A[0x41];
|
||||
ziU8 unk_0x18FC;
|
||||
ziU8 unk_0x18FD;
|
||||
ziWChar unk_0x18FE[0x41];
|
||||
ziU8 unk_0x1980;
|
||||
ziU8 unk_0x1981;
|
||||
ziU8 unk_0x1982;
|
||||
ziU8 unk_0x1983;
|
||||
ziU8 unk_0x1984;
|
||||
ziU8 unk_0x1985;
|
||||
ziU8 unk_0x1986;
|
||||
ziU8 unk_0x1987;
|
||||
ziWChar unk_0x1988[0x41];
|
||||
ziU8 unk_0x1A0A;
|
||||
ziU8 unk_0x1A0B[0x85];
|
||||
ziWChar unk_0x1A90;
|
||||
ziWChar unk_0x1A92[0x41];
|
||||
ziU8 unk_0x1B14;
|
||||
ziU8 unk_0x1B15[3];
|
||||
ziWChar dawgWord[0x40]; // 0x17F4..0x1874
|
||||
ziU16 letterHyphen;
|
||||
ziU8 prefixLength;
|
||||
ziU8 prefixEnabled;
|
||||
ziU8 requiredLength;
|
||||
ziU8 highlightedLanguage;
|
||||
ziWChar highlightedWord[0x41];
|
||||
ziU8 suffixMode;
|
||||
ziU8 suffixState;
|
||||
ziWChar prefix[0x41];
|
||||
ziU8 prefixCount;
|
||||
ziU8 previousPrefixCount;
|
||||
ziU8 prefixElementCount;
|
||||
ziU8 wordLanguage;
|
||||
ziU8 suffixLocked;
|
||||
ziU8 previousSuffixCount;
|
||||
ziU8 suffixElementCount;
|
||||
ziU8 suffixStatus;
|
||||
ziWChar suffix[0x41];
|
||||
ziU8 suffixCount;
|
||||
ziU8 alternatePrefixState[0x85];
|
||||
ziWChar singleCharacter;
|
||||
ziWChar rememberedWord[0x41];
|
||||
ziU8 rememberedCount;
|
||||
ziU8 wordSearchState[3];
|
||||
ziU16* unicodeMap; // 0x1B18
|
||||
ziU16 unicodeRange1Min; // 0x1B1C
|
||||
ziU16 unicodeRange1Max; // 0x1B1E
|
||||
ziU16 unicodeRange2Min; // 0x1B20
|
||||
ziU16 unicodeRange2Max; // 0x1B22
|
||||
ziU8 unicodeMapSubLang; // 0x1B24
|
||||
ziU8 unk_0x1B25[3];
|
||||
ziU8 reservedUnicodeAlignment[3];
|
||||
union {
|
||||
ziU32 word;
|
||||
struct {
|
||||
@@ -327,31 +327,31 @@ struct __zi8_work_data_s {
|
||||
struct {
|
||||
ziU32 msb : 1;
|
||||
} bits;
|
||||
} unk_0x1B2C;
|
||||
} zyFuzzy;
|
||||
ziU8 koAltTables; // 0x1B30
|
||||
ziU8 unk_0x1B31;
|
||||
ziU16 unk_0x1B32;
|
||||
ziU16 unk_0x1B34;
|
||||
ziU16 unk_0x1B36;
|
||||
ziU16 unk_0x1B38;
|
||||
ziU8 unk_0x1B3A;
|
||||
ziU8 unk_0x1B3B;
|
||||
ziU8 unk_0x1B3C;
|
||||
ziU8 unk_0x1B3D;
|
||||
ziU8 unk_0x1B3E;
|
||||
ziU8 unk_0x1B3F;
|
||||
ziU16 unk_0x1B40;
|
||||
ziU8 unk_0x1B42[2];
|
||||
ziU8 reservedKoreanAlignment;
|
||||
ziU16 candidateStateWordA;
|
||||
ziU16 candidateStateWordB;
|
||||
ziU16 candidateStateWordC;
|
||||
ziU16 initializationWordA;
|
||||
ziU8 candidateStateByteA;
|
||||
ziU8 candidateStateByteB;
|
||||
ziU8 candidateStateByteC;
|
||||
ziU8 candidateStateByteD;
|
||||
ziU8 reservedCandidateStateA;
|
||||
ziU8 reservedCandidateStateB;
|
||||
ziU16 initializationWordB;
|
||||
ziU8 reservedTail[2];
|
||||
};
|
||||
|
||||
typedef struct ziMatchParam {
|
||||
ziU8 count; // 0x00
|
||||
ziU8 arr1[0xC]; // 0x01
|
||||
ziU8 arrD[0xC]; // 0x0D
|
||||
ziU8 arr19[4]; // 0x19
|
||||
ziU8 arr1D[4]; // 0x1D
|
||||
ziU8 recordMasks[0xC]; // 0x01
|
||||
ziU8 recordValues[0xC]; // 0x0D
|
||||
ziU8 prefixMasks[4]; // 0x19
|
||||
ziU8 prefixValues[4]; // 0x1D
|
||||
ziU8 pad_0x21; // 0x21
|
||||
ziU16 field22; // 0x22
|
||||
ziU16 componentIndex; // 0x22
|
||||
ziU8 length; // 0x24
|
||||
ziU8 nCand; // 0x25
|
||||
ziWChar phon[0x10]; // 0x26
|
||||
@@ -360,8 +360,8 @@ typedef struct ziMatchParam {
|
||||
ziWChar first2; // 0x68
|
||||
ziWChar comp; // 0x6A
|
||||
ziU8 nSeg; // 0x6C
|
||||
ziU8 segs1[16][12]; // 0x6D
|
||||
ziU8 segsD[16][12]; // 0x12D
|
||||
ziU8 segmentMasks[16][12]; // 0x6D
|
||||
ziU8 segmentValues[16][12]; // 0x12D
|
||||
ziU8 pad_0x1ED; // 0x1ED
|
||||
} ziMatchParam;
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ typedef unsigned int Zi8UInt;
|
||||
|
||||
typedef struct {
|
||||
ziU8 keys[4];
|
||||
ziU8 unknown_04[4];
|
||||
ziU8 recordData[4];
|
||||
ziU8 phoneticIndexLow;
|
||||
ziU8 flags;
|
||||
ziU16 phraseOffset;
|
||||
@@ -18,27 +18,27 @@ typedef struct { ziU8 keyLow; ziU8 keyHigh; ziU8 code; ziU8 flags; } Zi8AltSound
|
||||
typedef struct {
|
||||
ziU8 countOnly;
|
||||
ziU8 maxSpellingLength;
|
||||
ziU8 unknown_02[10];
|
||||
ziU8 dictionaryOptions[10];
|
||||
ziS32 maxCount;
|
||||
ziU16 candidateBufferSize;
|
||||
} Zi8OneKeyOptions;
|
||||
|
||||
typedef struct {
|
||||
ziU8 unknown_00[0x16];
|
||||
ziU8 engineSettings[0x16];
|
||||
ziU8 phraseEnabled;
|
||||
ziU8 unknown_17[6];
|
||||
ziU8 inputSettings[6];
|
||||
ziU8 spellingSearch;
|
||||
ziU8 unknown_1e;
|
||||
ziU8 caseMode;
|
||||
ziU8 searchFlags;
|
||||
ziU8 unknown_20[0xfda];
|
||||
ziU8 candidateWorkspace[0xfda];
|
||||
ziU8 phoneticEnabled[512];
|
||||
ziU8 phoneticFilter;
|
||||
ziU8 unknown_11fb[0x211];
|
||||
ziU8 keyTableStorage[0x211];
|
||||
ziU8 maxWordLength;
|
||||
ziU8* searchOrder;
|
||||
ziU8 unknown_1414[4];
|
||||
ziU8 dictionaryCountStorage[4];
|
||||
ziU8 searchOrderCount;
|
||||
ziU8 unknown_1419[0x6fd];
|
||||
ziU8 wordSearchWorkspace[0x6fd];
|
||||
ziU8 spellingOnly;
|
||||
} Zi8OneKeyWork;
|
||||
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
#include <zi8clib/zierror.h>
|
||||
#include <zi8clib/zitypes.h>
|
||||
|
||||
ziU32 Zi8GetZHuwdPtr(ziU32* arg0, ziU16* arg1 ZI_NEED_WORK) {
|
||||
ziU32 Zi8GetZHuwdPtr(ziU32* entriesAddress, ziU16* entryCount ZI_NEED_WORK) {
|
||||
if (ZI_WORK->uwdPtrCount == 0) {
|
||||
*arg0 = 0;
|
||||
*arg1 = 0;
|
||||
*entriesAddress = 0;
|
||||
*entryCount = 0;
|
||||
Zi8LogError(0x1A5, ZI_WORK);
|
||||
return 0;
|
||||
} else {
|
||||
*arg1 = ZI_WORK->unk_0x124[ZI_WORK->uwdPtrCount - 1][1] / 3;
|
||||
*arg0 = (ziU32)ZI_WORK->unk_0x124[ZI_WORK->uwdPtrCount - 1];
|
||||
*arg0 += 8;
|
||||
*entryCount = ZI_WORK->zhUwdPointers[ZI_WORK->uwdPtrCount - 1][1] / 3;
|
||||
*entriesAddress = (ziU32)ZI_WORK->zhUwdPointers[ZI_WORK->uwdPtrCount - 1];
|
||||
*entriesAddress += 8;
|
||||
Zi8LogError(0x64, ZI_WORK);
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -170,9 +170,9 @@ extern ziU16 Zi8GetPCode(ziU8* table, ziU8* record);
|
||||
extern ziU16 Zi8MatchAltSound(ziPtr table, ziU16 count, ziPtr phonetics,
|
||||
ziU16 ordinal, ziU16 mask, ziU16 value, ziU8 flags, ziPtr work);
|
||||
extern ziU32 Zi8SecMatchChar(ziPtr record, ziU8* dictionary, ziMatchParam* match, ziU16* code, ziPtr work);
|
||||
extern ziBool Zi8PriMatchNextChar(ziU8* record, ziU8 mask0, ziU8 value0, ziU8 mask1, ziU8 value1, ziU8 mask2, ziU8 value2, ziU8 mask3, ziU8 value3, ziU16* count, ziU8** result, ziU16* code, ziPtr work);
|
||||
extern ziBool Zi8ExactMatchNextChar(ziU8* record, ziU8 mask0, ziU8 value0, ziU8 mask1, ziU8 value1, ziU8 mask2, ziU8 value2, ziU8 mask3, ziU8 value3, ziU16* count, ziU8** result, ziU16* code, ziPtr work);
|
||||
extern ziBool Zi8PriMatchNextComp(ziU8* component, ziU8 mask0, ziU8 value0, ziU8 mask1, ziU8 value1, ziU8 mask2, ziU8 value2, ziU8 mask3, ziU8 value3, ziU16* count, ziU8** result, ziPtr work);
|
||||
extern ziBool Zi8PriMatchNextChar(ziU8* record, ziU8 firstByteMask, ziU8 firstByteValue, ziU8 secondByteMask, ziU8 secondByteValue, ziU8 thirdByteMask, ziU8 thirdByteValue, ziU8 fourthByteMask, ziU8 fourthByteValue, ziU16* count, ziU8** result, ziU16* code, ziPtr work);
|
||||
extern ziBool Zi8ExactMatchNextChar(ziU8* record, ziU8 firstByteMask, ziU8 firstByteValue, ziU8 secondByteMask, ziU8 secondByteValue, ziU8 thirdByteMask, ziU8 thirdByteValue, ziU8 fourthByteMask, ziU8 fourthByteValue, ziU16* count, ziU8** result, ziU16* code, ziPtr work);
|
||||
extern ziBool Zi8PriMatchNextComp(ziU8* component, ziU8 firstByteMask, ziU8 firstByteValue, ziU8 secondByteMask, ziU8 secondByteValue, ziU8 thirdByteMask, ziU8 thirdByteValue, ziU8 fourthByteMask, ziU8 fourthByteValue, ziU16* count, ziU8** result, ziPtr work);
|
||||
extern ziBool Zi8SecMatchComp(ziPtr component, ziMatchParam* match, ziPtr dictionary, ziPtr work);
|
||||
extern void Zi8InitDupWordBuf(ziPtr work);
|
||||
extern ziU8 Zi8MatchPUDdata_ZHS(ziWChar* word, ziU8 length, ziU8 language, ziWChar* spelling, ziU16 spellingCapacity, ziWChar* candidate, ziU16 candidateCapacity, ziU8 mode, ziU8 next, ziPtr work);
|
||||
@@ -451,68 +451,68 @@ static int zi8InternalGetZH(ziGetParam* request, ZiChineseOptions* options, ziPt
|
||||
} else {
|
||||
if (getMode == 10) getMode = 9;
|
||||
for (index = 0; index < 6; ++index) {
|
||||
match.arr1[index] = match.arrD[index] = 0;
|
||||
match.recordMasks[index] = match.recordValues[index] = 0;
|
||||
}
|
||||
if (elements[0] >= 'A' && elements[0] <= 'Y') {
|
||||
match.arr1[0] = 31;
|
||||
match.arrD[0] = zi8CangjieCodes[elements[0] - 'A'];
|
||||
match.recordMasks[0] = 31;
|
||||
match.recordValues[0] = zi8CangjieCodes[elements[0] - 'A'];
|
||||
} else if (elements[0] >= 0xEFF2 && elements[0] <= 0xEFF9) {
|
||||
match.arr1[0] = 28;
|
||||
match.arrD[0] = (elements[0] - 0xEFF2) << 2;
|
||||
match.recordMasks[0] = 28;
|
||||
match.recordValues[0] = (elements[0] - 0xEFF2) << 2;
|
||||
}
|
||||
if (request->elementCount > 1 && elements[1] != ' ') {
|
||||
if (elements[1] >= 'A' && elements[1] <= 'Y') {
|
||||
match.arr1[1] = 31;
|
||||
match.arrD[1] = zi8CangjieCodes[elements[1] - 'A'];
|
||||
match.recordMasks[1] = 31;
|
||||
match.recordValues[1] = zi8CangjieCodes[elements[1] - 'A'];
|
||||
} else if (elements[1] >= 0xEFF2 && elements[1] <= 0xEFF9) {
|
||||
match.arr1[1] = 28;
|
||||
match.arrD[1] = (elements[1] - 0xEFF2) << 2;
|
||||
match.recordMasks[1] = 28;
|
||||
match.recordValues[1] = (elements[1] - 0xEFF2) << 2;
|
||||
}
|
||||
phraseMasks[1].bytes[0] = phraseValues[1].bytes[0] = 0xFF;
|
||||
totalResults = (match.arr1[0] << 3) | (match.arr1[1] << 8) | 7;
|
||||
totalResults = (match.recordMasks[0] << 3) | (match.recordMasks[1] << 8) | 7;
|
||||
phraseMasks[2].bytes[0] = totalResults;
|
||||
phraseMasks[2].bytes[1] = (totalResults >> 8) & 0xff;
|
||||
totalResults = (match.arrD[0] << 3) | (match.arrD[1] << 8) | 2;
|
||||
totalResults = (match.recordValues[0] << 3) | (match.recordValues[1] << 8) | 2;
|
||||
phraseValues[2].bytes[0] = totalResults;
|
||||
phraseValues[2].bytes[1] = (totalResults >> 8) & 0xff;
|
||||
totalResults = (match.arr1[0] << 3) | (match.arr1[1] << 13) | 7;
|
||||
totalResults = (match.recordMasks[0] << 3) | (match.recordMasks[1] << 13) | 7;
|
||||
phraseMasks[3].bytes[0] = totalResults;
|
||||
phraseMasks[3].bytes[1] = (totalResults >> 8) & 0xff;
|
||||
phraseMasks[3].bytes[2] = (totalResults >> 16) & 0xff;
|
||||
totalResults = (match.arrD[0] << 3) | (match.arrD[1] << 13) | 3;
|
||||
totalResults = (match.recordValues[0] << 3) | (match.recordValues[1] << 13) | 3;
|
||||
phraseValues[3].bytes[0] = totalResults;
|
||||
phraseValues[3].bytes[1] = (totalResults >> 8) & 0xff;
|
||||
phraseValues[3].bytes[2] = (totalResults >> 16) & 0xff;
|
||||
totalResults = (match.arr1[0] << 3) | (match.arr1[1] << 18) | 7;
|
||||
totalResults = (match.recordMasks[0] << 3) | (match.recordMasks[1] << 18) | 7;
|
||||
phraseMasks[4].bytes[0] = totalResults;
|
||||
phraseMasks[4].bytes[1] = (totalResults >> 8) & 0xff;
|
||||
phraseMasks[4].bytes[2] = (totalResults >> 16) & 0xff;
|
||||
phraseMasks[4].bytes[3] = (Zi8UInt)totalResults >> 24;
|
||||
totalResults = (match.arrD[0] << 3) | (match.arrD[1] << 18) | 4;
|
||||
totalResults = (match.recordValues[0] << 3) | (match.recordValues[1] << 18) | 4;
|
||||
phraseValues[4].bytes[0] = totalResults;
|
||||
phraseValues[4].bytes[1] = (totalResults >> 8) & 0xff;
|
||||
phraseValues[4].bytes[2] = (totalResults >> 16) & 0xff;
|
||||
phraseValues[4].bytes[3] = (Zi8UInt)totalResults >> 24;
|
||||
totalResults = (match.arr1[0] << 3) | (match.arr1[1] << 23) | 7;
|
||||
totalResults = (match.recordMasks[0] << 3) | (match.recordMasks[1] << 23) | 7;
|
||||
phraseMasks[5].bytes[0] = totalResults;
|
||||
phraseMasks[5].bytes[1] = (totalResults >> 8) & 0xff;
|
||||
phraseMasks[5].bytes[2] = (totalResults >> 16) & 0xff;
|
||||
phraseMasks[5].bytes[3] = (Zi8UInt)totalResults >> 24;
|
||||
totalResults = (match.arrD[0] << 3) | (match.arrD[1] << 23) | 5;
|
||||
totalResults = (match.recordValues[0] << 3) | (match.recordValues[1] << 23) | 5;
|
||||
phraseValues[5].bytes[0] = totalResults;
|
||||
phraseValues[5].bytes[1] = (totalResults >> 8) & 0xff;
|
||||
phraseValues[5].bytes[2] = (totalResults >> 16) & 0xff;
|
||||
phraseValues[5].bytes[3] = (Zi8UInt)totalResults >> 24;
|
||||
} else {
|
||||
if (request->elementCount > 1) {
|
||||
match.arr1[5] = 7;
|
||||
match.arrD[5] = 1;
|
||||
match.recordMasks[5] = 7;
|
||||
match.recordValues[5] = 1;
|
||||
}
|
||||
totalResults = (match.arr1[0] << 3) | match.arr1[5];
|
||||
totalResults = (match.recordMasks[0] << 3) | match.recordMasks[5];
|
||||
phraseMasks[1].bytes[0] = phraseMasks[2].bytes[0] =
|
||||
phraseMasks[3].bytes[0] = phraseMasks[4].bytes[0] =
|
||||
phraseMasks[5].bytes[0] = totalResults;
|
||||
totalResults = (match.arrD[0] << 3) | match.arrD[5];
|
||||
totalResults = (match.recordValues[0] << 3) | match.recordValues[5];
|
||||
phraseValues[1].bytes[0] = phraseValues[2].bytes[0] =
|
||||
phraseValues[3].bytes[0] = phraseValues[4].bytes[0] =
|
||||
phraseValues[5].bytes[0] = totalResults;
|
||||
@@ -520,20 +520,20 @@ static int zi8InternalGetZH(ziGetParam* request, ZiChineseOptions* options, ziPt
|
||||
}
|
||||
}
|
||||
for (index = 0; index < 6; ++index) {
|
||||
match.arr1[index] = match.arrD[index] = 0;
|
||||
match.recordMasks[index] = match.recordValues[index] = 0;
|
||||
}
|
||||
for (index = 0; index < request->elementCount; ++index) {
|
||||
if (elements[index] >= 'A' && elements[index] <= 'Y') {
|
||||
match.arr1[index] = 31;
|
||||
match.arrD[index] = zi8CangjieCodes[elements[index] - 'A'];
|
||||
match.recordMasks[index] = 31;
|
||||
match.recordValues[index] = zi8CangjieCodes[elements[index] - 'A'];
|
||||
} else if (elements[index] != '*') {
|
||||
if (elements[index] >= 0xEFF2 && elements[index] <= 0xEFF9) {
|
||||
match.arr1[index] = 28;
|
||||
match.arrD[index] = (elements[index] - 0xEFF2) << 2;
|
||||
match.recordMasks[index] = 28;
|
||||
match.recordValues[index] = (elements[index] - 0xEFF2) << 2;
|
||||
}
|
||||
if (elements[index] == ' ') {
|
||||
match.arr1[5] = 7;
|
||||
match.arrD[5] = index;
|
||||
match.recordMasks[5] = 7;
|
||||
match.recordValues[5] = index;
|
||||
if (!index || index + 1 != request->elementCount) {
|
||||
resultFallback = 0;
|
||||
goto engine_finish;
|
||||
@@ -548,20 +548,20 @@ static int zi8InternalGetZH(ziGetParam* request, ZiChineseOptions* options, ziPt
|
||||
}
|
||||
if (index) match.length = index;
|
||||
else match.length = 1;
|
||||
totalResults = match.arr1[5] | ((match.arr1[4] << 23) |
|
||||
((match.arr1[3] << 18) | ((match.arr1[2] << 13) |
|
||||
((match.arr1[0] << 3) | (match.arr1[1] << 8)))));
|
||||
match.arr19[0] = totalResults;
|
||||
match.arr19[1] = (totalResults >> 8) & 0xff;
|
||||
match.arr19[2] = (totalResults >> 16) & 0xff;
|
||||
match.arr19[3] = (Zi8UInt)totalResults >> 24;
|
||||
totalResults = match.arrD[5] | ((match.arrD[4] << 23) |
|
||||
((match.arrD[3] << 18) | ((match.arrD[2] << 13) |
|
||||
((match.arrD[0] << 3) | (match.arrD[1] << 8)))));
|
||||
match.arr1D[0] = totalResults;
|
||||
match.arr1D[1] = (totalResults >> 8) & 0xff;
|
||||
match.arr1D[2] = (totalResults >> 16) & 0xff;
|
||||
match.arr1D[3] = (Zi8UInt)totalResults >> 24;
|
||||
totalResults = match.recordMasks[5] | ((match.recordMasks[4] << 23) |
|
||||
((match.recordMasks[3] << 18) | ((match.recordMasks[2] << 13) |
|
||||
((match.recordMasks[0] << 3) | (match.recordMasks[1] << 8)))));
|
||||
match.prefixMasks[0] = totalResults;
|
||||
match.prefixMasks[1] = (totalResults >> 8) & 0xff;
|
||||
match.prefixMasks[2] = (totalResults >> 16) & 0xff;
|
||||
match.prefixMasks[3] = (Zi8UInt)totalResults >> 24;
|
||||
totalResults = match.recordValues[5] | ((match.recordValues[4] << 23) |
|
||||
((match.recordValues[3] << 18) | ((match.recordValues[2] << 13) |
|
||||
((match.recordValues[0] << 3) | (match.recordValues[1] << 8)))));
|
||||
match.prefixValues[0] = totalResults;
|
||||
match.prefixValues[1] = (totalResults >> 8) & 0xff;
|
||||
match.prefixValues[2] = (totalResults >> 16) & 0xff;
|
||||
match.prefixValues[3] = (Zi8UInt)totalResults >> 24;
|
||||
}
|
||||
totalResults = 0;
|
||||
if ((getMode == 1 || getMode == 2) && match.phon[0] == 0xFFFF && match.phon2[0] == 0xFFFF &&
|
||||
@@ -603,37 +603,37 @@ static int zi8InternalGetZH(ziGetParam* request, ZiChineseOptions* options, ziPt
|
||||
} else {
|
||||
switch ((int)match.phon2[index] >> 9) {
|
||||
case 24: case 25:
|
||||
if (((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->unk_0x1B2C.word)->cANDch) ordinalIndex = 0xFDFF;
|
||||
if (((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->zyFuzzy.word)->cANDch) ordinalIndex = 0xFDFF;
|
||||
break;
|
||||
case 26: case 27:
|
||||
if (((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->unk_0x1B2C.word)->sANDsh) ordinalIndex = 0xFDFF;
|
||||
if (((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->zyFuzzy.word)->sANDsh) ordinalIndex = 0xFDFF;
|
||||
break;
|
||||
case 28: case 29:
|
||||
if (((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->unk_0x1B2C.word)->zANDzh) ordinalIndex = 0xFDFF;
|
||||
if (((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->zyFuzzy.word)->zANDzh) ordinalIndex = 0xFDFF;
|
||||
break;
|
||||
case 56: case 59:
|
||||
if (((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->unk_0x1B2C.word)->fANDh) ordinalIndex = 0xF9FF;
|
||||
if (((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->zyFuzzy.word)->fANDh) ordinalIndex = 0xF9FF;
|
||||
break;
|
||||
case 60: case 63:
|
||||
if (((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->unk_0x1B2C.word)->bANDp) ordinalIndex = 0xF9FF;
|
||||
if (((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->zyFuzzy.word)->bANDp) ordinalIndex = 0xF9FF;
|
||||
break;
|
||||
case 52: case 55:
|
||||
if (((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->unk_0x1B2C.word)->gANDk) ordinalIndex = 0xF9FF;
|
||||
if (((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->zyFuzzy.word)->gANDk) ordinalIndex = 0xF9FF;
|
||||
break;
|
||||
case 38:
|
||||
if (((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->unk_0x1B2C.word)->nANDl && ((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->unk_0x1B2C.word)->rANDn) ordinalIndex = 0xE1FF;
|
||||
else if (((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->unk_0x1B2C.word)->nANDl) ordinalIndex = 0xE5FF;
|
||||
else if (((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->unk_0x1B2C.word)->rANDn) ordinalIndex = 0xE3FF;
|
||||
if (((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->zyFuzzy.word)->nANDl && ((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->zyFuzzy.word)->rANDn) ordinalIndex = 0xE1FF;
|
||||
else if (((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->zyFuzzy.word)->nANDl) ordinalIndex = 0xE5FF;
|
||||
else if (((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->zyFuzzy.word)->rANDn) ordinalIndex = 0xE3FF;
|
||||
break;
|
||||
case 43:
|
||||
if (((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->unk_0x1B2C.word)->nANDl && ((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->unk_0x1B2C.word)->lANDr) ordinalIndex = 0xE1FF;
|
||||
else if (((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->unk_0x1B2C.word)->lANDr) ordinalIndex = 0xF1FF;
|
||||
else if (((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->unk_0x1B2C.word)->nANDl) ordinalIndex = 0xE5FF;
|
||||
if (((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->zyFuzzy.word)->nANDl && ((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->zyFuzzy.word)->lANDr) ordinalIndex = 0xE1FF;
|
||||
else if (((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->zyFuzzy.word)->lANDr) ordinalIndex = 0xF1FF;
|
||||
else if (((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->zyFuzzy.word)->nANDl) ordinalIndex = 0xE5FF;
|
||||
break;
|
||||
case 44:
|
||||
if (((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->unk_0x1B2C.word)->rANDn && ((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->unk_0x1B2C.word)->lANDr) ordinalIndex = 0xE1FF;
|
||||
else if (((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->unk_0x1B2C.word)->rANDn) ordinalIndex = 0xE3FF;
|
||||
else if (((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->unk_0x1B2C.word)->lANDr) ordinalIndex = 0xF1FF;
|
||||
if (((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->zyFuzzy.word)->rANDn && ((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->zyFuzzy.word)->lANDr) ordinalIndex = 0xE1FF;
|
||||
else if (((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->zyFuzzy.word)->rANDn) ordinalIndex = 0xE3FF;
|
||||
else if (((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->zyFuzzy.word)->lANDr) ordinalIndex = 0xF1FF;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -662,10 +662,10 @@ static int zi8InternalGetZH(ziGetParam* request, ZiChineseOptions* options, ziPt
|
||||
} else {
|
||||
switch (match.phon2[index] & 0x1F0) {
|
||||
case 0x60: case 0xE0: case 0x160:
|
||||
if (((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->unk_0x1B2C.word)->anANDang) ordinalIndex = 0xFFF7;
|
||||
if (((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->zyFuzzy.word)->anANDang) ordinalIndex = 0xFFF7;
|
||||
break;
|
||||
case 0x70:
|
||||
if (((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->unk_0x1B2C.word)->enANDeng) ordinalIndex = 0xFFF7;
|
||||
if (((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->zyFuzzy.word)->enANDeng) ordinalIndex = 0xFFF7;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -709,7 +709,7 @@ static int zi8InternalGetZH(ziGetParam* request, ZiChineseOptions* options, ziPt
|
||||
firstPhoneticPass = 0;
|
||||
for (rangeIndex = 1; rangeIndex < match.nSeg; ++rangeIndex) {
|
||||
for (rangeCount = 4; rangeCount < 12; ++rangeCount) {
|
||||
if (match.segs1[rangeIndex][rangeCount]) goto engine_finish;
|
||||
if (match.segmentMasks[rangeIndex][rangeCount]) goto engine_finish;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -822,10 +822,10 @@ engine_search:
|
||||
case 7: case 8:
|
||||
phraseEntry = phraseTable + ((record[9] & 15) << 16 | (record[11] | record[10] << 8));
|
||||
if ((phraseEntry[0] & 7) >= match.length &&
|
||||
match.arr1D[0] == (match.arr19[0] & phraseEntry[0]) &&
|
||||
match.arr1D[1] == (match.arr19[1] & phraseEntry[1]) &&
|
||||
match.arr1D[2] == (match.arr19[2] & phraseEntry[2]) &&
|
||||
match.arr1D[3] == (match.arr19[3] & phraseEntry[3])) {
|
||||
match.prefixValues[0] == (match.prefixMasks[0] & phraseEntry[0]) &&
|
||||
match.prefixValues[1] == (match.prefixMasks[1] & phraseEntry[1]) &&
|
||||
match.prefixValues[2] == (match.prefixMasks[2] & phraseEntry[2]) &&
|
||||
match.prefixValues[3] == (match.prefixMasks[3] & phraseEntry[3])) {
|
||||
candidateStatus = 1;
|
||||
break;
|
||||
}
|
||||
@@ -839,10 +839,10 @@ engine_search:
|
||||
(phraseEntry[3] & phraseMasks[index].bytes[3]) == phraseValues[index].bytes[3]) candidateStatus = 1;
|
||||
break;
|
||||
case 0:
|
||||
if (match.arrD[0] == (record[0] & match.arr1[0]) &&
|
||||
(match.count || (match.arrD[3] == (record[3] & match.arr1[3]) &&
|
||||
match.arrD[2] == (record[2] & match.arr1[2]) &&
|
||||
match.arrD[1] == (record[1] & match.arr1[1]))) &&
|
||||
if (match.recordValues[0] == (record[0] & match.recordMasks[0]) &&
|
||||
(match.count || (match.recordValues[3] == (record[3] & match.recordMasks[3]) &&
|
||||
match.recordValues[2] == (record[2] & match.recordMasks[2]) &&
|
||||
match.recordValues[1] == (record[1] & match.recordMasks[1]))) &&
|
||||
(ziU8)Zi8SecMatchChar(record, componentTable, &match, 0, work)) candidateStatus = 1;
|
||||
if (candidateStatus && getMode == 0 && match.nSeg > 1) {
|
||||
emittedWords = 0;
|
||||
@@ -857,10 +857,10 @@ engine_search:
|
||||
candidateOrdinal = Zi8Uni2Ord(character, work);
|
||||
if (candidateOrdinal == 0xFFFF) break;
|
||||
record = records + candidateOrdinal * 12;
|
||||
if (match.segsD[index][0] != (record[0] & match.segs1[index][0]) ||
|
||||
match.segsD[index][1] != (record[1] & match.segs1[index][1]) ||
|
||||
match.segsD[index][2] != (record[2] & match.segs1[index][2]) ||
|
||||
match.segsD[index][3] != (record[3] & match.segs1[index][3])) break;
|
||||
if (match.segmentValues[index][0] != (record[0] & match.segmentMasks[index][0]) ||
|
||||
match.segmentValues[index][1] != (record[1] & match.segmentMasks[index][1]) ||
|
||||
match.segmentValues[index][2] != (record[2] & match.segmentMasks[index][2]) ||
|
||||
match.segmentValues[index][3] != (record[3] & match.segmentMasks[index][3])) break;
|
||||
}
|
||||
if (index < match.nSeg) candidateStatus = 0;
|
||||
}
|
||||
@@ -941,10 +941,10 @@ engine_search:
|
||||
}
|
||||
}
|
||||
pud_search:
|
||||
if (((struct __zi8_work_data_s*)work)->unk_0x12D) {
|
||||
if (((struct __zi8_work_data_s*)work)->zhPudCount) {
|
||||
savedPudCount = ((struct __zi8_work_data_s*)work)->pudCount;
|
||||
wordSearchPhase = 1;
|
||||
((struct __zi8_work_data_s*)work)->pudCount = ((struct __zi8_work_data_s*)work)->unk_0x12D;
|
||||
((struct __zi8_work_data_s*)work)->pudCount = ((struct __zi8_work_data_s*)work)->zhPudCount;
|
||||
}
|
||||
pud_start:
|
||||
if (((options->countOnly && getOptions != 5) || !wordLength || getMode == 5 ||
|
||||
@@ -1011,10 +1011,10 @@ pud_candidate:
|
||||
candidateOrdinal = Zi8Uni2Ord(character, work);
|
||||
if (candidateOrdinal == 0xFFFF) break;
|
||||
record = records + candidateOrdinal * 12;
|
||||
if (match.segsD[index][0] != (record[0] & match.segs1[index][0]) ||
|
||||
match.segsD[index][1] != (record[1] & match.segs1[index][1]) ||
|
||||
match.segsD[index][2] != (record[2] & match.segs1[index][2]) ||
|
||||
match.segsD[index][3] != (record[3] & match.segs1[index][3])) break;
|
||||
if (match.segmentValues[index][0] != (record[0] & match.segmentMasks[index][0]) ||
|
||||
match.segmentValues[index][1] != (record[1] & match.segmentMasks[index][1]) ||
|
||||
match.segmentValues[index][2] != (record[2] & match.segmentMasks[index][2]) ||
|
||||
match.segmentValues[index][3] != (record[3] & match.segmentMasks[index][3])) break;
|
||||
}
|
||||
if (index < match.nSeg) goto pud_next;
|
||||
}
|
||||
@@ -1027,10 +1027,10 @@ pud_candidate:
|
||||
case 7: case 8:
|
||||
phraseEntry = phraseTable + ((record[9] & 15) << 16 | (record[11] | record[10] << 8));
|
||||
if ((phraseEntry[0] & 7) >= match.length &&
|
||||
match.arr1D[0] == (match.arr19[0] & phraseEntry[0]) &&
|
||||
match.arr1D[1] == (match.arr19[1] & phraseEntry[1]) &&
|
||||
match.arr1D[2] == (match.arr19[2] & phraseEntry[2]) &&
|
||||
match.arr1D[3] == (match.arr19[3] & phraseEntry[3])) {
|
||||
match.prefixValues[0] == (match.prefixMasks[0] & phraseEntry[0]) &&
|
||||
match.prefixValues[1] == (match.prefixMasks[1] & phraseEntry[1]) &&
|
||||
match.prefixValues[2] == (match.prefixMasks[2] & phraseEntry[2]) &&
|
||||
match.prefixValues[3] == (match.prefixMasks[3] & phraseEntry[3])) {
|
||||
candidateStatus = 1;
|
||||
break;
|
||||
}
|
||||
@@ -1044,10 +1044,10 @@ pud_candidate:
|
||||
(phraseEntry[3] & phraseMasks[index].bytes[3]) == phraseValues[index].bytes[3]) candidateStatus = 1;
|
||||
break;
|
||||
case 0:
|
||||
if (match.arrD[0] == (record[0] & match.arr1[0]) &&
|
||||
(match.count || (match.arrD[3] == (record[3] & match.arr1[3]) &&
|
||||
match.arrD[2] == (record[2] & match.arr1[2]) &&
|
||||
match.arrD[1] == (record[1] & match.arr1[1]))) &&
|
||||
if (match.recordValues[0] == (record[0] & match.recordMasks[0]) &&
|
||||
(match.count || (match.recordValues[3] == (record[3] & match.recordMasks[3]) &&
|
||||
match.recordValues[2] == (record[2] & match.recordMasks[2]) &&
|
||||
match.recordValues[1] == (record[1] & match.recordMasks[1]))) &&
|
||||
(ziU8)Zi8SecMatchChar(record, componentTable, &match, 0, work)) candidateStatus = 1;
|
||||
break;
|
||||
case 1: case 2:
|
||||
@@ -1194,10 +1194,10 @@ context_word_lookup:
|
||||
case 7: case 8:
|
||||
phraseEntry = phraseTable + ((record[9] & 15) << 16 | (record[11] | record[10] << 8));
|
||||
if ((phraseEntry[0] & 7) >= match.length &&
|
||||
match.arr1D[0] == (match.arr19[0] & phraseEntry[0]) &&
|
||||
match.arr1D[1] == (match.arr19[1] & phraseEntry[1]) &&
|
||||
match.arr1D[2] == (match.arr19[2] & phraseEntry[2]) &&
|
||||
match.arr1D[3] == (match.arr19[3] & phraseEntry[3])) {
|
||||
match.prefixValues[0] == (match.prefixMasks[0] & phraseEntry[0]) &&
|
||||
match.prefixValues[1] == (match.prefixMasks[1] & phraseEntry[1]) &&
|
||||
match.prefixValues[2] == (match.prefixMasks[2] & phraseEntry[2]) &&
|
||||
match.prefixValues[3] == (match.prefixMasks[3] & phraseEntry[3])) {
|
||||
candidateStatus = 1;
|
||||
break;
|
||||
}
|
||||
@@ -1211,20 +1211,20 @@ context_word_lookup:
|
||||
(phraseEntry[3] & phraseMasks[index].bytes[3]) == phraseValues[index].bytes[3]) candidateStatus = 1;
|
||||
break;
|
||||
case 0:
|
||||
if (match.arrD[0] == (record[0] & match.arr1[0]) &&
|
||||
(match.count || (match.arrD[3] == (record[3] & match.arr1[3]) &&
|
||||
match.arrD[2] == (record[2] & match.arr1[2]) &&
|
||||
match.arrD[1] == (record[1] & match.arr1[1]))) &&
|
||||
if (match.recordValues[0] == (record[0] & match.recordMasks[0]) &&
|
||||
(match.count || (match.recordValues[3] == (record[3] & match.recordMasks[3]) &&
|
||||
match.recordValues[2] == (record[2] & match.recordMasks[2]) &&
|
||||
match.recordValues[1] == (record[1] & match.recordMasks[1]))) &&
|
||||
(ziU8)Zi8SecMatchChar(record, componentTable, &match, 0, work)) candidateStatus = 1;
|
||||
if (candidateStatus && match.nSeg >= 2) {
|
||||
duplicateIndex = 0;
|
||||
relatedOrdinal = character;
|
||||
while (candidateStatus) {
|
||||
record = records + relatedOrdinal * 12;
|
||||
if (match.segsD[duplicateIndex][0] != (record[0] & match.segs1[duplicateIndex][0]) ||
|
||||
match.segsD[duplicateIndex][1] != (record[1] & match.segs1[duplicateIndex][1]) ||
|
||||
match.segsD[duplicateIndex][2] != (record[2] & match.segs1[duplicateIndex][2]) ||
|
||||
match.segsD[duplicateIndex][3] != (record[3] & match.segs1[duplicateIndex][3])) {
|
||||
if (match.segmentValues[duplicateIndex][0] != (record[0] & match.segmentMasks[duplicateIndex][0]) ||
|
||||
match.segmentValues[duplicateIndex][1] != (record[1] & match.segmentMasks[duplicateIndex][1]) ||
|
||||
match.segmentValues[duplicateIndex][2] != (record[2] & match.segmentMasks[duplicateIndex][2]) ||
|
||||
match.segmentValues[duplicateIndex][3] != (record[3] & match.segmentMasks[duplicateIndex][3])) {
|
||||
candidateStatus = 0;
|
||||
break;
|
||||
}
|
||||
@@ -1328,7 +1328,7 @@ context_results_done:
|
||||
wordLength = 0;
|
||||
savedPudCount = ((struct __zi8_work_data_s*)work)->pudCount;
|
||||
wordSearchPhase = 2;
|
||||
((struct __zi8_work_data_s*)work)->pudCount = ((struct __zi8_work_data_s*)work)->unk_0x12D;
|
||||
((struct __zi8_work_data_s*)work)->pudCount = ((struct __zi8_work_data_s*)work)->zhPudCount;
|
||||
goto pud_start;
|
||||
}
|
||||
dictionary_search:
|
||||
@@ -1410,10 +1410,10 @@ candidate_dictionary_search:
|
||||
} else if (getMode == 9) continue;
|
||||
}
|
||||
if (!candidateStatus && !((phraseEntry[0] & 7) >= match.length &&
|
||||
match.arr1D[0] == (match.arr19[0] & phraseEntry[0]) &&
|
||||
match.arr1D[1] == (match.arr19[1] & phraseEntry[1]) &&
|
||||
match.arr1D[2] == (match.arr19[2] & phraseEntry[2]) &&
|
||||
match.arr1D[3] == (match.arr19[3] & phraseEntry[3]) &&
|
||||
match.prefixValues[0] == (match.prefixMasks[0] & phraseEntry[0]) &&
|
||||
match.prefixValues[1] == (match.prefixMasks[1] & phraseEntry[1]) &&
|
||||
match.prefixValues[2] == (match.prefixMasks[2] & phraseEntry[2]) &&
|
||||
match.prefixValues[3] == (match.prefixMasks[3] & phraseEntry[3]) &&
|
||||
((resultFallback && (phraseEntry[0] & 7) == match.length) || (!resultFallback && (phraseEntry[0] & 7) > match.length)))) continue;
|
||||
if (charsetTable) {
|
||||
charsetEntry = charsetTable + candidateOrdinal;
|
||||
@@ -1486,13 +1486,13 @@ character_range_start:
|
||||
while (1) {
|
||||
if (match.count) {
|
||||
if (!candidateCount--) goto character_range_done;
|
||||
if (match.arr1D[0] != (record[0] & match.arr19[0])) goto character_range_next;
|
||||
if (match.prefixValues[0] != (record[0] & match.prefixMasks[0])) goto character_range_next;
|
||||
if ((ziU8)Zi8SecMatchChar(record, componentTable, &match, &candidateOrdinal, work) == 2) goto character_range_accept;
|
||||
} else {
|
||||
if (!Zi8ExactMatchNextChar(record, match.arr19[0], match.arr1D[0], match.arr19[1], match.arr1D[1],
|
||||
match.arr19[2], match.arr1D[2], match.arr19[3], match.arr1D[3],
|
||||
if (!Zi8ExactMatchNextChar(record, match.prefixMasks[0], match.prefixValues[0], match.prefixMasks[1], match.prefixValues[1],
|
||||
match.prefixMasks[2], match.prefixValues[2], match.prefixMasks[3], match.prefixValues[3],
|
||||
&candidateCount, &record, &candidateOrdinal, work)) goto character_range_done;
|
||||
if ((!match.field22 && match.length < 8) ||
|
||||
if ((!match.componentIndex && match.length < 8) ||
|
||||
(ziU8)Zi8SecMatchChar(record, componentTable, &match, &candidateOrdinal, work) == 2) goto character_range_accept;
|
||||
}
|
||||
character_range_next:
|
||||
@@ -1545,8 +1545,8 @@ character_range_done:
|
||||
record = records + phraseOrdinal * 12;
|
||||
candidateCount = 1;
|
||||
if (exactPhrase) {
|
||||
if (!Zi8PriMatchNextChar(record, match.arr1[0], match.arrD[0], match.arr1[1], match.arrD[1],
|
||||
match.arr1[2], match.arrD[2], match.arr1[3], match.arrD[3],
|
||||
if (!Zi8PriMatchNextChar(record, match.recordMasks[0], match.recordValues[0], match.recordMasks[1], match.recordValues[1],
|
||||
match.recordMasks[2], match.recordValues[2], match.recordMasks[3], match.recordValues[3],
|
||||
&candidateCount, &record, &candidateOrdinal, work) ||
|
||||
!(ziU8)Zi8SecMatchChar(record, componentTable, &match, &candidateOrdinal, work)) { ++tableIndex; continue; }
|
||||
((ZiChineseWork*)work)->duplicateOrdinals[((ZiChineseWork*)work)->duplicateIndex] = phraseOrdinal;
|
||||
@@ -1766,10 +1766,10 @@ user_character_search:
|
||||
case 7: case 8:
|
||||
phraseEntry = phraseTable + ((record[9] & 15) << 16 | (record[11] | record[10] << 8));
|
||||
if ((phraseEntry[0] & 7) >= match.length &&
|
||||
match.arr1D[0] == (match.arr19[0] & phraseEntry[0]) &&
|
||||
match.arr1D[1] == (match.arr19[1] & phraseEntry[1]) &&
|
||||
match.arr1D[2] == (match.arr19[2] & phraseEntry[2]) &&
|
||||
match.arr1D[3] == (match.arr19[3] & phraseEntry[3]) &&
|
||||
match.prefixValues[0] == (match.prefixMasks[0] & phraseEntry[0]) &&
|
||||
match.prefixValues[1] == (match.prefixMasks[1] & phraseEntry[1]) &&
|
||||
match.prefixValues[2] == (match.prefixMasks[2] & phraseEntry[2]) &&
|
||||
match.prefixValues[3] == (match.prefixMasks[3] & phraseEntry[3]) &&
|
||||
((resultFallback && (phraseEntry[0] & 7) == match.length) || (!resultFallback && (phraseEntry[0] & 7) > match.length))) {
|
||||
candidateStatus = 1;
|
||||
break;
|
||||
@@ -1785,10 +1785,10 @@ user_character_search:
|
||||
((resultFallback && index == match.length) || (!resultFallback && index > match.length))) candidateStatus = 1;
|
||||
break;
|
||||
case 0:
|
||||
if (match.arrD[0] == (record[0] & match.arr1[0]) &&
|
||||
(match.count || (match.arrD[3] == (record[3] & match.arr1[3]) &&
|
||||
match.arrD[2] == (record[2] & match.arr1[2]) &&
|
||||
match.arrD[1] == (record[1] & match.arr1[1]))) &&
|
||||
if (match.recordValues[0] == (record[0] & match.recordMasks[0]) &&
|
||||
(match.count || (match.recordValues[3] == (record[3] & match.recordMasks[3]) &&
|
||||
match.recordValues[2] == (record[2] & match.recordMasks[2]) &&
|
||||
match.recordValues[1] == (record[1] & match.recordMasks[1]))) &&
|
||||
(ziU8)Zi8SecMatchChar(record, componentTable, &match, 0, work)) candidateStatus = 1;
|
||||
break;
|
||||
case 1: case 2:
|
||||
@@ -1859,10 +1859,10 @@ user_character_next:
|
||||
} else if (getMode == 9) goto global_character_next;
|
||||
}
|
||||
if (!candidateStatus && !((phraseEntry[0] & 7) >= match.length &&
|
||||
match.arr1D[0] == (match.arr19[0] & phraseEntry[0]) &&
|
||||
match.arr1D[1] == (match.arr19[1] & phraseEntry[1]) &&
|
||||
match.arr1D[2] == (match.arr19[2] & phraseEntry[2]) &&
|
||||
match.arr1D[3] == (match.arr19[3] & phraseEntry[3]) &&
|
||||
match.prefixValues[0] == (match.prefixMasks[0] & phraseEntry[0]) &&
|
||||
match.prefixValues[1] == (match.prefixMasks[1] & phraseEntry[1]) &&
|
||||
match.prefixValues[2] == (match.prefixMasks[2] & phraseEntry[2]) &&
|
||||
match.prefixValues[3] == (match.prefixMasks[3] & phraseEntry[3]) &&
|
||||
((resultFallback && (phraseEntry[0] & 7) == match.length) || (!resultFallback && (phraseEntry[0] & 7) > match.length)))) goto global_character_next;
|
||||
if (!emitWords) {
|
||||
if (trackDuplicates) {
|
||||
@@ -1940,8 +1940,8 @@ cangjie_components:
|
||||
component_retry:
|
||||
remainingOrdinals = candidateCount;
|
||||
while (phoneticRetry && match.nSeg > 1) {
|
||||
if (!Zi8PriMatchNextChar(record, match.arr1[0], match.arrD[0], match.arr1[1], match.arrD[1],
|
||||
match.arr1[2], match.arrD[2], match.arr1[3], match.arrD[3],
|
||||
if (!Zi8PriMatchNextChar(record, match.recordMasks[0], match.recordValues[0], match.recordMasks[1], match.recordValues[1],
|
||||
match.recordMasks[2], match.recordValues[2], match.recordMasks[3], match.recordValues[3],
|
||||
&candidateCount, &record, &candidateOrdinal, work)) {
|
||||
if (phase != 0xFF) goto component_phase;
|
||||
if (switchedPhonetic) {
|
||||
@@ -1993,10 +1993,10 @@ component_retry:
|
||||
component_phrase_word:
|
||||
relatedRecord = records + (candidateOrdinal & 0x7FFF) * 12;
|
||||
if (duplicateIndex < match.nSeg &&
|
||||
(match.segsD[duplicateIndex][0] != (relatedRecord[0] & match.segs1[duplicateIndex][0]) ||
|
||||
match.segsD[duplicateIndex][1] != (relatedRecord[1] & match.segs1[duplicateIndex][1]) ||
|
||||
match.segsD[duplicateIndex][2] != (relatedRecord[2] & match.segs1[duplicateIndex][2]) ||
|
||||
match.segsD[duplicateIndex][3] != (relatedRecord[3] & match.segs1[duplicateIndex][3]))) goto component_phrase_next;
|
||||
(match.segmentValues[duplicateIndex][0] != (relatedRecord[0] & match.segmentMasks[duplicateIndex][0]) ||
|
||||
match.segmentValues[duplicateIndex][1] != (relatedRecord[1] & match.segmentMasks[duplicateIndex][1]) ||
|
||||
match.segmentValues[duplicateIndex][2] != (relatedRecord[2] & match.segmentMasks[duplicateIndex][2]) ||
|
||||
match.segmentValues[duplicateIndex][3] != (relatedRecord[3] & match.segmentMasks[duplicateIndex][3]))) goto component_phrase_next;
|
||||
currentSpelling[duplicateIndex] = ((ziU16)relatedRecord[6] << 8) + relatedRecord[7];
|
||||
if (++duplicateIndex >= match.nSeg) {
|
||||
if (switchedPhonetic) {
|
||||
@@ -2053,12 +2053,12 @@ component_record_next:
|
||||
while (exactPhrase) {
|
||||
while (match.count) {
|
||||
if ((candidateCount -= 1) == 0xFFFF) goto frequency_range_retry;
|
||||
if (match.arrD[0] == (record[0] & match.arr1[0]) &&
|
||||
if (match.recordValues[0] == (record[0] & match.recordMasks[0]) &&
|
||||
(ziU8)Zi8SecMatchChar(record, componentTable, &match, &candidateOrdinal, work)) goto frequency_accept;
|
||||
record += 12;
|
||||
}
|
||||
if (!Zi8PriMatchNextChar(record, match.arr1[0], match.arrD[0], match.arr1[1], match.arrD[1],
|
||||
match.arr1[2], match.arrD[2], match.arr1[3], match.arrD[3],
|
||||
if (!Zi8PriMatchNextChar(record, match.recordMasks[0], match.recordValues[0], match.recordMasks[1], match.recordValues[1],
|
||||
match.recordMasks[2], match.recordValues[2], match.recordMasks[3], match.recordValues[3],
|
||||
&candidateCount, &record, &candidateOrdinal, work)) {
|
||||
frequency_range_retry:
|
||||
if (phase != 0xFF) goto component_phase;
|
||||
@@ -2100,8 +2100,8 @@ frequency_record_next:
|
||||
}
|
||||
}
|
||||
while (firstPhoneticPass) {
|
||||
if (!Zi8PriMatchNextComp(componentCursor, match.arr1[0], match.arrD[0], match.arr1[1], match.arrD[1],
|
||||
match.arr1[2], match.arrD[2], match.arr1[3], match.arrD[3],
|
||||
if (!Zi8PriMatchNextComp(componentCursor, match.recordMasks[0], match.recordValues[0], match.recordMasks[1], match.recordValues[1],
|
||||
match.recordMasks[2], match.recordValues[2], match.recordMasks[3], match.recordValues[3],
|
||||
&componentIndex, &componentCursor, work)) {
|
||||
alternateCharacter = 0;
|
||||
componentFrequency = 0;
|
||||
@@ -2489,10 +2489,10 @@ filtered_search:
|
||||
case 8:
|
||||
phraseEntry = phraseTable + ((record[9] & 15) << 16 | (record[11] | record[10] << 8));
|
||||
if ((phraseEntry[0] & 7) >= match.length &&
|
||||
match.arr1D[0] == (match.arr19[0] & phraseEntry[0]) &&
|
||||
match.arr1D[1] == (match.arr19[1] & phraseEntry[1]) &&
|
||||
match.arr1D[2] == (match.arr19[2] & phraseEntry[2]) &&
|
||||
match.arr1D[3] == (match.arr19[3] & phraseEntry[3])) goto filtered_accept;
|
||||
match.prefixValues[0] == (match.prefixMasks[0] & phraseEntry[0]) &&
|
||||
match.prefixValues[1] == (match.prefixMasks[1] & phraseEntry[1]) &&
|
||||
match.prefixValues[2] == (match.prefixMasks[2] & phraseEntry[2]) &&
|
||||
match.prefixValues[3] == (match.prefixMasks[3] & phraseEntry[3])) goto filtered_accept;
|
||||
if (getMode == 7) goto filtered_next;
|
||||
case 9:
|
||||
phraseEntry = phraseTable + ((record[9] & 15) << 16 | (record[11] | record[10] << 8));
|
||||
@@ -2503,18 +2503,18 @@ filtered_search:
|
||||
(phraseEntry[3] & phraseMasks[rangeCount].bytes[3]) != phraseValues[rangeCount].bytes[3]) goto filtered_next;
|
||||
break;
|
||||
case 0:
|
||||
if (match.arrD[0] != (record[0] & match.arr1[0]) ||
|
||||
(!match.count && (match.arrD[3] != (record[3] & match.arr1[3]) ||
|
||||
match.arrD[2] != (record[2] & match.arr1[2]) ||
|
||||
match.arrD[1] != (record[1] & match.arr1[1]))) ||
|
||||
if (match.recordValues[0] != (record[0] & match.recordMasks[0]) ||
|
||||
(!match.count && (match.recordValues[3] != (record[3] & match.recordMasks[3]) ||
|
||||
match.recordValues[2] != (record[2] & match.recordMasks[2]) ||
|
||||
match.recordValues[1] != (record[1] & match.recordMasks[1]))) ||
|
||||
!(ziU8)Zi8SecMatchChar(record, componentTable, &match, 0, work)) goto filtered_next;
|
||||
for (rangeCount = 1; rangeCount < match.nSeg; ++rangeCount) {
|
||||
record = (ziU8*)((ZiChineseRecord*)records + (ziU16)frequencyTable[(rangeIndex + rangeCount) * 2] +
|
||||
((ziU16)frequencyTable[(rangeIndex + rangeCount) * 2 + 1] << 8));
|
||||
if (match.segsD[rangeCount][0] != (record[0] & match.segs1[rangeCount][0]) ||
|
||||
match.segsD[rangeCount][1] != (record[1] & match.segs1[rangeCount][1]) ||
|
||||
match.segsD[rangeCount][2] != (record[2] & match.segs1[rangeCount][2]) ||
|
||||
match.segsD[rangeCount][3] != (record[3] & match.segs1[rangeCount][3])) goto filtered_next;
|
||||
if (match.segmentValues[rangeCount][0] != (record[0] & match.segmentMasks[rangeCount][0]) ||
|
||||
match.segmentValues[rangeCount][1] != (record[1] & match.segmentMasks[rangeCount][1]) ||
|
||||
match.segmentValues[rangeCount][2] != (record[2] & match.segmentMasks[rangeCount][2]) ||
|
||||
match.segmentValues[rangeCount][3] != (record[3] & match.segmentMasks[rangeCount][3])) goto filtered_next;
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
|
||||
@@ -52,8 +52,8 @@ ziU32 Zi8MatchROMdata0(ziWChar* elements, ziU8 count, ziU8 language,
|
||||
}
|
||||
context->table = graphData;
|
||||
context->cap = (((ziU16)context->table[2] << 8) + context->table[3]) / 3;
|
||||
context->p08 = context->table + 4;
|
||||
context->p0C = context->table + context->cap * 2 + 4;
|
||||
context->characters = context->table + 4;
|
||||
context->characterFlags = context->table + context->cap * 2 + 4;
|
||||
context->lang = language;
|
||||
context->key = graphTable;
|
||||
index = 0;
|
||||
@@ -77,13 +77,13 @@ check_keys:
|
||||
if (index < keyCount) goto next_key;
|
||||
keys[index] = 0;
|
||||
keyData = (ziU8*)Zi8GetTableAddress(language, keyTable, ZI_WORK);
|
||||
context->p14 = keyData + 2;
|
||||
context->keyCodes = keyData + 2;
|
||||
keyData += context->cap * 2 + 2;
|
||||
records[0].node = ZiDAWGGetGraphInfo(context, keyData, (ziS16*)keys);
|
||||
} else {
|
||||
records[0].node = ZiDAWGGetGraph(context);
|
||||
context->endNode = 0;
|
||||
context->p14 = 0;
|
||||
context->keyCodes = 0;
|
||||
}
|
||||
records[0].key = 0;
|
||||
if (records[0].node == (ziU8*)0) goto finish_graph;
|
||||
@@ -102,11 +102,11 @@ check_keys:
|
||||
if (capacity < context->cnt) goto finish_graph;
|
||||
current->attr = ZiDAWGgetCHARattribute(context, current->node, ZI_WORK);
|
||||
if (context->cnt <= count) {
|
||||
if (context->p14 == 0) {
|
||||
if (context->keyCodes == 0) {
|
||||
convertedKey = Zi8ConvertWC2Key((ziU16)current->attr, language, ZI_WORK);
|
||||
} else {
|
||||
convertedKey = ((ziU16)context->p14[(current->attr >> 24) * 2] << 8) +
|
||||
(context->p14 + (current->attr >> 24) * 2)[1];
|
||||
convertedKey = ((ziU16)context->keyCodes[(current->attr >> 24) * 2] << 8) +
|
||||
(context->keyCodes + (current->attr >> 24) * 2)[1];
|
||||
}
|
||||
key = convertedKey;
|
||||
if (key != elements[context->cnt - 1] &&
|
||||
@@ -203,7 +203,7 @@ unsigned int Zi8MatchROMdata1(ziWChar *elements, ziU8 count, ziU8 language, ziWC
|
||||
if (ZI_WORK->groupPtr == 0) {
|
||||
result = Zi8MatchROMdata0(elements,count,language & 0xff,output,capacity & 0xffff,
|
||||
mode & 0xff,status & 0xff,0,1,acceptPrefix,0,&ZI_WORK->dawgCtx,
|
||||
ZI_WORK->unk_0x1760,ZI_WORK);
|
||||
ZI_WORK->dawgSearchState,ZI_WORK);
|
||||
}
|
||||
else {
|
||||
while (*ZI_WORK->groupPtr != 0xff) {
|
||||
@@ -211,7 +211,7 @@ unsigned int Zi8MatchROMdata1(ziWChar *elements, ziU8 count, ziU8 language, ziWC
|
||||
capacity & 0xffff,mode & 0xff,status & 0xff,
|
||||
*ZI_WORK->groupPtr,
|
||||
ZI_WORK->groupPtr[1],acceptPrefix,0,
|
||||
&ZI_WORK->dawgCtx,ZI_WORK->unk_0x1760,ZI_WORK);
|
||||
&ZI_WORK->dawgCtx,ZI_WORK->dawgSearchState,ZI_WORK);
|
||||
if ((result & 0xff) != 0) break;
|
||||
ZI_WORK->groupPtr += 2;
|
||||
status = 0;
|
||||
@@ -229,7 +229,7 @@ unsigned int Zi8MatchROMdata2(ziWChar* elements, ziU8 count, ziU8 language,
|
||||
|
||||
if (reservedMode != 0) return 0;
|
||||
if (status == 0) {
|
||||
ZI_WORK->unk_0x1768 = 0;
|
||||
ZI_WORK->dawgGroupIndex = 0;
|
||||
ZI_WORK->matchOffset = 0;
|
||||
if (group != 0 && *group == 0xc && language == 10 && ZI_WORK->forceAltGraph != 0) {
|
||||
ZI_WORK->graphTableId = 0x10;
|
||||
@@ -241,21 +241,21 @@ search_segment:
|
||||
ZI_WORK->maxCnt = 1;
|
||||
result = Zi8MatchROMdata1(elements + ZI_WORK->matchOffset,
|
||||
count - ZI_WORK->matchOffset, language,
|
||||
&ZI_WORK->unk_0x17F4[ZI_WORK->matchOffset], capacity,
|
||||
mode, status, ZI_WORK->unk_0x1768, (char*)group,
|
||||
&ZI_WORK->dawgWord[ZI_WORK->matchOffset], capacity,
|
||||
mode, status, ZI_WORK->dawgGroupIndex, (char*)group,
|
||||
acceptPrefix, ZI_WORK);
|
||||
if ((ziU8)result != 0) {
|
||||
for (index = (ziU8)(ZI_WORK->matchOffset + result); index != 0; index--) {
|
||||
output[index - 1] = ZI_WORK->unk_0x17F4[index - 1];
|
||||
output[index - 1] = ZI_WORK->dawgWord[index - 1];
|
||||
}
|
||||
result = (ziU8)(result + ZI_WORK->matchOffset);
|
||||
} else {
|
||||
if (status != 0 || count == 1) goto finish_segments;
|
||||
if (mode == 1 && ZI_WORK->unk_0x1768 == 0 &&
|
||||
if (mode == 1 && ZI_WORK->dawgGroupIndex == 0 &&
|
||||
(ziU8)Zi8MatchROMdata1(elements + ZI_WORK->matchOffset,
|
||||
count - ZI_WORK->matchOffset, language,
|
||||
&ZI_WORK->unk_0x17F4[ZI_WORK->matchOffset], capacity,
|
||||
0, status, ZI_WORK->unk_0x1768, (char*)group,
|
||||
&ZI_WORK->dawgWord[ZI_WORK->matchOffset], capacity,
|
||||
0, status, ZI_WORK->dawgGroupIndex, (char*)group,
|
||||
acceptPrefix, ZI_WORK) != 0) goto finish_segments;
|
||||
if ((Zi8GetTableCount(language, 0x1f, ZI_WORK) & 4) == 0) {
|
||||
for (index = 0; index < count; index++) {
|
||||
@@ -265,18 +265,18 @@ search_segment:
|
||||
if (ZI_WORK->maxCnt > capacity) goto finish_segments;
|
||||
for (index = ZI_WORK->maxCnt; index != 0; index--) {
|
||||
result = Zi8MatchROMdata1(elements + ZI_WORK->matchOffset, index, language,
|
||||
&ZI_WORK->unk_0x17F4[ZI_WORK->matchOffset], capacity,
|
||||
1, 0, ZI_WORK->unk_0x1768, (char*)group,
|
||||
&ZI_WORK->dawgWord[ZI_WORK->matchOffset], capacity,
|
||||
1, 0, ZI_WORK->dawgGroupIndex, (char*)group,
|
||||
acceptPrefix, ZI_WORK);
|
||||
if ((ziU8)result != 0) {
|
||||
ZI_WORK->matchOffset += (ziU8)result;
|
||||
if (ZI_WORK->matchOffset == count) return 0;
|
||||
ZI_WORK->unk_0x1768++;
|
||||
ZI_WORK->dawgGroupIndex++;
|
||||
status = 0;
|
||||
ZI_WORK->graphTableId = 0;
|
||||
if (ZI_WORK->dawgCtx.key == 0 && language == 10) {
|
||||
for (index = 0; index < ZI_WORK->matchOffset; index++) {
|
||||
switch (ZI_WORK->unk_0x17F4[index]) {
|
||||
switch (ZI_WORK->dawgWord[index]) {
|
||||
case 0x61:
|
||||
case 0x6f:
|
||||
case 0x75:
|
||||
@@ -305,9 +305,9 @@ ziU32 Zi8MatchROMdata(ziWChar* elements, ziU8 count, ziU8 language,
|
||||
Zi8LogError(100, ZI_WORK);
|
||||
} else {
|
||||
if (status == 0) {
|
||||
ZI_WORK->unk_0x17EC = 0;
|
||||
ZI_WORK->dawgFallbackUsed = 0;
|
||||
ZI_WORK->dawgGroup = NextDawgGroup(0, language, ZI_WORK);
|
||||
} else if (ZI_WORK->unk_0x17EC != 0) {
|
||||
} else if (ZI_WORK->dawgFallbackUsed != 0) {
|
||||
Zi8LogError(100, ZI_WORK);
|
||||
goto finish_match;
|
||||
}
|
||||
@@ -328,7 +328,7 @@ ziU32 Zi8MatchROMdata(ziWChar* elements, ziU8 count, ziU8 language,
|
||||
}
|
||||
if ((ziU8)result == 0 && status == 0 && mode == 1 && count == 1 && capacity >= 1) {
|
||||
mode = 0;
|
||||
ZI_WORK->unk_0x17EC = 1;
|
||||
ZI_WORK->dawgFallbackUsed = 1;
|
||||
if (tableSize != 0) {
|
||||
ZI_WORK->dawgGroup = NextDawgGroup(0, language, ZI_WORK);
|
||||
while (ZI_WORK->dawgGroup != 0) {
|
||||
@@ -380,6 +380,6 @@ void Zi8SyllablesROMdata(ziWChar *elements, ziU8 count, ziU8 language, ziWChar *
|
||||
}
|
||||
}
|
||||
Zi8MatchROMdata0(elements,count,language & 0xff,output,capacity,1,status,graphTable,keyTable,0,(ziU8 *)prefixLength,
|
||||
&ZI_WORK->dawgCtx,ZI_WORK->unk_0x1760,ZI_WORK);
|
||||
&ZI_WORK->dawgCtx,ZI_WORK->dawgSearchState,ZI_WORK);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -4,12 +4,12 @@
|
||||
extern ziU8 _Zi8GetCandidates(ziGetParam* getParam ZI_NEED_WORK);
|
||||
|
||||
ziU8 Zi8GetCandidates(ziGetParam* getParam ZI_NEED_WORK) {
|
||||
ZI_WORK->unk_0x1B3A = 0;
|
||||
ZI_WORK->unk_0x1B3C = 0;
|
||||
ZI_WORK->unk_0x1B3B = 0;
|
||||
ZI_WORK->unk_0x1B3D = 0;
|
||||
ZI_WORK->unk_0x1B36 = 0;
|
||||
ZI_WORK->unk_0x1B32 = 0;
|
||||
ZI_WORK->unk_0x1B34 = 0;
|
||||
ZI_WORK->candidateStateByteA = 0;
|
||||
ZI_WORK->candidateStateByteC = 0;
|
||||
ZI_WORK->candidateStateByteB = 0;
|
||||
ZI_WORK->candidateStateByteD = 0;
|
||||
ZI_WORK->candidateStateWordC = 0;
|
||||
ZI_WORK->candidateStateWordA = 0;
|
||||
ZI_WORK->candidateStateWordB = 0;
|
||||
return _Zi8GetCandidates(getParam, ZI_WORK);
|
||||
}
|
||||
|
||||
@@ -41,9 +41,9 @@ ziBool Zi8ZHsetPYfuzzyPairs(ziFuzzyPYPairs pairs ZI_NEED_WORK) {
|
||||
|
||||
ziBool Zi8ZHsetZYfuzzyPairs(ziFuzzyZYPairs pairs ZI_NEED_WORK) {
|
||||
if (pairs.ziDefault) {
|
||||
ZI_WORK->unk_0x1B2C.word = *(const ziU32*)&Zi8ZYdefaultFuzzyPairs;
|
||||
ZI_WORK->zyFuzzy.word = *(const ziU32*)&Zi8ZYdefaultFuzzyPairs;
|
||||
} else {
|
||||
ZI_WORK->unk_0x1B2C.word = *(ziU32*)&pairs;
|
||||
ZI_WORK->zyFuzzy.word = *(ziU32*)&pairs;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
@@ -166,7 +166,7 @@ static ziBool Zi8AlphaSignature(ziGetParam* parameters, ziBool countOnly ZI_NEED
|
||||
if ((parameters->getOptions & 0x80) == 0) {
|
||||
ZI_WORK->language = parameters->language;
|
||||
parameters->candidates[0] = 0xfff0;
|
||||
output = (ziWChar*)&ZI_WORK->unk_0x338;
|
||||
output = (ziWChar*)&ZI_WORK->candidateBufferHead;
|
||||
}
|
||||
if (parameters->firstCandidate != 0) {
|
||||
current = signatures.second;
|
||||
@@ -176,7 +176,7 @@ static ziBool Zi8AlphaSignature(ziGetParam* parameters, ziBool countOnly ZI_NEED
|
||||
length = signatures.length;
|
||||
}
|
||||
if (length > ZI_WORK->maxWordLength) length = ZI_WORK->maxWordLength;
|
||||
if ((parameters->elementCount < ZI_WORK->unk_0x140C[0] ||
|
||||
if ((parameters->elementCount < ZI_WORK->wordLengthSettings[0] ||
|
||||
(parameters->getOptions & 0x7e) == 2) && length > parameters->elementCount) {
|
||||
length = parameters->elementCount;
|
||||
}
|
||||
@@ -186,7 +186,7 @@ static ziBool Zi8AlphaSignature(ziGetParam* parameters, ziBool countOnly ZI_NEED
|
||||
current = signatures.second;
|
||||
length = secondLength;
|
||||
if (length > ZI_WORK->maxWordLength) length = ZI_WORK->maxWordLength;
|
||||
if ((parameters->elementCount < ZI_WORK->unk_0x140C[0] ||
|
||||
if ((parameters->elementCount < ZI_WORK->wordLengthSettings[0] ||
|
||||
(parameters->getOptions & 0x7e) == 2) && length > parameters->elementCount) {
|
||||
length = parameters->elementCount;
|
||||
}
|
||||
@@ -492,7 +492,7 @@ ziU32 Zi8GetCandidatesOrCount(ziGetParam* parameters, ZiCandidateOptions* option
|
||||
}
|
||||
ZI_WORK->subLanguage = parameters->subLanguage;
|
||||
ZI_WORK->cangjieEnabled = Zi8GetFormatVersion(1,ZI_WORK) & 2;
|
||||
options->maxCount = ZI_WORK->unk_0x10;
|
||||
options->maxCount = ZI_WORK->maxCandidateCount;
|
||||
options->maxWordLength = ZI_WORK->maxWordLength;
|
||||
ZI_WORK->maxWordLength = -1;
|
||||
if ((ziU8)Zi8LangSupported(parameters->language,ZI_WORK) == 0) {
|
||||
@@ -588,7 +588,7 @@ ziU32 Zi8GetCandidatesOrCount(ziGetParam* parameters, ZiCandidateOptions* option
|
||||
saved.savedOptions = parameters->getOptions;
|
||||
saved.savedCandidates = parameters->candidates;
|
||||
parameters->getOptions |= 0x81;
|
||||
parameters->candidates = (ziWChar*)&ZI_WORK->unk_0x338;
|
||||
parameters->candidates = (ziWChar*)&ZI_WORK->candidateBufferHead;
|
||||
options->capacity = 0x100;
|
||||
}
|
||||
if (parameters->getMode == 2) {
|
||||
@@ -618,7 +618,7 @@ ziU32 Zi8GetCandidatesOrCount(ziGetParam* parameters, ZiCandidateOptions* option
|
||||
}
|
||||
|
||||
void Zi8InitDupWordBuf(ziPtr __zi8_work_data) {
|
||||
ZI_WORK->unk_0x539 = 0;
|
||||
ZI_WORK->duplicateCount = 0;
|
||||
}
|
||||
|
||||
ziBool Zi8IsDupWChar(ziWChar character ZI_NEED_WORK) {
|
||||
@@ -626,26 +626,26 @@ ziBool Zi8IsDupWChar(ziWChar character ZI_NEED_WORK) {
|
||||
ziU16* buffer;
|
||||
unsigned int index;
|
||||
duplicate = 0;
|
||||
buffer = ZI_WORK->unk_0x57A;
|
||||
if (ZI_WORK->unk_0x539 == 0) {
|
||||
buffer = ZI_WORK->duplicateBuffer;
|
||||
if (ZI_WORK->duplicateCount == 0) {
|
||||
buffer[0] = 2;
|
||||
buffer[1] = character;
|
||||
ZI_WORK->unk_0x539 = 1;
|
||||
ZI_WORK->duplicateCount = 1;
|
||||
Zi8LogError(0x8fd, ZI_WORK);
|
||||
return 0;
|
||||
}
|
||||
for (index = ZI_WORK->unk_0x539; index != 0; index--) {
|
||||
for (index = ZI_WORK->duplicateCount; index != 0; index--) {
|
||||
if (character == buffer[index]) {
|
||||
duplicate = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
ZI_WORK->unk_0x539++;
|
||||
ZI_WORK->duplicateCount++;
|
||||
buffer[(*buffer)++] = character;
|
||||
if (*buffer > 100) {
|
||||
*buffer = 2;
|
||||
buffer[1] = character;
|
||||
ZI_WORK->unk_0x539 = 1;
|
||||
ZI_WORK->duplicateCount = 1;
|
||||
}
|
||||
Zi8LogError(100, ZI_WORK);
|
||||
return duplicate;
|
||||
@@ -664,38 +664,38 @@ ziBool Zi8IsDupWordW(ziWChar* word, ziU8 length ZI_NEED_WORK) {
|
||||
word += length - 20;
|
||||
length = 20;
|
||||
}
|
||||
for (index = 0; index < ZI_WORK->unk_0x539; index++) {
|
||||
slot = ZI_WORK->unk_0x53A[index];
|
||||
for (index = 0; index < ZI_WORK->duplicateCount; index++) {
|
||||
slot = ZI_WORK->duplicateWordOrder[index];
|
||||
for (character = 0; character < length; character++) {
|
||||
if (word[character] != ((ziWChar (*)[21])ZI_WORK->unk_0x57A)[slot][character]) break;
|
||||
if (word[character] != ((ziWChar (*)[21])ZI_WORK->duplicateBuffer)[slot][character]) break;
|
||||
}
|
||||
if (character >= length && ((ziWChar (*)[21])ZI_WORK->unk_0x57A)[slot][character] == 0) {
|
||||
if (character >= length && ((ziWChar (*)[21])ZI_WORK->duplicateBuffer)[slot][character] == 0) {
|
||||
duplicate = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!duplicate) {
|
||||
if (ZI_WORK->unk_0x539 < 64) {
|
||||
slot = ZI_WORK->unk_0x53A[ZI_WORK->unk_0x539] = ZI_WORK->unk_0x539;
|
||||
ZI_WORK->unk_0x539++;
|
||||
if (ZI_WORK->duplicateCount < 64) {
|
||||
slot = ZI_WORK->duplicateWordOrder[ZI_WORK->duplicateCount] = ZI_WORK->duplicateCount;
|
||||
ZI_WORK->duplicateCount++;
|
||||
} else {
|
||||
slot = ZI_WORK->unk_0x53A[0];
|
||||
for (index = 1; index < ZI_WORK->unk_0x539; index++) {
|
||||
ZI_WORK->unk_0x53A[index - 1] = ZI_WORK->unk_0x53A[index];
|
||||
slot = ZI_WORK->duplicateWordOrder[0];
|
||||
for (index = 1; index < ZI_WORK->duplicateCount; index++) {
|
||||
ZI_WORK->duplicateWordOrder[index - 1] = ZI_WORK->duplicateWordOrder[index];
|
||||
}
|
||||
ZI_WORK->unk_0x53A[index - 1] = slot;
|
||||
ZI_WORK->duplicateWordOrder[index - 1] = slot;
|
||||
}
|
||||
} else {
|
||||
slot = ZI_WORK->unk_0x53A[index];
|
||||
for (; index < ZI_WORK->unk_0x539 - 1; index++) {
|
||||
ZI_WORK->unk_0x53A[index] = ZI_WORK->unk_0x53A[index + 1];
|
||||
slot = ZI_WORK->duplicateWordOrder[index];
|
||||
for (; index < ZI_WORK->duplicateCount - 1; index++) {
|
||||
ZI_WORK->duplicateWordOrder[index] = ZI_WORK->duplicateWordOrder[index + 1];
|
||||
}
|
||||
ZI_WORK->unk_0x53A[index] = slot;
|
||||
ZI_WORK->duplicateWordOrder[index] = slot;
|
||||
}
|
||||
for (character = 0; character < length; character++) {
|
||||
((ziWChar (*)[21])ZI_WORK->unk_0x57A)[slot][character] = word[character];
|
||||
((ziWChar (*)[21])ZI_WORK->duplicateBuffer)[slot][character] = word[character];
|
||||
}
|
||||
((ziWChar (*)[21])ZI_WORK->unk_0x57A)[slot][character] = 0;
|
||||
((ziWChar (*)[21])ZI_WORK->duplicateBuffer)[slot][character] = 0;
|
||||
Zi8LogError(100, ZI_WORK);
|
||||
return duplicate;
|
||||
}
|
||||
|
||||
@@ -16,22 +16,22 @@ ziU8 Zi8InitializeDynamic(ziLanguageEntry* langEntries ZI_NEED_WORK) {
|
||||
ziU32* ppyFuzzy;
|
||||
|
||||
Zi8Memset(__zi8_work_data, 0, 0x1B44);
|
||||
ZI_WORK->unk_0x08 = 1;
|
||||
ZI_WORK->unk_0x09 = 1;
|
||||
ZI_WORK->initializationState = 1;
|
||||
ZI_WORK->dictionaryFlags = 1;
|
||||
ZI_WORK->maxWordLength = 0xFF;
|
||||
ZI_WORK->unk_0x10 = 0x64;
|
||||
ZI_WORK->maxCandidateCount = 0x64;
|
||||
*(ziU16*)&ZI_WORK->targetCount = 0xFFFF;
|
||||
ZI_WORK->separator = 0x20;
|
||||
ZI_WORK->unk_0x1C[2] = 0;
|
||||
ZI_WORK->searchModes[2] = 0;
|
||||
ZI_WORK->koAltTables = 0;
|
||||
ZI_WORK->unk_0x1B3A = 0;
|
||||
ZI_WORK->unk_0x1B36 = 0;
|
||||
ZI_WORK->unk_0x1B32 = 0;
|
||||
ZI_WORK->unk_0x1B34 = 0;
|
||||
ZI_WORK->unk_0x1B3B = 0;
|
||||
ZI_WORK->unk_0x1B3C = 0;
|
||||
ZI_WORK->unk_0x1B40 = 0;
|
||||
ZI_WORK->unk_0x1B38 = 0;
|
||||
ZI_WORK->candidateStateByteA = 0;
|
||||
ZI_WORK->candidateStateWordC = 0;
|
||||
ZI_WORK->candidateStateWordA = 0;
|
||||
ZI_WORK->candidateStateWordB = 0;
|
||||
ZI_WORK->candidateStateByteB = 0;
|
||||
ZI_WORK->candidateStateByteC = 0;
|
||||
ZI_WORK->initializationWordB = 0;
|
||||
ZI_WORK->initializationWordA = 0;
|
||||
ZI_WORK->langEntries = langEntries;
|
||||
if (ZI_WORK->langEntries == ZI8_NULL) {
|
||||
Zi8LogError(0x578, ZI_WORK);
|
||||
@@ -41,17 +41,17 @@ ziU8 Zi8InitializeDynamic(ziLanguageEntry* langEntries ZI_NEED_WORK) {
|
||||
Zi8LogError(0x582, ZI_WORK);
|
||||
return 0;
|
||||
}
|
||||
ZI_WORK->unk_0x1874 = 0x2D;
|
||||
ZI_WORK->letterHyphen = 0x2D;
|
||||
ZI_WORK->language = 0;
|
||||
ZI_WORK->unk_0x1C[3] = 0;
|
||||
ZI_WORK->searchModes[3] = 0;
|
||||
ZI_WORK->capacity = 0x100;
|
||||
Zi8SetLatinSearchOrder(0, 0, ZI_WORK);
|
||||
ZADP_Zi8SetPDremoveOpt(1, ZI_WORK);
|
||||
ZI_WORK->zhPudMinPrefix = 5;
|
||||
ZI_WORK->cangjieEnabled = Zi8GetFormatVersion(1, ZI_WORK) & 2;
|
||||
ZI_WORK->pyFuzzy.bits.msb = 1;
|
||||
ZI_WORK->unk_0x1B2C.bits.msb = 1;
|
||||
zyFuzzy = ZI_WORK->unk_0x1B2C.word;
|
||||
ZI_WORK->zyFuzzy.bits.msb = 1;
|
||||
zyFuzzy = ZI_WORK->zyFuzzy.word;
|
||||
pzyFuzzy = &zyFuzzy;
|
||||
Zi8ZHsetZYfuzzyPairs(pzyFuzzy, ZI_WORK);
|
||||
pyFuzzy = ZI_WORK->pyFuzzy.word;
|
||||
|
||||
@@ -75,10 +75,10 @@ const ziU8 nodeHeaderTable[0x20] = {
|
||||
0x00, 0x17, 0x00, 0x1D, 0x00, 0x1F, 0x00, 0x35
|
||||
};
|
||||
|
||||
ziBool Zi8PriMatchNextChar(ziU8* node, ziU8 mask0, ziU8 value0, ziU8 mask1, ziU8 value1, ziU8 mask2, ziU8 value2, ziU8 mask3, ziU8 value3, ziU16* count, ziU8** result, ziU16* code ZI_NEED_WORK) {
|
||||
ziBool Zi8PriMatchNextChar(ziU8* node, ziU8 firstByteMask, ziU8 firstByteValue, ziU8 secondByteMask, ziU8 secondByteValue, ziU8 thirdByteMask, ziU8 thirdByteValue, ziU8 fourthByteMask, ziU8 fourthByteValue, ziU16* count, ziU8** result, ziU16* code ZI_NEED_WORK) {
|
||||
ziU16 remaining = *count;
|
||||
while (remaining-- != 0) {
|
||||
if ((value0 == (node[0] & mask0)) && (value3 == (node[3] & mask3)) && (value2 == (node[2] & mask2)) && (value1 == (node[1] & mask1))) {
|
||||
if ((firstByteValue == (node[0] & firstByteMask)) && (fourthByteValue == (node[3] & fourthByteMask)) && (thirdByteValue == (node[2] & thirdByteMask)) && (secondByteValue == (node[1] & secondByteMask))) {
|
||||
*result = node;
|
||||
*code = ((ziU16)node[6] << 8) + (ziU16)node[7];
|
||||
*count = remaining;
|
||||
@@ -91,11 +91,11 @@ ziBool Zi8PriMatchNextChar(ziU8* node, ziU8 mask0, ziU8 value0, ziU8 mask1, ziU8
|
||||
return 0;
|
||||
}
|
||||
|
||||
ziBool Zi8ExactMatchNextChar(ziU8* node, ziU8 mask0, ziU8 value0, ziU8 mask1, ziU8 value1, ziU8 mask2, ziU8 value2, ziU8 mask3, ziU8 value3, ziU16* count, ziU8** result, ziU16* code ZI_NEED_WORK) {
|
||||
ziBool Zi8ExactMatchNextChar(ziU8* node, ziU8 firstByteMask, ziU8 firstByteValue, ziU8 secondByteMask, ziU8 secondByteValue, ziU8 thirdByteMask, ziU8 thirdByteValue, ziU8 fourthByteMask, ziU8 fourthByteValue, ziU16* count, ziU8** result, ziU16* code ZI_NEED_WORK) {
|
||||
ziU16 remaining = *count;
|
||||
ziU8* current = node;
|
||||
while (remaining-- != 0) {
|
||||
if ((value0 == (current[0] & mask0)) && (value3 == (current[3] & mask3)) && (value2 == (current[2] & mask2)) && (value1 == (current[1] & mask1))) {
|
||||
if ((firstByteValue == (current[0] & firstByteMask)) && (fourthByteValue == (current[3] & fourthByteMask)) && (thirdByteValue == (current[2] & thirdByteMask)) && (secondByteValue == (current[1] & secondByteMask))) {
|
||||
*result = current;
|
||||
*code = ((ziU16)current[6] << 8) + (ziU16)current[7];
|
||||
*count = remaining;
|
||||
@@ -119,8 +119,8 @@ ziU32 Zi8SecMatchChar(ziPtr nodeAddress, ziU8* dictionaryAddress, ziMatchParam*
|
||||
ziU16 targetCode;
|
||||
} state;
|
||||
|
||||
if (match->field22 != 0) {
|
||||
state.targetCode = match->field22;
|
||||
if (match->componentIndex != 0) {
|
||||
state.targetCode = match->componentIndex;
|
||||
matchCode = ((ziU16)(((ziU8*)nodeAddress)[4] & 3) << 8) | ((ziU8*)nodeAddress)[5];
|
||||
value = 0;
|
||||
while (value++ < 6) {
|
||||
@@ -222,7 +222,7 @@ ziU32 Zi8SecMatchChar(ziPtr nodeAddress, ziU8* dictionaryAddress, ziMatchParam*
|
||||
}
|
||||
if (match->count == 0) {
|
||||
while (state.remaining != 0) {
|
||||
if ((data[0] & match->arr1[state.dataIndex]) != match->arrD[state.dataIndex]) {
|
||||
if ((data[0] & match->recordMasks[state.dataIndex]) != match->recordValues[state.dataIndex]) {
|
||||
return 0;
|
||||
}
|
||||
state.dataIndex++;
|
||||
@@ -239,10 +239,10 @@ ziU32 Zi8SecMatchChar(ziPtr nodeAddress, ziU8* dictionaryAddress, ziMatchParam*
|
||||
return 1;
|
||||
}
|
||||
|
||||
ziBool Zi8PriMatchNextComp(ziU8* node, ziU8 mask0, ziU8 value0, ziU8 mask1, ziU8 value1, ziU8 mask2, ziU8 value2, ziU8 mask3, ziU8 value3, ziU16* count, ziU8** result ZI_NEED_WORK) {
|
||||
ziBool Zi8PriMatchNextComp(ziU8* node, ziU8 firstByteMask, ziU8 firstByteValue, ziU8 secondByteMask, ziU8 secondByteValue, ziU8 thirdByteMask, ziU8 thirdByteValue, ziU8 fourthByteMask, ziU8 fourthByteValue, ziU16* count, ziU8** result ZI_NEED_WORK) {
|
||||
ziU16 remaining = *count;
|
||||
while (remaining-- != 0) {
|
||||
if ((value0 == (node[0] & mask0)) && (value1 == (node[1] & mask1)) && (value2 == (node[2] & mask2)) && (value3 == (node[3] & mask3))) {
|
||||
if ((firstByteValue == (node[0] & firstByteMask)) && (secondByteValue == (node[1] & secondByteMask)) && (thirdByteValue == (node[2] & thirdByteMask)) && (fourthByteValue == (node[3] & fourthByteMask))) {
|
||||
*result = node;
|
||||
*count = remaining;
|
||||
Zi8LogError(0x64, ZI_WORK);
|
||||
@@ -259,8 +259,8 @@ ziBool Zi8SecMatchComp(ziPtr nodeAddress, ziMatchParam* matchAddress, ziPtr dict
|
||||
ziU16 matchCode;
|
||||
ziU16 targetCode;
|
||||
|
||||
if (matchAddress->field22 != 0) {
|
||||
targetCode = matchAddress->field22;
|
||||
if (matchAddress->componentIndex != 0) {
|
||||
targetCode = matchAddress->componentIndex;
|
||||
matchCode = ((ziU16)(((ziU8*)nodeAddress)[6] & 3) << 8) | ((ziU8*)nodeAddress)[7];
|
||||
chainIndex = 0;
|
||||
while (chainIndex++ < 6) {
|
||||
|
||||
@@ -25,8 +25,8 @@ ziU16 Zi8Uni2Ptr(ziU16 ch, ziE12* buf ZI_NEED_WORK) {
|
||||
table2 = Zi8GetTableAddress(1, 1, __zi8_work_data);
|
||||
if (buf == ZI8_NULL) {
|
||||
for (i = 0; i < 0x40; i++) {
|
||||
if (ch == WORKP->unk_0x20[i]) {
|
||||
i = WORKP->unk_0xA0[i];
|
||||
if (ch == WORKP->duplicateCharacters[i]) {
|
||||
i = WORKP->duplicateOrdinalCache[i];
|
||||
e = (ziU8*)table + i * 0xC;
|
||||
if (i >= count) {
|
||||
break;
|
||||
|
||||
@@ -93,17 +93,17 @@ ziU8 Zi8MatchPUDdata_ZHS(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar*
|
||||
Zi8LogError(0x4F6, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
ZI_WORK->unk_0x314 = ((ziU16)section->count[0] << 8) + (ziU16)section->count[1];
|
||||
ZI_WORK->unk_0x310 = (ziU32)table + (((ziU16)section->offset[0] << 8) + (ziU16)section->offset[1]);
|
||||
ZI_WORK->unk_0x318 = 0;
|
||||
ZI_WORK->pudWordCount = ((ziU16)section->count[0] << 8) + (ziU16)section->count[1];
|
||||
ZI_WORK->pudWordAddress = (ziU32)table + (((ziU16)section->offset[0] << 8) + (ziU16)section->offset[1]);
|
||||
ZI_WORK->pudWordIndex = 0;
|
||||
}
|
||||
for (;;) {
|
||||
word = (ziU8*)ZI_WORK->unk_0x310;
|
||||
word = (ziU8*)ZI_WORK->pudWordAddress;
|
||||
if (word == 0) {
|
||||
Zi8LogError(0x4B3, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
while ((ziS32)ZI_WORK->unk_0x318 < (ziS32)ZI_WORK->unk_0x314) {
|
||||
while ((ziS32)ZI_WORK->pudWordIndex < (ziS32)ZI_WORK->pudWordCount) {
|
||||
wordSize = *word++;
|
||||
entrySize = wordSize;
|
||||
if (language == 1) {
|
||||
@@ -112,10 +112,10 @@ ziU8 Zi8MatchPUDdata_ZHS(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar*
|
||||
entrySize--;
|
||||
word++;
|
||||
wordSize = ZiGetZHWordSize((ziWChar*)word, entrySize);
|
||||
} else if (ZI_WORK->unk_0x31E != 0 && complete != 0 && length < wordSize && word[length] == 0x20) goto matchText;
|
||||
} else if (ZI_WORK->pudStopAtSpace != 0 && complete != 0 && length < wordSize && word[length] == 0x20) goto matchText;
|
||||
if ((ziS32)length > (ziS32)wordSize || (complete != 0 && wordSize != length) || (complete == 0 && wordSize == length)) {
|
||||
next:
|
||||
ZI_WORK->unk_0x318++;
|
||||
ZI_WORK->pudWordIndex++;
|
||||
word += entrySize;
|
||||
} else {
|
||||
if (language == 1) {
|
||||
@@ -136,9 +136,9 @@ matchText:
|
||||
}
|
||||
matched:
|
||||
if (match.fallback) {
|
||||
ZI_WORK->unk_0x310 = 0;
|
||||
ZI_WORK->unk_0x318 = 0;
|
||||
ZI_WORK->unk_0x314 = 0;
|
||||
ZI_WORK->pudWordAddress = 0;
|
||||
ZI_WORK->pudWordIndex = 0;
|
||||
ZI_WORK->pudWordCount = 0;
|
||||
if (*pattern >= 0xEFF1) *output = *pattern;
|
||||
else *output = Zi8ConvertWC2Key(*pattern, language, __zi8_work_data);
|
||||
return 1;
|
||||
@@ -155,14 +155,14 @@ matched:
|
||||
} else {
|
||||
for (copied = 0; copied < wordSize && copied < capacity; copied++) {
|
||||
output[copied] = Zi8ConvertUC2WC(word[copied], language, __zi8_work_data);
|
||||
if (ZI_WORK->unk_0x31E != 0 && copied >= length && output[copied] == 0x20) {
|
||||
if (ZI_WORK->pudStopAtSpace != 0 && copied >= length && output[copied] == 0x20) {
|
||||
if (complete != 0 || copied >= length) break;
|
||||
goto next;
|
||||
}
|
||||
}
|
||||
}
|
||||
ZI_WORK->unk_0x318++;
|
||||
ZI_WORK->unk_0x310 = (ziU32)(word + entrySize);
|
||||
ZI_WORK->pudWordIndex++;
|
||||
ZI_WORK->pudWordAddress = (ziU32)(word + entrySize);
|
||||
Zi8LogError(100, __zi8_work_data);
|
||||
return (ziU8)copied;
|
||||
}
|
||||
@@ -170,11 +170,11 @@ matched:
|
||||
if (length == 1 && complete != 0 && continuation == 0) {
|
||||
complete = 0;
|
||||
match.fallback = 1;
|
||||
ZI_WORK->unk_0x318 = 0;
|
||||
ZI_WORK->pudWordIndex = 0;
|
||||
} else {
|
||||
ZI_WORK->unk_0x310 = 0;
|
||||
ZI_WORK->unk_0x318 = 0;
|
||||
ZI_WORK->unk_0x314 = 0;
|
||||
ZI_WORK->pudWordAddress = 0;
|
||||
ZI_WORK->pudWordIndex = 0;
|
||||
ZI_WORK->pudWordCount = 0;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -127,8 +127,8 @@ ziU8 Zi8MatchUWDdata(ziWChar* pattern, ziU8 length, ziWChar* currentWord, ziU16
|
||||
}
|
||||
{
|
||||
Zi8_8148047C(__zi8_work_data);
|
||||
ZI_WORK->unk_0x13C = 0;
|
||||
if (currentWord == 0 || currentLength == 0 || currentWord[currentLength - 1] != 0x20) ZI_WORK->unk_0x140 = 0;
|
||||
ZI_WORK->uwdSkipCount = 0;
|
||||
if (currentWord == 0 || currentLength == 0 || currentWord[currentLength - 1] != 0x20) ZI_WORK->uwdContextEnabled = 0;
|
||||
else {
|
||||
prefixLength = 0;
|
||||
for (position = currentLength - 2; position >= 0;) {
|
||||
@@ -137,23 +137,23 @@ ziU8 Zi8MatchUWDdata(ziWChar* pattern, ziU8 length, ziWChar* currentWord, ziU16
|
||||
prefixLength++;
|
||||
}
|
||||
position++;
|
||||
if (prefixLength == 0 || prefixLength > 63) ZI_WORK->unk_0x140 = 0;
|
||||
if (prefixLength == 0 || prefixLength > 63) ZI_WORK->uwdContextEnabled = 0;
|
||||
else {
|
||||
ZI_WORK->unk_0x140 = 1;
|
||||
ZI_WORK->unk_0x141[prefixLength + 4] = ZI_WORK->unk_0x141[0] = prefixLength + 5;
|
||||
ZI_WORK->unk_0x141[1] = language;
|
||||
ZI_WORK->unk_0x141[2] = prefixLength;
|
||||
ZI_WORK->uwdContextEnabled = 1;
|
||||
ZI_WORK->uwdContextRecord[prefixLength + 4] = ZI_WORK->uwdContextRecord[0] = prefixLength + 5;
|
||||
ZI_WORK->uwdContextRecord[1] = language;
|
||||
ZI_WORK->uwdContextRecord[2] = prefixLength;
|
||||
previousOffset = 4;
|
||||
while (prefixLength > 0) {
|
||||
folded = currentWord[position];
|
||||
ZI_WORK->unk_0x141[previousOffset] = Zi8ConvertWC2UC(folded, language, __zi8_work_data);
|
||||
ZI_WORK->unk_0x184[previousOffset] = 0;
|
||||
ZI_WORK->uwdContextRecord[previousOffset] = Zi8ConvertWC2UC(folded, language, __zi8_work_data);
|
||||
ZI_WORK->uwdContextAlternateCase[previousOffset] = 0;
|
||||
if (ZI_WORK->ignoreCase != 0) {
|
||||
if (!Zi8ChangeCharCase(1, &folded, language, __zi8_work_data)) Zi8ChangeCharCase(0, &folded, language, __zi8_work_data);
|
||||
ZI_WORK->unk_0x184[previousOffset] = Zi8ConvertWC2UC(folded, language, __zi8_work_data);
|
||||
ZI_WORK->uwdContextAlternateCase[previousOffset] = Zi8ConvertWC2UC(folded, language, __zi8_work_data);
|
||||
}
|
||||
if (ZI_WORK->unk_0x141[previousOffset++] == 0) {
|
||||
ZI_WORK->unk_0x140 = 0;
|
||||
if (ZI_WORK->uwdContextRecord[previousOffset++] == 0) {
|
||||
ZI_WORK->uwdContextEnabled = 0;
|
||||
break;
|
||||
}
|
||||
prefixLength--;
|
||||
@@ -161,7 +161,7 @@ ziU8 Zi8MatchUWDdata(ziWChar* pattern, ziU8 length, ziWChar* currentWord, ziU16
|
||||
}
|
||||
}
|
||||
}
|
||||
if (ZI_WORK->unk_0x140 == 0 && length == 0) return 0;
|
||||
if (ZI_WORK->uwdContextEnabled == 0 && length == 0) return 0;
|
||||
rescan:
|
||||
cursor = begin = dictionary->entries + dictionary->current;
|
||||
boundary = (ziU8*)dictionary + dictionary->boundary + 7;
|
||||
@@ -170,7 +170,7 @@ rescan:
|
||||
else firstSegment = 0;
|
||||
while ((cursor < boundary && firstSegment) || (cursor < end && !firstSegment)) {
|
||||
size = *cursor;
|
||||
if ((ziS32)ZI_WORK->unk_0x13C > visited++ || (((ziUserWord*)cursor)->size & 0xC0) != 0) {
|
||||
if ((ziS32)ZI_WORK->uwdSkipCount > visited++ || (((ziUserWord*)cursor)->size & 0xC0) != 0) {
|
||||
next:
|
||||
if ((cursor += size) > end) {
|
||||
if (firstSegment) break;
|
||||
@@ -195,12 +195,12 @@ next:
|
||||
if (folded != pattern[position] && (!ZI_WORK->ignoreCase || !Zi8ChangeCharCase(0, &folded, language, __zi8_work_data) || folded != pattern[position])) goto next;
|
||||
}
|
||||
}
|
||||
if (ZI_WORK->unk_0x140 != 0) {
|
||||
if (ZI_WORK->unk_0x141[0] != previous->size || ZI_WORK->unk_0x141[1] != previous->language || ZI_WORK->unk_0x141[2] != previous->length) goto next;
|
||||
if (ZI_WORK->uwdContextEnabled != 0) {
|
||||
if (ZI_WORK->uwdContextRecord[0] != previous->size || ZI_WORK->uwdContextRecord[1] != previous->language || ZI_WORK->uwdContextRecord[2] != previous->length) goto next;
|
||||
prefixLength = 4;
|
||||
position = ZI_WORK->unk_0x141[2] + 4;
|
||||
position = ZI_WORK->uwdContextRecord[2] + 4;
|
||||
for (; prefixLength < position; prefixLength++) {
|
||||
if (ZI_WORK->unk_0x141[prefixLength] != ((ziU8*)previous)[prefixLength] && ZI_WORK->unk_0x184[prefixLength] != ((ziU8*)previous)[prefixLength]) goto next;
|
||||
if (ZI_WORK->uwdContextRecord[prefixLength] != ((ziU8*)previous)[prefixLength] && ZI_WORK->uwdContextAlternateCase[prefixLength] != ((ziU8*)previous)[prefixLength]) goto next;
|
||||
}
|
||||
}
|
||||
Zi8_81480224((ziUserWord*)cursor, __zi8_work_data);
|
||||
@@ -208,8 +208,8 @@ next:
|
||||
goto next;
|
||||
}
|
||||
}
|
||||
if (ZI_WORK->unk_0x140 != 0 && length != 0) {
|
||||
ZI_WORK->unk_0x140 = 0;
|
||||
if (ZI_WORK->uwdContextEnabled != 0 && length != 0) {
|
||||
ZI_WORK->uwdContextEnabled = 0;
|
||||
visited = 0;
|
||||
goto rescan;
|
||||
}
|
||||
|
||||
@@ -149,9 +149,9 @@ ziU32 ZiDAWGgetCHARattribute(zi8DawgCtx* context, ziU32 node, ziPtr __zi8_work_d
|
||||
}
|
||||
|
||||
attribute = key << 24;
|
||||
attribute |= ((ziU8*)context->p0C)[key] << 16;
|
||||
attribute |= (((ziU32)((ziU8*)context->p08)[key * 2] & 0xFFFF) << 8) +
|
||||
((ziU8*)context->p08 + key * 2)[1];
|
||||
attribute |= ((ziU8*)context->characterFlags)[key] << 16;
|
||||
attribute |= (((ziU32)((ziU8*)context->characters)[key * 2] & 0xFFFF) << 8) +
|
||||
((ziU8*)context->characters + key * 2)[1];
|
||||
Zi8LogError(0x64, __zi8_work_data);
|
||||
return attribute;
|
||||
}
|
||||
|
||||
@@ -74,17 +74,17 @@ ziBool Zi8IsWordW(ziWChar* word, ziU8 language ZI_NEED_WORK) {
|
||||
request.maxCandidates = 1;
|
||||
request.firstCandidate = 0;
|
||||
ZI_WORK->formats = (ziU32)formats;
|
||||
if (ZI_WORK->unk_0x1C[0] == 2) {
|
||||
if (ZI_WORK->searchModes[0] == 2) {
|
||||
ZI_WORK->formatCount = 0;
|
||||
if (ZI_WORK->unk_0x09 & 1) formats[ZI_WORK->formatCount++] = 1;
|
||||
if (ZI_WORK->unk_0x09 & 4) formats[ZI_WORK->formatCount++] = 2;
|
||||
if (ZI_WORK->unk_0x09 & 2) formats[ZI_WORK->formatCount++] = 3;
|
||||
if (ZI_WORK->unk_0x09 & 8) formats[ZI_WORK->formatCount++] = 4;
|
||||
if (ZI_WORK->unk_0x09 & 1) formats[ZI_WORK->formatCount++] = 5;
|
||||
if (ZI_WORK->unk_0x09 & 4) formats[ZI_WORK->formatCount++] = 6;
|
||||
if (ZI_WORK->unk_0x09 & 2) formats[ZI_WORK->formatCount++] = 7;
|
||||
if (ZI_WORK->unk_0x09 & 8) formats[ZI_WORK->formatCount++] = 8;
|
||||
} else if (ZI_WORK->unk_0x1C[0] != 0) ZI_WORK->formatCount = 2;
|
||||
if (ZI_WORK->dictionaryFlags & 1) formats[ZI_WORK->formatCount++] = 1;
|
||||
if (ZI_WORK->dictionaryFlags & 4) formats[ZI_WORK->formatCount++] = 2;
|
||||
if (ZI_WORK->dictionaryFlags & 2) formats[ZI_WORK->formatCount++] = 3;
|
||||
if (ZI_WORK->dictionaryFlags & 8) formats[ZI_WORK->formatCount++] = 4;
|
||||
if (ZI_WORK->dictionaryFlags & 1) formats[ZI_WORK->formatCount++] = 5;
|
||||
if (ZI_WORK->dictionaryFlags & 4) formats[ZI_WORK->formatCount++] = 6;
|
||||
if (ZI_WORK->dictionaryFlags & 2) formats[ZI_WORK->formatCount++] = 7;
|
||||
if (ZI_WORK->dictionaryFlags & 8) formats[ZI_WORK->formatCount++] = 8;
|
||||
} else if (ZI_WORK->searchModes[0] != 0) ZI_WORK->formatCount = 2;
|
||||
else ZI_WORK->formatCount = 1;
|
||||
count = Zi8GetCandidatesOrCount(&request, &search, __zi8_work_data);
|
||||
ZI_WORK->formats = savedFormats;
|
||||
|
||||
@@ -132,8 +132,8 @@ ziBool Zi8ChangeCharCase(ziBool upper, ziWChar* character, ziU8 language ZI_NEED
|
||||
Zi8LogError(0x64, ZI_WORK);
|
||||
if (ZI_WORK->userKeys[language] != 0) {
|
||||
customTables = (ziUserKeyMap*)ZI_WORK->userKeys[language];
|
||||
} else if (ZI_WORK->unk_0x11FC != 0) {
|
||||
customTables = (ziUserKeyMap*)ZI_WORK->unk_0x11FC;
|
||||
} else if (ZI_WORK->customKeyMap != 0) {
|
||||
customTables = (ziUserKeyMap*)ZI_WORK->customKeyMap;
|
||||
} else {
|
||||
tableCount = Zi8GetTableCount(language, 0x1e, ZI_WORK);
|
||||
if (tableCount != 0) {
|
||||
|
||||
@@ -68,8 +68,8 @@ ziBool Zi8PrepareMatch(ziGetParam* request, ziMatchParam* match, ziU8 skipMode Z
|
||||
buffers.component = (ziU8*)Zi8GetTableAddress(1,2,__zi8_work_data);
|
||||
buffers.componentIndex = (ziU8*)Zi8GetTableAddress(1,6,__zi8_work_data);
|
||||
buffers.componentIndex += (element - 0xef10) * 2;
|
||||
match->field22 = ((buffers.componentIndex[1] & 0x3f) << 8) + *buffers.componentIndex;
|
||||
buffers.component += (ziU32)match->field22 * 8;
|
||||
match->componentIndex = ((buffers.componentIndex[1] & 0x3f) << 8) + *buffers.componentIndex;
|
||||
buffers.component += (ziU32)match->componentIndex * 8;
|
||||
switch(*buffers.component & 0xf) {
|
||||
case 0:
|
||||
case 9:
|
||||
@@ -103,14 +103,14 @@ ziBool Zi8PrepareMatch(ziGetParam* request, ziMatchParam* match, ziU8 skipMode Z
|
||||
}
|
||||
for (index = 0; index < (buffers.component[5] >> 1) + 1; index++) {
|
||||
if (index < 4) {
|
||||
match->arrD[index] = buffers.component[index];
|
||||
match->arr1[index] = 0xff;
|
||||
match->recordValues[index] = buffers.component[index];
|
||||
match->recordMasks[index] = 0xff;
|
||||
}
|
||||
}
|
||||
if ((index != 0) && ((buffers.component[5] & 1) == 0)) {
|
||||
index--;
|
||||
match->arrD[index] &= 0xf0;
|
||||
match->arr1[index] &= 0xf0;
|
||||
match->recordValues[index] &= 0xf0;
|
||||
match->recordMasks[index] &= 0xf0;
|
||||
}
|
||||
nibbles = (ziU8)(buffers.component[5] + 1);
|
||||
if (8 < nibbles) {
|
||||
@@ -118,8 +118,8 @@ ziBool Zi8PrepareMatch(ziGetParam* request, ziMatchParam* match, ziU8 skipMode Z
|
||||
}
|
||||
}
|
||||
}
|
||||
match->arr1[0] &= 0xf;
|
||||
match->arrD[0] &= 0xf;
|
||||
match->recordMasks[0] &= 0xf;
|
||||
match->recordValues[0] &= 0xf;
|
||||
if (skipMode == '\0') {
|
||||
mode = 0;
|
||||
if ((request->subLanguage & 0x80) != 0 || (request->subLanguage & 0x40) != 0) {
|
||||
@@ -136,8 +136,8 @@ ziBool Zi8PrepareMatch(ziGetParam* request, ziMatchParam* match, ziU8 skipMode Z
|
||||
case 1:
|
||||
case 2:
|
||||
case 4:
|
||||
match->arr1[0] |= (ziU8)(mode << 4);
|
||||
match->arrD[0] |= (ziU8)(mode << 4);
|
||||
match->recordMasks[0] |= (ziU8)(mode << 4);
|
||||
match->recordValues[0] |= (ziU8)(mode << 4);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -146,8 +146,8 @@ ziBool Zi8PrepareMatch(ziGetParam* request, ziMatchParam* match, ziU8 skipMode Z
|
||||
}
|
||||
if (((request->getMode == '\0') || (request->getMode == '\x10')) ||
|
||||
(request->getMode == '\x05')) {
|
||||
Zi8Memcpy(buffers.masks,match->arr1,0xc);
|
||||
Zi8Memcpy(buffers.strokes,match->arrD,0xc);
|
||||
Zi8Memcpy(buffers.masks,match->recordMasks,0xc);
|
||||
Zi8Memcpy(buffers.strokes,match->recordValues,0xc);
|
||||
do {
|
||||
while (elementIndex < elementCount) {
|
||||
element = request->elements[elementIndex++];
|
||||
@@ -214,20 +214,20 @@ ziBool Zi8PrepareMatch(ziGetParam* request, ziMatchParam* match, ziU8 skipMode Z
|
||||
}
|
||||
}
|
||||
if (match->nSeg == 0) {
|
||||
Zi8Memcpy(match->arr1,buffers.masks,0xc);
|
||||
Zi8Memcpy(match->arrD,buffers.strokes,0xc);
|
||||
Zi8Memcpy(match->arr19,buffers.maskPrefix,4);
|
||||
Zi8Memcpy(match->arr1D,buffers.strokePrefix,4);
|
||||
Zi8Memcpy(match->recordMasks,buffers.masks,0xc);
|
||||
Zi8Memcpy(match->recordValues,buffers.strokes,0xc);
|
||||
Zi8Memcpy(match->prefixMasks,buffers.maskPrefix,4);
|
||||
Zi8Memcpy(match->prefixValues,buffers.strokePrefix,4);
|
||||
match->length = savedNibbles;
|
||||
}
|
||||
Zi8Memcpy((ziU8 (*)[12])match->segs1 + match->nSeg,buffers.masks,0xc);
|
||||
Zi8Memcpy((ziU8 (*)[12])match->segsD + match->nSeg,buffers.strokes,0xc);
|
||||
Zi8Memcpy((ziU8 (*)[12])match->segmentMasks + match->nSeg,buffers.masks,0xc);
|
||||
Zi8Memcpy((ziU8 (*)[12])match->segmentValues + match->nSeg,buffers.strokes,0xc);
|
||||
match->nSeg++;
|
||||
if (stroke != 0xff || elementIndex >= elementCount || match->nSeg >= 0x10) break;
|
||||
Zi8Memset(buffers.masks,0,0xc);
|
||||
Zi8Memset(buffers.strokes,0,0xc);
|
||||
buffers.masks[0] = match->arr1[0] & 0xf0;
|
||||
buffers.strokes[0] = match->arrD[0] & 0xf0;
|
||||
buffers.masks[0] = match->recordMasks[0] & 0xf0;
|
||||
buffers.strokes[0] = match->recordValues[0] & 0xf0;
|
||||
nibbles = 1;
|
||||
} while (1);
|
||||
return 1;
|
||||
|
||||
536
tools/decomp-assist/rx26.renames.md
Normal file
536
tools/decomp-assist/rx26.renames.md
Normal file
@@ -0,0 +1,536 @@
|
||||
# rx26 rename log
|
||||
|
||||
Baseline: `6b57fb49`. Branch: `agent/w1005/rx26`. Scope: eZiText C sources and their private headers.
|
||||
|
||||
The task explicitly assigns eZiText to rx26 and excludes it from rx22. That assignment takes precedence over the repeated eZiText wildcard in the generic protected-path list. No files outside eZiText are edited except this requested log.
|
||||
|
||||
The readability task requires renames with unchanged output. It supersedes the generic matching-round requirement to increase exact functions or try source-shape variants. Function names, types, order, sizes, expressions, comments, configuration and assembly stay unchanged. The existing C structs use camelCase members, so the replacements follow that convention.
|
||||
|
||||
## Acceptance checks
|
||||
|
||||
- Save the fresh baseline report and every source object before editing.
|
||||
- Compare all non-debug sections, relocations, symbols, function scores and report measures before and after.
|
||||
- Run pool_diff.py for all eZiText units against the baseline and retail objects.
|
||||
- Run the full, non-quick gate for all header consumers, including untouched eZiText units.
|
||||
- Require zero regressions, zero new forbidden/style findings, and DOL SHA1 `26116613f624061ba99c8d1a299aaa6efa85670d`.
|
||||
- Audit identifier tokens and protected paths, then commit each file group with one evidence line per rename.
|
||||
|
||||
## Evidence limits
|
||||
|
||||
All evidence comes from the current source. A 32-bit GCC layout probe confirmed the offsets of ZiAlphaWork, ZiChineseWork, ZiInfoWork and Zi8OneKeyWork; final MWCC object comparison remains the output authority. No public SDK identifier is claimed as an exact historical name.
|
||||
|
||||
The candidateStateWord/Byte and initializationWord names describe their reset sites only. No counter, flag, Korean-input or enumeration meaning is inferred. Existing arrays that span several sibling fields remain arrays. candidateBufferHead/candidateBufferTail are the unchanged two declarations of one output buffer; duplicateBuffer also overlaps the one-key phonetic workspace. searchModes[3] is the existing out-of-bounds spelling of ignoreCase and remains unchanged. No layout repair belongs in this round.
|
||||
|
||||
## Rename evidence
|
||||
|
||||
| Group | Identifier | Replacement | Evidence |
|
||||
| --- | --- | --- | --- |
|
||||
| workspace | `unk_0x28` | `reserved` | ziGetParam trailing word has no accesses in src, libs or include. |
|
||||
| workspace | `unk_0x0A` | `reserved` | zi8DawgRec two-byte alignment gap between key and back has no accesses. |
|
||||
| workspace | `unk_0x06` | `reserved` | zi8DawgCtx two-byte alignment gap between cap and the first pointer has no accesses. |
|
||||
| workspace | `p08` | `characters` | ZiDAWGgetCHARattribute reads two big-endian bytes per key into the low 16 character bits. |
|
||||
| workspace | `p0C` | `characterFlags` | ZiDAWGgetCHARattribute reads one byte per key and shifts it into attribute bits 16-23. |
|
||||
| workspace | `p14` | `keyCodes` | Zi8MatchROMdata0 reads a big-endian key code indexed by the character attribute. |
|
||||
| workspace | `unk_0x02` | `reservedAlignment` | Two-byte alignment gap before langEntries; no field or overlay access. |
|
||||
| workspace | `unk_0x08` | `initializationState` | Zi8InitializeDynamic sets this byte to 1; no more specific consumer is present. |
|
||||
| workspace | `unk_0x09` | `dictionaryFlags` | Zi8IsWordW tests bits 1/2/4/8 to select formats; same offset as ZiAlphaWork.dictionaryFlags. |
|
||||
| workspace | `unk_0x0B` | `reservedSettings` | No field or overlay access between maxWordLength and targetCount. |
|
||||
| workspace | `unk_0x10` | `maxCandidateCount` | Zi8GetCandidatesOrCount copies it into options.maxCount; initialized to 100. |
|
||||
| workspace | `unk_0x14` | `errorCode` | Same 32-bit-layout offset as ZiInfoWork.errorCode; error logging is stubbed in this release. |
|
||||
| workspace | `unk_0x19` | `reservedSubLanguage` | Alignment byte between subLanguage and separator; no field or overlay access. |
|
||||
| workspace | `unk_0x1C` | `searchModes` | Spans ZiAlphaWork.operation/context/caseMode and one-key spellingSearch; index 0 selects IsWordW search formats. |
|
||||
| workspace | `unk_0x20` | `duplicateCharacters` | Zi8Uni2Ptr compares the character against this cache; matches ZiChineseWork.duplicateCharacters. |
|
||||
| workspace | `unk_0xA0` | `duplicateOrdinalCache` | Zi8Uni2Ptr reads the matching ordinal; span also contains ZiChineseWork.duplicateIndex. |
|
||||
| workspace | `unk_0x124` | `zhUwdPointers` | Zi8GetZHuwdPtr selects a dictionary pointer and returns entries after its eight-byte header. |
|
||||
| workspace | `unk_0x128` | `reservedUwdPointer` | No named field, raw-offset or sibling-view access to this pointer slot. |
|
||||
| workspace | `unk_0x12D` | `zhPudCount` | Chinese candidate search saves pudCount, installs this count, then restores the prior count. |
|
||||
| workspace | `unk_0x12F` | `reservedUwdState` | No field or overlay access between uwdPrioritySort and uwdDicts. |
|
||||
| workspace | `unk_0x139` | `reservedUwdAlignment` | Three-byte alignment gap after uwdDictCount; no field or overlay access. |
|
||||
| workspace | `unk_0x13C` | `uwdSkipCount` | Zi8MatchUWDdata skips entries while visited is below this count; resets before a new scan. |
|
||||
| workspace | `unk_0x140` | `uwdContextEnabled` | Enables previous-word matching; cleared for absent, invalid or exhausted word context. |
|
||||
| workspace | `unk_0x141` | `uwdContextRecord` | Zi8MatchUWDdata writes size, language, length and encoded previous-word text, then compares that record. |
|
||||
| workspace | `unk_0x184` | `uwdContextAlternateCase` | Stores case-converted text at context-record offsets for the alternate-case comparison. |
|
||||
| workspace | `unk_0x30D` | `reservedPudAlignment` | Three-byte alignment gap after pudCount; no field or overlay access. |
|
||||
| workspace | `unk_0x310` | `pudWordAddress` | Zi8MatchPUDdata uses it as the word cursor and advances it by entrySize. |
|
||||
| workspace | `unk_0x314` | `pudWordCount` | Loaded from the PUD section count and bounds the word scan. |
|
||||
| workspace | `unk_0x318` | `pudWordIndex` | Incremented for each PUD word and compared with the section word count. |
|
||||
| workspace | `unk_0x31D` | `reservedPudState` | No field or overlay access after pdRemoveOpt. |
|
||||
| workspace | `unk_0x31E` | `pudStopAtSpace` | Allows a word boundary match and stops copied PUD text at a space. |
|
||||
| workspace | `unk_0x31F` | `reservedOemAlignment` | Alignment byte before oemMatch; no field or overlay access. |
|
||||
| workspace | `unk_0x326` | `reservedOemLengthAlignment` | Two-byte alignment gap after oemLen; no field or overlay access. |
|
||||
| workspace | `unk_0x330` | `reservedOemState` | Eight bytes after oemData have no field or overlay accesses. |
|
||||
| workspace | `unk_0x338` | `candidateBufferHead` | Zi8AlphaSignature and Zi8GetCandidatesOrCount cast its address to the internal wide-character output buffer. |
|
||||
| workspace | `unk_0x33C` | `candidateBufferTail` | Continues the 0x200-byte buffer starting at candidateBufferHead; options.capacity is 0x100 wide characters. |
|
||||
| workspace | `unk_0x539` | `duplicateCount` | Zi8IsDupWChar and Zi8IsDupWordW count entries; Zi8InitDupWordBuf resets it. |
|
||||
| workspace | `unk_0x53A` | `duplicateWordOrder` | Zi8IsDupWordW indexes slots through this array and moves the reused slot to the end. |
|
||||
| workspace | `unk_0x57A` | `duplicateBuffer` | Zi8IsDupWChar stores character history; Zi8IsDupWordW treats the same buffer as 21-character slots. |
|
||||
| workspace | `unk_0x11FC` | `customKeyMap` | Zi8ChangeCharCase casts this pointer to ziUserKeyMap for custom upper/lower key tables. |
|
||||
| workspace | `unk_0x140C` | `wordLengthSettings` | First byte truncates output when elementCount is below it; overlaps ZiAlphaWork.exactLengthThreshold and dictionaryLimits. |
|
||||
| workspace | `unk_0x1414` | `dictionaryCountStorage` | Four bytes overlap ZiAlphaWork.dictionaryCounts, the pointer receiving per-dictionary candidate counts. |
|
||||
| workspace | `unk_0x1419` | `reservedFormatAlignment` | Unaccessed alignment byte before capacity; sibling dictionaryModes is also unaccessed. |
|
||||
| workspace | `unk_0x1420` | `reservedDawgAlignment` | Four bytes before dawgCtx have no field or overlay access. |
|
||||
| workspace | `unk_0x1760` | `dawgSearchState` | Passed as Zi8MatchROMdata0 search; bytes 0 and 1 hold exact-length mode and minimum traversal depth. |
|
||||
| workspace | `unk_0x1768` | `dawgGroupIndex` | Passed as groupIndex to Zi8MatchROMdata1 and advanced after each matched segment. |
|
||||
| workspace | `unk_0x1769` | `reservedDawgStorage` | No field or overlay access between dawgGroupIndex and matchOffset. |
|
||||
| workspace | `unk_0x17EC` | `dawgFallbackUsed` | Set on the single-character fallback; prevents subsequent continuation of that fallback. |
|
||||
| workspace | `unk_0x17ED` | `reservedDawgGroupAlignment` | Three-byte alignment gap before dawgGroup; no field or overlay access. |
|
||||
| workspace | `unk_0x17F4` | `dawgWord` | Zi8MatchROMdata2 writes matched word segments here, then copies them to output. |
|
||||
| workspace | `unk_0x1874` | `letterHyphen` | Initialized to 0x2D; same offset as ZiAlphaWork.letterHyphen, used in hyphen handling. |
|
||||
| workspace | `unk_0x1876` | `prefixLength` | Same offset as ZiAlphaWork.prefixLength, saved when the highlighted word reaches requiredLength. |
|
||||
| workspace | `unk_0x1877` | `prefixEnabled` | Same offset as ZiAlphaWork.prefixEnabled, tested before retaining a required-length prefix. |
|
||||
| workspace | `unk_0x1878` | `requiredLength` | Same offset as ZiAlphaWork.requiredLength, compared against highlighted and candidate word lengths. |
|
||||
| workspace | `unk_0x1879` | `highlightedLanguage` | Same offset as ZiAlphaWork.highlightedLanguage, set by successful highlighted-word lookup. |
|
||||
| workspace | `unk_0x187A` | `highlightedWord` | Same offset as ZiAlphaWork.highlightedWord, copied by Zi8SetHighlightedWordW. |
|
||||
| workspace | `unk_0x18FC` | `suffixMode` | Same offset as ZiAlphaWork.suffixMode, selects prefix-plus-suffix search. |
|
||||
| workspace | `unk_0x18FD` | `suffixState` | Same offset as ZiAlphaWork.suffixState; the sibling field is not interpreted in this source. |
|
||||
| workspace | `unk_0x18FE` | `prefix` | Same offset as ZiAlphaWork.prefix, stores the retained prefix characters. |
|
||||
| workspace | `unk_0x1980` | `prefixCount` | Same offset as ZiAlphaWork.prefixCount, bounds prefix copy and suffix slicing. |
|
||||
| workspace | `unk_0x1981` | `previousPrefixCount` | Same offset as ZiAlphaWork.previousPrefixCount, stores the prior prefixElementCount during candidate updates. |
|
||||
| workspace | `unk_0x1982` | `prefixElementCount` | Same offset as ZiAlphaWork.prefixElementCount, compared with request elementCount during prefix updates. |
|
||||
| workspace | `unk_0x1983` | `wordLanguage` | Same offset as ZiAlphaWork.language, used for retained-prefix and suffix dictionary lookups; distinct from workspace.language. |
|
||||
| workspace | `unk_0x1984` | `suffixLocked` | Same offset as ZiAlphaWork.suffixLocked, controls whether retained suffix state can change. |
|
||||
| workspace | `unk_0x1985` | `previousSuffixCount` | Same offset as ZiAlphaWork.previousSuffixCount, saves the previous suffixElementCount. |
|
||||
| workspace | `unk_0x1986` | `suffixElementCount` | Same offset as ZiAlphaWork.suffixElementCount, tracks the request length for the suffix state. |
|
||||
| workspace | `unk_0x1987` | `suffixStatus` | Same offset as ZiAlphaWork.suffixStatus; the sibling field is not interpreted in this source. |
|
||||
| workspace | `unk_0x1988` | `suffix` | Same offset as ZiAlphaWork.suffix, receives the highlighted word after prefixCount. |
|
||||
| workspace | `unk_0x1A0A` | `suffixCount` | Same offset as ZiAlphaWork.suffixCount, number of retained suffix characters. |
|
||||
| workspace | `unk_0x1A0B` | `alternatePrefixState` | Span contains ZiAlphaWork.usePrefixAsElements, alternatePrefix and alternatePrefixCount; kept as one array. |
|
||||
| workspace | `unk_0x1A90` | `singleCharacter` | Same offset as ZiAlphaWork.singleCharacter, receives a one-character highlighted word. |
|
||||
| workspace | `unk_0x1A92` | `rememberedWord` | Same offset as ZiAlphaWork.rememberedWord, copied when highlighted length equals rememberedCount. |
|
||||
| workspace | `unk_0x1B14` | `rememberedCount` | Same offset as ZiAlphaWork.rememberedCount, used to match the remembered word length. |
|
||||
| workspace | `unk_0x1B15` | `wordSearchState` | Span contains ZiAlphaWork.reuseHighlightedWord and wordState, also Zi8OneKeyWork.spellingOnly. |
|
||||
| workspace | `unk_0x1B25` | `reservedUnicodeAlignment` | Three-byte alignment gap after unicodeMapSubLang; no field or overlay access. |
|
||||
| workspace | `unk_0x1B2C` | `zyFuzzy` | Zi8ZHsetZYfuzzyPairs writes this union; Chinese matching reads ziFuzzyZYPairs bits from it, beside pyFuzzy. |
|
||||
| workspace | `unk_0x1B31` | `reservedKoreanAlignment` | Alignment byte after koAltTables; no field or overlay access. |
|
||||
| workspace | `unk_0x1B32` | `candidateStateWordA` | Cleared by both Zi8GetCandidates and Zi8InitializeDynamic; no interpreted consumer is present. |
|
||||
| workspace | `unk_0x1B34` | `candidateStateWordB` | Cleared by both Zi8GetCandidates and Zi8InitializeDynamic; no interpreted consumer is present. |
|
||||
| workspace | `unk_0x1B36` | `candidateStateWordC` | Cleared by both Zi8GetCandidates and Zi8InitializeDynamic; no interpreted consumer is present. |
|
||||
| workspace | `unk_0x1B38` | `initializationWordA` | Cleared only by Zi8InitializeDynamic; no interpreted consumer is present. |
|
||||
| workspace | `unk_0x1B3A` | `candidateStateByteA` | Cleared on candidate entry and initialization; no interpreted consumer is present. |
|
||||
| workspace | `unk_0x1B3B` | `candidateStateByteB` | Cleared on candidate entry and initialization; no interpreted consumer is present. |
|
||||
| workspace | `unk_0x1B3C` | `candidateStateByteC` | Cleared on candidate entry and initialization; no interpreted consumer is present. |
|
||||
| workspace | `unk_0x1B3D` | `candidateStateByteD` | Cleared by Zi8GetCandidates; no interpreted consumer is present. |
|
||||
| workspace | `unk_0x1B3E` | `reservedCandidateStateA` | No field, raw-offset or sibling-view access to this byte. |
|
||||
| workspace | `unk_0x1B3F` | `reservedCandidateStateB` | No field, raw-offset or sibling-view access to this byte. |
|
||||
| workspace | `unk_0x1B40` | `initializationWordB` | Cleared only by Zi8InitializeDynamic; no interpreted consumer is present. |
|
||||
| workspace | `unk_0x1B42` | `reservedTail` | Trailing alignment bytes; no field or overlay access. |
|
||||
| match record | `arr1` | `recordMasks` | Zi8SecMatchChar tests data bytes masked by this array against recordValues; also used for Cangjie records. |
|
||||
| match record | `arrD` | `recordValues` | Compared with dictionary bytes masked by recordMasks; Zi8PrepareMatch copies encoded strokes here. |
|
||||
| match record | `arr19` | `prefixMasks` | Zi8PrepareMatch copies its four maskPrefix bytes here; passed as masks to Zi8ExactMatchNextChar. |
|
||||
| match record | `arr1D` | `prefixValues` | Zi8PrepareMatch copies its four strokePrefix bytes here; compared with the masked record prefix. |
|
||||
| match record | `field22` | `componentIndex` | Zi8PrepareMatch decodes the component-table index here and multiplies it by the eight-byte record size. |
|
||||
| match record | `segs1` | `segmentMasks` | Zi8PrepareMatch copies each segment mask; Chinese matching applies it to each segment record. |
|
||||
| match record | `segsD` | `segmentValues` | Zi8PrepareMatch copies each segment stroke encoding; compared with masked segment records. |
|
||||
|
||||
## Workspace checkpoint
|
||||
|
||||
96 header identifiers renamed, with every use updated in 14 C files. All 1,027 full object files and all 1,027 report units are identical to the fresh baseline. Identifier-only comparison passed across all 47 eZiText C/header files. The quick gate passed for all 31 eZiText units with zero regressions, forbidden patterns or readability warnings. Full clean validation follows after the remaining local renames.
|
||||
|
||||
## Local rename evidence
|
||||
|
||||
| Identifier | Replacement | Evidence |
|
||||
| --- | --- | --- |
|
||||
| `value0` | `firstByteValue` | Expected value of record byte 0 after applying its mask in the character/component matchers. |
|
||||
| `mask0` | `firstByteMask` | Mask applied to record byte 0 before comparison with its expected value. |
|
||||
| `value1` | `secondByteValue` | Expected value of record byte 1 after applying its mask in the character/component matchers. |
|
||||
| `mask1` | `secondByteMask` | Mask applied to record byte 1 before comparison with its expected value. |
|
||||
| `value2` | `thirdByteValue` | Expected value of record byte 2 after applying its mask in the character/component matchers. |
|
||||
| `mask2` | `thirdByteMask` | Mask applied to record byte 2 before comparison with its expected value. |
|
||||
| `value3` | `fourthByteValue` | Expected value of record byte 3 after applying its mask in the character/component matchers. |
|
||||
| `mask3` | `fourthByteMask` | Mask applied to record byte 3 before comparison with its expected value. |
|
||||
| `unknown_04` | `recordData` | Uninterpreted middle bytes of Zi8PhraseRecord; the type has no member accesses, so no phonetic or component semantics are claimed. |
|
||||
| `unknown_02` | `dictionaryOptions` | Bytes 2-11 of Zi8OneKeyOptions span lookup/dictionary modes, dictionary pointer and flags in sibling options records. |
|
||||
| `unknown_00` | `engineSettings` | Zi8OneKeyWork prefix spans the shared engine settings through errorCode; passed to engine calls as part of work. |
|
||||
| `unknown_17` | `inputSettings` | Same offsets as zhPudMinPrefix, subLanguage, separator and the first search-mode byte. |
|
||||
| `unknown_1e` | `caseMode` | Same offset as ZiAlphaWork.caseMode in the shared workspace. |
|
||||
| `unknown_20` | `candidateWorkspace` | Shared range contains duplicate caches, user/PUD/OEM search state and candidate buffers; retained as one array. |
|
||||
| `unknown_11fb` | `keyTableStorage` | Shared range spans the phonetic-filter tail, customKeyMap, userKeys and dictionary metadata. |
|
||||
| `unknown_1414` | `dictionaryCountStorage` | Same offset as ZiAlphaWork.dictionaryCounts and the renamed shared workspace storage. |
|
||||
| `unknown_1419` | `wordSearchWorkspace` | Shared range spans capacity, DAWG context and prefix/suffix state up to the spellingOnly byte. |
|
||||
| `arg0` | `entriesAddress` | Zi8GetZHuwdPtr returns the selected dictionary address plus its eight-byte header. |
|
||||
| `arg1` | `entryCount` | Zi8GetZHuwdPtr returns the dictionary payload length divided by the three-byte entry size. |
|
||||
|
||||
## Counts and scope audit
|
||||
|
||||
Counts are identifier-token occurrences, including declarations and uses. The scan includes the task patterns plus `unknown_*`, `argN`, offset-shaped `arrN`/`pNN`, and `segs1`/`segsD`. It excludes legitimate padding names and every function name.
|
||||
|
||||
| File under eZiText | Occurrences before -> after | Distinct spellings before -> after |
|
||||
| --- | ---: | ---: |
|
||||
| `include/zi8clib/zitypes.h` | 96 -> 0 | 96 -> 0 |
|
||||
| `src/clib/zi81key.c` | 9 -> 0 | 9 -> 0 |
|
||||
| `src/clib/zi8ZHuwd.c` | 9 -> 0 | 3 -> 0 |
|
||||
| `src/clib/zi8cgetc.c` | 277 -> 0 | 13 -> 0 |
|
||||
| `src/clib/zi8dawg.c` | 24 -> 0 | 7 -> 0 |
|
||||
| `src/clib/zi8getc.c` | 7 -> 0 | 7 -> 0 |
|
||||
| `src/clib/zi8getc2.c` | 35 -> 0 | 7 -> 0 |
|
||||
| `src/clib/zi8initd.c` | 16 -> 0 | 14 -> 0 |
|
||||
| `src/clib/zi8match.c` | 30 -> 0 | 7 -> 0 |
|
||||
| `src/clib/zi8misc.c` | 2 -> 0 | 2 -> 0 |
|
||||
| `src/clib/zi8pud2.c` | 18 -> 0 | 4 -> 0 |
|
||||
| `src/clib/zi8uwd.c` | 24 -> 0 | 4 -> 0 |
|
||||
| `src/clib/zidawg1.c` | 3 -> 0 | 2 -> 0 |
|
||||
| `src/clib/ziswordw.c` | 10 -> 0 | 2 -> 0 |
|
||||
| `src/clib/zmtkey.c` | 2 -> 0 | 1 -> 0 |
|
||||
| `src/clib/zprepare.c` | 20 -> 0 | 7 -> 0 |
|
||||
|
||||
Total: 582 -> 0 placeholder occurrences. The 115 recorded identifier substitutions include four associated mask-parameter names outside that count. Identifier-only comparison passes for all 47 C/header files. Every non-identifier byte, including comments and literal strings, is unchanged.
|
||||
|
||||
Searches across `src`, `libs` and `include` found no consumers of the private eZiText types outside eZiText. Identical spellings elsewhere belong to unrelated records or parameters; those files are unchanged. The changed-path audit permits only 16 owned code files and this log.
|
||||
|
||||
## Final verification
|
||||
|
||||
- Full gate command: `python3 /mnt/drive2/projects/wii-ipl-workers/_restore0928-tools/gate.py <all 31 eZiText units below>`. No `--quick` flag. Result: `GATE PASS`.
|
||||
- Full 4.3U build passed; DOL SHA1 is `26116613f624061ba99c8d1a299aaa6efa85670d`. A subsequent `ninja build/43U/report.json build/43U/ok` reported no work to do.
|
||||
- All 1,027 source object files are byte-identical to their freshly built pre-edit copies, including metadata. Every report unit, function score, section score and global measure is identical.
|
||||
- All 31 eZiText pools passed `pool_diff.py` against both retail and saved baseline objects: 62 checks, zero failures. Full-object equality also preserves pool offsets.
|
||||
- Focused `ctxdiff.py` checks passed with `diffs 0` for one exact function in each of 14 directly edited units. The remaining edited unit, zprepare, has no exact baseline function; its full object remains byte-identical.
|
||||
- All 31 eZiText units retain instruction-exact functions 127/149 -> 127/149, objdiff matched code 71,196/159,704 -> 71,196/159,704 bytes, and matched data 7,132/7,240 -> 7,132/7,240 bytes. Linked code remains 37,148 bytes and linked data remains 3,164 bytes.
|
||||
- The source-token audit permits only the 115 recorded identifier substitutions. No function name, declaration order, type, layout, literal, expression, comment or non-identifier byte changed. All 47 C/header files were checked.
|
||||
- No protected path was edited. No pushes, PRs, branch changes, rebase or cross-worktree writes occurred.
|
||||
|
||||
## Existing non-matching functions
|
||||
|
||||
These mismatches already exist in the saved baseline. Every listed function keeps its exact previous object bytes and objdiff score; this rename round does not investigate or change the underlying code generation.
|
||||
|
||||
| Unit | Function | Objdiff percent before = after | Reason retained |
|
||||
| --- | --- | ---: | --- |
|
||||
| `zi81key` | `Zi8SpellingZY` | 99.756096 | Baseline code-generation mismatch; full object unchanged. |
|
||||
| `zi81key` | `Zi8SpellingPY` | 99.36306 | Baseline code-generation mismatch; full object unchanged. |
|
||||
| `zi81key` | `Zi8Get1KeyPressSpelling` | 99.555885 | Baseline code-generation mismatch; full object unchanged. |
|
||||
| `zi81key` | `Zi8Get1KeyPressCandidates` | 96.41927 | Baseline code-generation mismatch; full object unchanged. |
|
||||
| `zi8alpha` | `Zi8AlphaGetCandidates` | 95.648506 | Baseline code-generation mismatch; full object unchanged. |
|
||||
| `zi8cgetc` | `ZiMatchZHSpelling` | 98.80165 | Baseline code-generation mismatch; full object unchanged. |
|
||||
| `zi8cgetc` | `zi8InternalGetZH` | 98.336266 | Baseline code-generation mismatch; full object unchanged. |
|
||||
| `zi8cgetc` | `Zi8GetElementCount` | 99.347824 | Baseline code-generation mismatch; full object unchanged. |
|
||||
| `zi8getc2` | `Zi8GetDataSignature` | 99.347824 | Baseline code-generation mismatch; full object unchanged. |
|
||||
| `zi8getc2` | `Zi8IsDupWChar` | 99.36508 | Baseline code-generation mismatch; full object unchanged. |
|
||||
| `zi8match` | `Zi8GetPyFinal` | 99.245285 | Baseline code-generation mismatch; full object unchanged. |
|
||||
| `zi8uwd` | `Zi8_81480224` | 99.52586 | Baseline code-generation mismatch; full object unchanged. |
|
||||
| `zidawg1` | `ZiDAWGgetCHARattribute` | 99.0 | Baseline code-generation mismatch; full object unchanged. |
|
||||
| `zkokeyp` | `Zi8_8148302C` | 99.49152 | Baseline code-generation mismatch; full object unchanged. |
|
||||
| `zkokeyp` | `Zi8_81483264` | 98.902435 | Baseline code-generation mismatch; full object unchanged. |
|
||||
| `zkokeyp` | `Zi8_81483308` | 99.13793 | Baseline code-generation mismatch; full object unchanged. |
|
||||
| `zkokeyp` | `Zi8_814833F0` | 99.04256 | Baseline code-generation mismatch; full object unchanged. |
|
||||
| `zkokeyp` | `Zi8_814834AC` | 99.65015 | Baseline code-generation mismatch; full object unchanged. |
|
||||
| `zkokeyp` | `Zi8GetKOcandidates` | 98.87145 | Baseline code-generation mismatch; full object unchanged. |
|
||||
| `zmtkey` | `Zi8getKeyLayout` | 99.53297 | Baseline code-generation mismatch; full object unchanged. |
|
||||
| `zoemdata` | `Zi8MatchOEMdata` | 98.645836 | Baseline code-generation mismatch; full object unchanged. |
|
||||
| `zprepare` | `Zi8PrepareMatch` | 96.99468 | Baseline code-generation mismatch; full object unchanged. |
|
||||
|
||||
## Focused instruction checks
|
||||
|
||||
```text
|
||||
libs/RVLMiddleware/eZiText/src/clib/zi81key Zi8IsMatch1Key
|
||||
src 0x184 base 0x184 insns 97/97
|
||||
diffs 0: []
|
||||
libs/RVLMiddleware/eZiText/src/clib/zi8ZHuwd Zi8GetZHuwdPtr
|
||||
src 0xe0 base 0xe0 insns 56/56
|
||||
diffs 0: []
|
||||
libs/RVLMiddleware/eZiText/src/clib/zi8cgetc Zi8SetFindCand
|
||||
src 0xc8 base 0xc8 insns 50/50
|
||||
diffs 0: []
|
||||
libs/RVLMiddleware/eZiText/src/clib/zi8dawg Zi8MatchROMdata0
|
||||
src 0x828 base 0x828 insns 522/522
|
||||
diffs 0: []
|
||||
libs/RVLMiddleware/eZiText/src/clib/zi8getc Zi8GetCandidates
|
||||
src 0x70 base 0x70 insns 28/28
|
||||
diffs 0: []
|
||||
libs/RVLMiddleware/eZiText/src/clib/zi8getc2 Zi8ZHsetPYfuzzyPairs
|
||||
src 0x2c base 0x2c insns 11/11
|
||||
diffs 0: []
|
||||
libs/RVLMiddleware/eZiText/src/clib/zi8initd Zi8InitializeDynamic
|
||||
src 0x200 base 0x200 insns 128/128
|
||||
diffs 0: []
|
||||
libs/RVLMiddleware/eZiText/src/clib/zi8match Zi8PriMatchNextChar
|
||||
src 0x128 base 0x128 insns 74/74
|
||||
diffs 0: []
|
||||
libs/RVLMiddleware/eZiText/src/clib/zi8misc Zi8Uni2Ptr
|
||||
src 0x460 base 0x460 insns 280/280
|
||||
diffs 0: []
|
||||
libs/RVLMiddleware/eZiText/src/clib/zi8pud2 ZiIsPhoneticChar
|
||||
src 0x40 base 0x40 insns 16/16
|
||||
diffs 0: []
|
||||
libs/RVLMiddleware/eZiText/src/clib/zi8uwd Zi8_814803F4
|
||||
src 0x88 base 0x88 insns 34/34
|
||||
diffs 0: []
|
||||
libs/RVLMiddleware/eZiText/src/clib/zidawg1 ZiDAWGGetChild
|
||||
src 0x110 base 0x110 insns 68/68
|
||||
diffs 0: []
|
||||
libs/RVLMiddleware/eZiText/src/clib/ziswordw Zi8IsWordW
|
||||
src 0x680 base 0x680 insns 416/416
|
||||
diffs 0: []
|
||||
libs/RVLMiddleware/eZiText/src/clib/zmtkey Zi8MapKeyCode
|
||||
src 0x80 base 0x80 insns 32/32
|
||||
diffs 0: []
|
||||
```
|
||||
|
||||
## Final full gate output
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/eZiText/src/rvl/eztx] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/rvl/eztx] objdiff: code 168/168 data 88/88 functions 7/7 fuzzy 100.0000 linked code 168
|
||||
[libs/RVLMiddleware/eZiText/src/rvl/eztx] instruction-exact functions: 7/7
|
||||
[libs/RVLMiddleware/eZiText/src/rvl/eztx] section .data size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/rvl/eztx] section .rodata size 80 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/rvl/eztx] section .text size 168 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/rvl/eztx] baseline: code 168/168 data 88 functions 7 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zaddress] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zaddress] objdiff: code 1244/1244 data 140/140 functions 7/7 fuzzy 100.0000 linked code 1244
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zaddress] instruction-exact functions: 7/7
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zaddress] section .text size 1244 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zaddress] section extab size 56 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zaddress] section extabindex size 84 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zaddress] baseline: code 1244/1244 data 140 functions 7 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zconvert] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zconvert] objdiff: code 2208/2208 data 112/112 functions 4/4 fuzzy 100.0000 linked code 2208
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zconvert] instruction-exact functions: 4/4
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zconvert] section .rodata size 32 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zconvert] section .text size 2208 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zconvert] section extab size 32 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zconvert] section extabindex size 48 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zconvert] baseline: code 2208/2208 data 112 functions 4 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi81key] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi81key] objdiff: code 3952/21460 data 1280/1388 functions 5/9 fuzzy 98.2352 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi81key] instruction-exact functions: 5/9
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi81key] section .data size 48 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi81key] section .rodata size 1152 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi81key] section .sdata2 size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi81key] section .text size 21460 match 98.23523
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi81key] section extab size 72 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi81key] section extabindex size 108 match 98.14815
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi81key] below 100: Zi8SpellingZY 99.756096
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi81key] below 100: Zi8SpellingPY 99.36306
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi81key] below 100: Zi8Get1KeyPressSpelling 99.555885
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi81key] below 100: Zi8Get1KeyPressCandidates 96.41927
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi81key] baseline: code 3952/21460 data 1280 functions 5 fuzzy 98.2352
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8alpha] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8alpha] objdiff: code 5880/21664 data 564/564 functions 11/12 fuzzy 96.8296 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8alpha] instruction-exact functions: 11/12
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8alpha] section .data size 48 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8alpha] section .rodata size 336 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8alpha] section .text size 21664 match 96.82958
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8alpha] section extab size 72 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8alpha] section extabindex size 108 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8alpha] below 100: Zi8AlphaGetCandidates 95.648506
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8alpha] baseline: code 5880/21664 data 564 functions 11 fuzzy 96.8296
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8alts] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8alts] objdiff: code 1200/1200 data 20/20 functions 1/1 fuzzy 100.0000 linked code 1200
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8alts] instruction-exact functions: 1/1
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8alts] section .text size 1200 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8alts] section extab size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8alts] section extabindex size 12 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8alts] baseline: code 1200/1200 data 20 functions 1 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] objdiff: code 4168/47816 data 536/536 functions 5/8 fuzzy 98.4957 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] instruction-exact functions: 5/8
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section .data size 392 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section .sbss2 size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section .sdata2 size 16 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section .text size 47816 match 98.495735
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section extab size 48 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section extabindex size 72 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] below 100: ZiMatchZHSpelling 98.80165
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] below 100: zi8InternalGetZH 98.336266
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] below 100: Zi8GetElementCount 99.347824
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] baseline: code 4168/47816 data 536 functions 5 fuzzy 98.4957
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cinfo] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cinfo] objdiff: code 10948/10948 data 1848/1848 functions 10/10 fuzzy 100.0000 linked code 10948
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cinfo] instruction-exact functions: 10/10
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cinfo] section .data size 1616 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cinfo] section .rodata size 32 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cinfo] section .text size 10948 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cinfo] section extab size 80 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cinfo] section extabindex size 120 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cinfo] baseline: code 10948/10948 data 1848 functions 10 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8copy] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8copy] objdiff: code 388/388 data 40/40 functions 2/2 fuzzy 100.0000 linked code 388
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8copy] instruction-exact functions: 2/2
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8copy] section .text size 388 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8copy] section extab size 16 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8copy] section extabindex size 24 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8copy] baseline: code 388/388 data 40 functions 2 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] objdiff: code 4868/4868 data 120/120 functions 6/6 fuzzy 100.0000 linked code 4868
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] instruction-exact functions: 6/6
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] section .text size 4868 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] section extab size 48 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] section extabindex size 72 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] baseline: code 4868/4868 data 120 functions 6 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc] objdiff: code 112/112 data 20/20 functions 1/1 fuzzy 100.0000 linked code 112
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc] instruction-exact functions: 1/1
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc] section .text size 112 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc] section extab size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc] section extabindex size 12 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc] baseline: code 112/112 data 20 functions 1 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] objdiff: code 6360/6888 data 332/332 functions 15/17 fuzzy 99.9506 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] instruction-exact functions: 15/17
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .data size 80 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .rodata size 16 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .sbss2 size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .sdata2 size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .text size 6888 match 99.95064
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section extab size 88 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section extabindex size 132 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] below 100: Zi8GetDataSignature 99.347824
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] below 100: Zi8IsDupWChar 99.36508
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] baseline: code 6360/6888 data 332 functions 15 fuzzy 99.9506
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getSW] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getSW] objdiff: code 1852/1852 data 20/20 functions 1/1 fuzzy 100.0000 linked code 1852
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getSW] instruction-exact functions: 1/1
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getSW] section .text size 1852 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getSW] section extab size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getSW] section extabindex size 12 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getSW] baseline: code 1852/1852 data 20 functions 1 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8initd] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8initd] objdiff: code 704/704 data 20/20 functions 2/2 fuzzy 100.0000 linked code 704
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8initd] instruction-exact functions: 2/2
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8initd] section .text size 704 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8initd] section extab size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8initd] section extabindex size 12 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8initd] baseline: code 704/704 data 20 functions 2 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8is] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8is] objdiff: code 1136/1136 data 40/40 functions 3/3 fuzzy 100.0000 linked code 1136
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8is] instruction-exact functions: 3/3
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8is] section .text size 1136 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8is] section extab size 16 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8is] section extabindex size 24 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8is] baseline: code 1136/1136 data 40 functions 3 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] objdiff: code 8044/8256 data 728/728 functions 9/10 fuzzy 99.9806 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] instruction-exact functions: 9/10
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] section .rodata size 528 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] section .text size 8256 match 99.98062
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] section extab size 80 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] section extabindex size 120 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] below 100: Zi8GetPyFinal 99.245285
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] baseline: code 8044/8256 data 728 functions 9 fuzzy 99.9806
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8misc] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8misc] objdiff: code 1636/1636 data 80/80 functions 4/4 fuzzy 100.0000 linked code 1636
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8misc] instruction-exact functions: 4/4
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8misc] section .text size 1636 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8misc] section extab size 32 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8misc] section extabindex size 48 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8misc] baseline: code 1636/1636 data 80 functions 4 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] objdiff: code 2136/2136 data 120/120 functions 7/7 fuzzy 100.0000 linked code 2136
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] instruction-exact functions: 7/7
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] section .text size 2136 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] section extab size 48 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] section extabindex size 72 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] baseline: code 2136/2136 data 120 functions 7 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/eZiText/src/clib/Zi8punct] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/Zi8punct] objdiff: code 300/300 data 100/100 functions 1/1 fuzzy 100.0000 linked code 300
|
||||
[libs/RVLMiddleware/eZiText/src/clib/Zi8punct] instruction-exact functions: 1/1
|
||||
[libs/RVLMiddleware/eZiText/src/clib/Zi8punct] section .rodata size 80 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/Zi8punct] section .text size 300 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/Zi8punct] section extab size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/Zi8punct] section extabindex size 12 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/Zi8punct] baseline: code 300/300 data 100 functions 1 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8space] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8space] objdiff: code 776/776 data 20/20 functions 1/1 fuzzy 100.0000 linked code 776
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8space] instruction-exact functions: 1/1
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8space] section .text size 776 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8space] section extab size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8space] section extabindex size 12 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8space] baseline: code 776/776 data 20 functions 1 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] objdiff: code 2192/2656 data 80/80 functions 3/4 fuzzy 99.9172 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] instruction-exact functions: 3/4
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] section .text size 2656 match 99.91717
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] section extab size 32 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] section extabindex size 48 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] below 100: Zi8_81480224 99.52586
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] baseline: code 2192/2656 data 80 functions 3 fuzzy 99.9172
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8ver] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8ver] objdiff: code 24/24 data None/None functions 3/3 fuzzy 100.0000 linked code 24
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8ver] instruction-exact functions: 3/3
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8ver] section .text size 24 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8ver] baseline: code 24/24 data None functions 3 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8ZHuwd] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8ZHuwd] objdiff: code 224/224 data 20/20 functions 1/1 fuzzy 100.0000 linked code 224
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8ZHuwd] instruction-exact functions: 1/1
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8ZHuwd] section .text size 224 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8ZHuwd] section extab size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8ZHuwd] section extabindex size 12 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8ZHuwd] baseline: code 224/224 data 20 functions 1 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] objdiff: code 1424/1664 data 80/80 functions 5/6 fuzzy 99.8558 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] instruction-exact functions: 5/6
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] section .text size 1664 match 99.85577
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] section extab size 32 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] section extabindex size 48 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] below 100: ZiDAWGgetCHARattribute 99.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] baseline: code 1424/1664 data 80 functions 5 fuzzy 99.8558
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] objdiff: code 5188/5188 data 308/308 functions 3/3 fuzzy 100.0000 linked code 5188
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] instruction-exact functions: 3/3
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section .data size 248 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section .text size 5188 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section extab size 24 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section extabindex size 36 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] baseline: code 5188/5188 data 308 functions 3 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] objdiff: code 2028/2028 data 48/48 functions 2/2 fuzzy 100.0000 linked code 2028
|
||||
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] instruction-exact functions: 2/2
|
||||
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] section .sdata2 size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] section .text size 2028 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] section extab size 16 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] section extabindex size 24 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] baseline: code 2028/2028 data 48 functions 2 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] objdiff: code 332/5200 data 180/180 functions 1/7 fuzzy 99.1962 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] instruction-exact functions: 1/7
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section .data size 40 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section .text size 5200 match 99.19615
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extab size 56 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extabindex size 84 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_8148302C 99.49152
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483264 98.902435
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483308 99.13793
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814833F0 99.04256
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814834AC 99.65015
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8GetKOcandidates 98.87145
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] baseline: code 332/5200 data 180 functions 1 fuzzy 99.1962
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zierror] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zierror] objdiff: code 8/8 data None/None functions 2/2 fuzzy 100.0000 linked code 8
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zierror] instruction-exact functions: 2/2
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zierror] section .text size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zierror] baseline: code 8/8 data None functions 2 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zmtkey] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zmtkey] objdiff: code 1488/2216 data 60/60 functions 3/4 fuzzy 99.8466 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zmtkey] instruction-exact functions: 3/4
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zmtkey] section .text size 2216 match 99.84657
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zmtkey] section extab size 24 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zmtkey] section extabindex size 36 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zmtkey] below 100: Zi8getKeyLayout 99.53297
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zmtkey] baseline: code 1488/2216 data 60 functions 3 fuzzy 99.8466
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zoemdata] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zoemdata] objdiff: code 208/976 data 60/60 functions 2/3 fuzzy 98.9344 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zoemdata] instruction-exact functions: 2/3
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zoemdata] section .text size 976 match 98.934425
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zoemdata] section extab size 24 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zoemdata] section extabindex size 36 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zoemdata] below 100: Zi8MatchOEMdata 98.645836
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zoemdata] baseline: code 208/976 data 60 functions 2 fuzzy 98.9344
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] objdiff: code None/3760 data 68/68 functions 0/1 fuzzy 96.9947 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] instruction-exact functions: 0/1
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section .data size 48 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section .text size 3760 match 96.99468
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section extab size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section extabindex size 12 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] below 100: Zi8PrepareMatch 96.99468
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] baseline: code None/3760 data 68 functions 0 fuzzy 96.9947
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 93.66808 -> 93.66808
|
||||
global fuzzy_match_percent: 99.79631 -> 99.79631
|
||||
global complete_code_percent: 79.26653 -> 79.26653
|
||||
global matched_data_percent: 99.99410 -> 99.99410
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
Reference in New Issue
Block a user