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.

41 lines
1.1 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. //
  4. // CThaiSentTrieIter
  5. //
  6. // History:
  7. // created 8/99 aarayas
  8. //
  9. // �1999 Microsoft Corporation
  10. //----------------------------------------------------------------------------
  11. #include "CThaiSentTrieIter.hpp"
  12. //+---------------------------------------------------------------------------
  13. //
  14. // Class: CThaiSentTrieIter
  15. //
  16. // Synopsis: Bring interation index to the first node.
  17. //
  18. // Arguments:
  19. //
  20. // Modifies:
  21. //
  22. // History: created 8/99 aarayas
  23. //
  24. // Notes:
  25. //
  26. //----------------------------------------------------------------------------
  27. void CThaiSentTrieIter::GetNode()
  28. {
  29. pos = (WCHAR) trieScan.wch - 0x0100;
  30. fWordEnd = (trieScan.wFlags & TRIE_NODE_VALID) &&
  31. (!(trieScan.wFlags & TRIE_NODE_TAGGED) ||
  32. (trieScan.aTags[0].dwData & iDialectMask));
  33. if (fWordEnd)
  34. {
  35. dwTag = (DWORD) (trieScan.wFlags & TRIE_NODE_TAGGED ?
  36. trieScan.aTags[0].dwData :
  37. 0);
  38. }
  39. }