void CWrapper_encoding_isgbk(char **characters, int *numres)
	{
		char* s = *characters;
		int l;
		l = strlen(s);
		*numres = IsGBK(s,l);
	}
Beispiel #2
0
//去掉无法显示的汉字
int DeleteUnreadableZiCandidates(CANDIDATE *candidate_array, int count)
{
	int i, new_count = 0;

	for (i = 0; i < count; i++)
	{
		if ( pim_config->scope_gbk == HZ_SCOPE_UNICODE )
		{
			if ( pim_config->hide_black_window && !FontCanSupport( candidate_array[i].hz.item->hz ) )
				continue;
		}
		else
		{
			//if it is not gbk,then continue
			if(!IsGBK( candidate_array[i].hz.item->hz ))
				continue;			
		}

		candidate_array[new_count] = candidate_array[i];
		new_count++;
	}

	return new_count;
}