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.

60 lines
1.9 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Thai WordBreak
  4. //
  5. // Thai WordBreak Interface Header File.
  6. //
  7. // History:
  8. // created 6/99 aarayas
  9. //
  10. // �1999 Microsoft Corporation
  11. //----------------------------------------------------------------------------
  12. #ifndef _THWBINT_H_
  13. #define _THWBINT_H_
  14. #ifndef WIN32_LEAN_AND_MEAN
  15. #define WIN32_LEAN_AND_MEAN
  16. #endif
  17. #include <windows.h>
  18. #include <assert.h>
  19. #include <memory.h>
  20. #include "ProofBase.h" // Include for definition of PTEC.
  21. #include "thwbdef.hpp"
  22. #include "thwbplat.h"
  23. #define VERSIONMAJOR 1
  24. #define VERSIONMINOR 0
  25. #if defined(__cplusplus)
  26. extern "C" {
  27. #endif
  28. #if defined (NGRAM_ENABLE)
  29. PTEC WINAPI ThaiWordBreakInit(WCHAR* szFileName, WCHAR* szFileNameSentStruct, WCHAR* szFileNameTrigram);
  30. #else
  31. PTEC WINAPI ThaiWordBreakInit(WCHAR* szFileName, WCHAR* szFileNameTrigram);
  32. #endif
  33. PTEC WINAPI ThaiWordBreakInitResource(LPBYTE pThaiDic, LPBYTE pThaiTrigram, BOOL fSkipHeader);
  34. void WINAPI ThaiWordBreakTerminate();
  35. BOOL WINAPI ThaiWordBreakSearch(WCHAR* szWord, DWORD* pdwPOS);
  36. int WINAPI THWB_FindWordBreak(WCHAR* wzString,unsigned int iStringLen, BYTE* pBreakPos,unsigned int iBreakLen, unsigned int mode);
  37. int WINAPI ThaiSoundEx(WCHAR* word);
  38. int WINAPI THWB_IndexWordBreak(WCHAR* wzString,unsigned int iStringLen, BYTE* pBreakPos,THWB_STRUCT* pThwb_Struct,unsigned int iBreakMax);
  39. int WINAPI THWB_FindAltWord(WCHAR* wzWord,unsigned int iWordLen, BYTE Alt, BYTE* pBreakPos);
  40. THWB_STRUCT* WINAPI THWB_CreateThwbStruct(unsigned int iNumStruct);
  41. void WINAPI THWB_DeleteThwbStruct(THWB_STRUCT* pThwb_Struct);
  42. DWORD_PTR WINAPI THWB_CreateWordBreaker();
  43. int WINAPI THWB_FindWB(DWORD_PTR dwBreaker, WCHAR* wzString,unsigned int iStringLen, BYTE* pBreakPos,unsigned int iBreakLen, unsigned int mode);
  44. BOOL WINAPI THWB_DeleteWordBreaker(DWORD_PTR dwBreaker);
  45. #if defined(__cplusplus)
  46. }
  47. #endif
  48. #endif