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.

34 lines
809 B

  1. //+---------------------------------------------------------------------------
  2. //
  3. //
  4. // CThaiBreakTree - class CThaiBreakTree
  5. //
  6. // History:
  7. // created 11/99 aarayas
  8. //
  9. // �1999 Microsoft Corporation
  10. //----------------------------------------------------------------------------
  11. #ifndef _CTHAITRIGRAMBREAK_H_
  12. #define _CTHAITRIGRAMBREAK_H_
  13. #include <windows.h>
  14. #include <assert.h>
  15. #include "CThaiTrieIter.hpp"
  16. #include "CThaiSentTrieIter.hpp"
  17. #include "CThaiTrigramTrieIter.hpp"
  18. class CThaiTrigramBreak
  19. {
  20. public:
  21. CThaiTrigramBreak();
  22. ~CThaiTrigramBreak();
  23. void Init(CTrie* pTrie, CTrie* pTrigramTrie);
  24. protected:
  25. inline unsigned int Maximum(unsigned int x, unsigned y) { if (x > y) return x; else return y;}
  26. CThaiTrieIter thaiTrieIter;
  27. CThaiTrigramTrieIter thaiTrigramIter;
  28. };
  29. #endif