IFELanguage::GetJMorphResult method (msime.h)
Gets morphological analysis results.
Syntax
HRESULT GetJMorphResult(
[in] DWORD dwRequest,
[in] DWORD dwCMode,
[in] INT cwchInput,
[in] const WCHAR *pwchInput,
[in] DWORD *pfCInfo,
[out] MORRSLT **ppResult
);
Parameters
[in] dwRequest
The conversion request. It can be one of the following values:
FELANG_REQ_CONV
FELANG_REQ_RECONV
FELANG_REQ_REV
[in] dwCMode
Specifies the conversion output characters and conversion options. This value is a combination of one or more of the following flags:
[in] cwchInput
The number of characters in pwchInput.
[in] pwchInput
Input characters to be converted by the morphology engine. This must be a UNICODE string.
Set this parameter to NULL to get the next entry for the previously input string, with the next rank. The order in which next entries are returned is defined by the implementation.
[in] pfCInfo
The information for each column, where each pfCInfo[x] corresponds to pwchInput[x]. Each DWORD can be a combination of the flags below:
FELANG_CLMN_WBREAK
FELANG_CLMN_NOWBREAK
FELANG_CLMN_PBREAK
FELANG_CLMN_NOPBREAK
FELANG_CLMN_FIXR
FELANG_CLMN_FIXD
[out] ppResult
The address of a MORRSLT structure that receives the morphology result data.
GetJMorphResult allocates memory using the OLE task allocator for the returned data, and sets the pResult to point to the memory. The application must free the memory pointed to by pResult, by using the CoTaskMemFree.
Return value
This method can return one of these values.
Return code | Description |
---|---|
|
More candidates exist. If you call this function again with pwchInput equal to NULL, it will get the next best candidate for the previous pwchInput. |
|
No result. |
|
No more candidates. |
|
input too large. |
|
Mutex timeout is occurred. |
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | msime.h |