typedef struct { u8 operation; // Search method #define NJ_CURSOR_OPERATION_COMPLETE 0 // IWNN_SEARCH_CONDITION::operation Forward lookup exact search #define NJ_CURSOR_OPERATION_FORE 1 // IWNN_SEARCH_CONDITION::operation Forward lookup prefix search #define NJ_CURSOR_OPERATION_LINK 2 // IWNN_SEARCH_CONDITION::operation Related search #define NJ_CURSOR_OPERATION_REVERSE 3 // IWNN_SEARCH_CONDITION::operation Reverse lookup exact search #define RSOR_OPTION_REVERSE_FORE 4 // IWNN_SEARCH_CONDITION::operation Reverse lookup prefix search u8 mode; // Search candidate retrieval order #define NJ_CURSOR_MODE_FREQUENCY 0 // IWNN_SEARCH_CONDITION::mode Order by frequency #define NJ_CURSOR_MODE_READING 1 // IWNN_SEARCH_CONDITION::mode Order by reading #define NJ_CURSOR_MODE_REGIST 2 // IWNN_SEARCH_CONDITION::mode Order by registration IWNN_DIC_SET* dicSet; // Dictionary set to be searched // [Used Internally] Parts of Speech Information struct { u8* fore; // Previous-parts-of-speech condition u16 foreSize; // Number of registered fore parts of speech u16 foreFlag; // 0: Standard comparison, 1: Inverted comparison u8* rear; // Next-parts-of-speech condition u16 rearSize; // Number of next parts of speech registered u16 rearFlag; // 0: Standard comparison, 1: Inverted comparison u8* noReadingFore; // Previous-parts-of-speech condition (no reading) u16 previousBackPartsOfSpeech; // Next-parts-of-speech number for preceding confirmed word (no extended reading) } partsOfSpeech; wchar_t* reading; // Reading string of word to be searched for. Terminated with (NJ_UINT8)0. u16 readingLen; // Reading string length (number of character array elements) u16 yclen; // Reading string length (number of characters). Used only for evaluation. wchar_t* kanji; // Notation string used for prediction when operation = NJ_CUR_OP_LINK is specified. Terminated with (NJ_UINT8)0. IWNN_CHARSET* charSet; // Fuzzy character set u8 ancillaryConnect; // Toggles ancillary word connection u8 ctrl_opt; // [Used Internally] //IWNN_SEARCH_CONDITION::ctrl_opt search limit release #define NJ_SEARCH_DISMANTLING_CONTROL 0x80 } IWNN_SEARCH_CONDITION;
CONFIDENTIAL