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.

53 lines
1.6 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. #define VERSIONMAJOR 1
  23. #define VERSIONMINOR 0
  24. #if defined(__cplusplus)
  25. extern "C" {
  26. #endif
  27. #if defined (NGRAM_ENABLE)
  28. PTEC WINAPI ThaiWordBreakInit(WCHAR* szFileName, WCHAR* szFileNameSentStruct, WCHAR* szFileNameTrigram);
  29. #else
  30. PTEC WINAPI ThaiWordBreakInit(WCHAR* szFileName, WCHAR* szFileNameTrigram);
  31. #endif
  32. PTEC WINAPI ThaiWordBreakInitResource(LPBYTE pThaiDic, LPBYTE pThaiTrigram);
  33. void WINAPI ThaiWordBreakTerminate();
  34. BOOL WINAPI ThaiWordBreakSearch(WCHAR* szWord, DWORD* pdwPOS);
  35. int WINAPI THWB_FindWordBreak(WCHAR* wzString,unsigned int iStringLen, BYTE* pBreakPos,unsigned int iBreakLen, unsigned int mode);
  36. int WINAPI ThaiSoundEx(WCHAR* word);
  37. int WINAPI THWB_IndexWordBreak(WCHAR* wzString,unsigned int iStringLen, BYTE* pBreakPos,THWB_STRUCT* pThwb_Struct,unsigned int iBreakMax);
  38. int WINAPI THWB_FindAltWord(WCHAR* wzWord,unsigned int iWordLen, BYTE Alt, BYTE* pBreakPos);
  39. THWB_STRUCT* WINAPI THWB_CreateThwbStruct(unsigned int iNumStruct);
  40. void WINAPI THWB_DeleteThwbStruct(THWB_STRUCT* pThwb_Struct);
  41. #if defined(__cplusplus)
  42. }
  43. #endif
  44. #endif