Exemple #1
0
int32_t CharsetRecog_gb_18030::match(InputText * det)
{
	return match_mbcs(det, commonChars_gb_18030, ARRAY_SIZE(commonChars_gb_18030));
}
Exemple #2
0
int32_t CharsetRecog_big5::match(InputText * det)
{
	return match_mbcs(det, commonChars_big5, ARRAY_SIZE(commonChars_big5));
}
Exemple #3
0
int32_t CharsetRecog_euc_kr::match(InputText * det)
{
	return match_mbcs(det, commonChars_euc_kr, ARRAY_SIZE(commonChars_euc_kr));
}
Exemple #4
0
int32_t CharsetRecog_sjis::match(InputText * det)
{
	return match_mbcs(det, commonChars_sjis, ARRAY_SIZE(commonChars_sjis));
}
Exemple #5
0
UBool CharsetRecog_gb_18030::match(InputText *det, CharsetMatch *results) const
{
    int32_t confidence = match_mbcs(det, commonChars_gb_18030, ARRAY_SIZE(commonChars_gb_18030));
    results->set(det, this, confidence);
    return (confidence > 0);
}
Exemple #6
0
UBool CharsetRecog_big5::match(InputText *det, CharsetMatch *results) const
{
    int32_t confidence = match_mbcs(det, commonChars_big5, UPRV_LENGTHOF(commonChars_big5));
    results->set(det, this, confidence);
    return (confidence > 0);
}