NjxGetWordInfo Function

Description

This function gets information for adding words from the processing result structure.
Use this function when you want to obtain word registration information required to register a word (NjxAddWord) based on the result (IWNN_RESULT) of a word search, prediction, or conversion process.

Syntax

#include <mw/iwnn/iwnnCTR.h>

s16 NjxGetWordInfo(
     NJ_WORD_INFO* info,                          // Word registration information
     const IWNN_CLASS* iwnn,                      // Parsing information class
     const IWNN_RESULT* result                    // Processing result structure
);

Arguments

NameDescription
OUT NJ_WORD_INFO* info Word registration information.
Stores information required to register words extracted from the processing result structure (result).
IN const IWNN_CLASS* iwnn Parsing information class
An error results if NULL is specified.
IN const IWNN_RESULT* result Processing result structure
Specifies the result obtained from a search, conversion, or other process.

Return Value

s16 Negative value: Error
Other: Normal exit

Error Code Description of Error
NJ_ERR_PARAM_ENVIRONMENT_NULL A NULL pointer was specified for iwnn
NJ_ERR_PARAM_RESULT_NULL A NULL pointer was specified for result
NJ_ERR_WORD_INFO_NULL A NULL pointer was specified for info
NJ_ERR_INVALID_RESULT   ■ The operation code specified in result is not supported
  ■ The dictionary from which candidates are to be obtained cannot return a reading for reverse lookup results
NJ_ERR_DIC_TYPE_INVALID The dictionary type associated with the single-word dictionary address specified in result is not supported
NJ_ERR_DIC_BROKEN This is returned if the target dictionary for result is an uncompressed dictionary and any of the following situations occur:
  ■ The data for the storage destination queue corresponding to queue ID is corrupted
  ■ Reading data longer than NJ_MAX_LEN+1 is stored in single-word data in the dictionary
  ■ Connection information for a single word used in multiple queues is corrupted
NJ_ERR_READING_TOO_LONG The length of the reading string in result exceeds NJ_MAX_LEN
NJ_ERR_CANDIDATE_TOO_LONG A value greater than NJ_MAX_RESULT_LEN+1 was set for the candidate string length of result

CONFIDENTIAL