IStemmer::GenerateWordForms method (indexsrv.h)

Generates alternative forms for a word and puts these forms in the IWordFormSink object.

Syntax

HRESULT GenerateWordForms(
  [in] const WCHAR   *pwcInBuf,
  [in] ULONG         cwc,
  [in] IWordFormSink *pStemSink
);

Parameters

[in] pwcInBuf

Type: const WCHAR*

Pointer to a buffer that contains the word to stem. The characters in pwcInBuf are represented in Unicode.

[in] cwc

Type: ULONG

Number of characters in pwcInBuf.

[in] pStemSink

Type: IWordFormSink*

Pointer to an IWordFormSink object that receives and handles the alternative word forms generated by this method.

Return value

Type: HRESULT

This method can return one of these values.

Return code Description
S_OK
Successful completion.
E_INVALIDARG
Invalid argument. Either pwcInBuf or pWordFormSink is NULL.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header indexsrv.h
Redistributable Windows NT 4.0 Option Pack

See also

IStemmer