PutAltWord Method
Collapse the table of content
Expand the table of content

IWordFormSink::PutAltWord method

Puts an alternative form of a word in the IWordFormSink object.

Syntax


HRESULT PutAltWord(
  [inconst WCHAR *pwcInBuf ,
  [in]       ULONG cwc
);

Parameters

pwcInBuf [in]

A pointer to a buffer that contains an alternative form of a word.

cwc [in]

The number of characters in pwcInBuf.

Return value

This method can return one of these values.

Return codeDescription
S_OK

The operation was completed successfully.

LANGUAGE_S_LARGE_WORD

Value of cwc is larger than the value for ulMaxTokenSize that is specified in IStemmer::Init.

 

Remarks

This method is called from the GenerateWordForms method of the IStemmer implementation. All alternative forms for a word, except the last, are put in the IWordFormSink object by calling IWordFormSink::PutAltWord. The final alternative form of a word, which is always the original form of the word, is handled by calling IWordFormSink::PutWord.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Search.h

See also

IWordFormSink

 

 

Community Additions

ADD
Show:
© 2016 Microsoft