IWNN_CHARSET Structure

Description

The fuzzy-character-set structure specifies ambiguous character patterns when performing fuzzy searches.

Structure Configuration

struct IWNN_CHARSET {
     u16 charSetCnt;                              // Number of registrations
     wchar_t* from[NJ_MAX_CHARSET];              // Character before replacement
     wchar_t* to[NJ_MAX_CHARSET];                // Character after replacement
};
?

Structure Members

u16 charSetCnt Number of registrations.
Specifies the number of configured fuzzy-character patterns.
wchar_t* from Character before replacement.
Specify one character for the character before replacement.
Be sure to add a terminator at the end of the string.
wchar_t* to Character after replacement.
Specify 1 to 3 characters for the character(s) after replacement.
Be sure to add a terminator at the end of the string.


For example, define as follows when performing a fuzzy search that includes the candidates "ば" and "ぱ" when the character "は" has been input.
const u8 HA_utf16BE[4]={0x30,0x6F,0x00,0x00};   // は
const u8 BA_utf16BE[4]={0x30,0x70,0x00,0x00};   // ば
const u8 PA_utf16BE[4]={0x30,0x71,0x00,0x00};   // ぱ
static IWNN_CHARSET charSet =
{
	2,					// charSetCnt
	{(wchar_t*)HA_utf16BE, (wchar_t*)HA_utf16BE, 0},	// from
	{(wchar_t*)BA_utf16BE, (wchar_t*)PA_utf16BE, 0},	// to
}

CONFIDENTIAL