Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
703 B

  1. #ifdef _BASE_LEX_
  2. #else
  3. #define _BASE_LEX_
  4. #define ATTR_DM 0x01
  5. #define ATTR_COMPOUND 0x02
  6. #define ATTR_RULE_WORD 0x04
  7. #define ATTR_EUDP_WORD 0x08
  8. #define ATTR_ERROR_WORD 0x10
  9. #define MAX_CHAR_PER_WORD 10
  10. #define CHT_UNICODE_BEGIN 0x4E00
  11. #define CHT_UNICODE_END 0x9FA5
  12. #define MAX_CHAR_PER_WORD 10
  13. #define APLEXICON_COUNT 1000
  14. typedef struct tagSLexHeader {
  15. DWORD dwMaxCharPerWord;
  16. DWORD dwWordNumber[MAX_CHAR_PER_WORD];
  17. } SLexHeader, *PSLexHeader;
  18. class CBaseLex {
  19. public:
  20. virtual BOOL GetWordInfo(LPCWSTR lpcwString, DWORD dwLength,
  21. PWORD pwAttrib) = 0;
  22. };
  23. typedef CBaseLex* PCBaseLex;
  24. #endif