Source code of Windows XP (NT5)
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.

68 lines
1.4 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (C) 1997, Microsoft Corporation. All Rights Reserved.
  4. //
  5. // CFSADict.h :
  6. //
  7. // Owner : ChaeSeong Lim, HET MSCH RND (e-mail:[email protected])
  8. //
  9. // History : 1996/April
  10. /////////////////////////////////////////////////////////////////////////////
  11. #ifndef __FSADICT_H__
  12. #define __FSADICT_H__
  13. #if !defined (_UNICODE) && !defined (_MBCS)
  14. #error _UNICODE or _MBCS is required.
  15. #endif
  16. // !!!-- NOTICE --- !!! When you modify MAX_CHAR,
  17. // You must also modify in both FSADict.h and TransTable.h.
  18. #define MAX_CHARS 45 // total 40 tokens. reserve token number 0
  19. // For backward comppatibility added 4
  20. class CFSADict {
  21. public:
  22. // Constructor
  23. CFSADict(HANDLE fHandle, UINT sparseMatSize, UINT actSize);
  24. // Attributes
  25. // Operations
  26. virtual WORD Find(LPCSTR lpWord, BYTE *actCode);
  27. // Implementations
  28. protected:
  29. LPSTR lpBuffer;
  30. LPSTR lpActBuffer;
  31. public:
  32. // Destructor
  33. ~CFSADict();
  34. private:
  35. };
  36. class CFSAIrrDict : public CFSADict{
  37. public:
  38. // Constructor
  39. CFSAIrrDict(HANDLE fHandle, DWORD size) : CFSADict(fHandle, size, 0) { }
  40. // Attributes
  41. // Operations
  42. WORD Find(LPCSTR lpWord);
  43. // Implementations
  44. protected:
  45. public:
  46. // Destructor
  47. ~CFSAIrrDict() {}
  48. private:
  49. };
  50. #endif