mirror of https://github.com/tongzx/nt5src
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.0 KiB
41 lines
1.0 KiB
//+---------------------------------------------------------------------------
|
|
//
|
|
//
|
|
// CThaiSentTrieIter
|
|
//
|
|
// History:
|
|
// created 8/99 aarayas
|
|
//
|
|
// ©1999 Microsoft Corporation
|
|
//----------------------------------------------------------------------------
|
|
#include "CThaiSentTrieIter.hpp"
|
|
|
|
//+---------------------------------------------------------------------------
|
|
//
|
|
// Class: CThaiSentTrieIter
|
|
//
|
|
// Synopsis: Bring interation index to the first node.
|
|
//
|
|
// Arguments:
|
|
//
|
|
// Modifies:
|
|
//
|
|
// History: created 8/99 aarayas
|
|
//
|
|
// Notes:
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
void CThaiSentTrieIter::GetNode()
|
|
{
|
|
pos = (WCHAR) trieScan.wch - 0x0100;
|
|
fWordEnd = (trieScan.wFlags & TRIE_NODE_VALID) &&
|
|
(!(trieScan.wFlags & TRIE_NODE_TAGGED) ||
|
|
(trieScan.aTags[0].dwData & iDialectMask));
|
|
|
|
if (fWordEnd)
|
|
{
|
|
dwTag = (DWORD) (trieScan.wFlags & TRIE_NODE_TAGGED ?
|
|
trieScan.aTags[0].dwData :
|
|
0);
|
|
}
|
|
}
|