windows-nt/Source/XPSP1/NT/inetsrv/intlwb/cht2/srcs/lexicon.h

42 lines
1 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
#ifndef __CHTLEXICON_H_
#define __CHTLEXICON_H_
// Use one BYTE, return WORD to AP
// AP can use high BYTE as a private data
#define ATTR_DM 0x01
#define ATTR_COMPOUND 0x02
#define ATTR_RULE_WORD 0x04
#define ATTR_EUDP_WORD 0x08
#define MAX_CHAR_PER_WORD 10
#define CHT_UNICODE_BEGIN 0x4E00
#define CHT_UNICODE_END 0x9FA5
typedef struct tagSLexInfo {
DWORD dwWordNumber;
DWORD dwWordStringOffset;
DWORD dwWordCountOffset;
DWORD dwWordAttribOffset;
DWORD dwTerminalCodeOffset;
} SLexInfo, *PSLexInfo;
typedef struct tagLexFileHeader {
DWORD dwMaxCharPerWord;
SLexInfo sLexInfo[MAX_CHAR_PER_WORD];
} SLexFileHeader, *PSLexFileHeader;
typedef struct tagSAltLexInfo {
DWORD dwWordNumber;
DWORD dwWordStringOffset;
DWORD dwWordGroupOffset;
} SAltLexInfo, *PSAltLexInfo;
typedef struct tagAltLexFileHeader {
DWORD dwMaxCharPerWord;
SAltLexInfo sAltWordInfo[MAX_CHAR_PER_WORD];
} SAltLexFileHeader, *PSAltLexFileHeader;
#else
#endif