Beispiel #1
0
int32_t CharsetRecog_gb_18030::match(InputText * det)
{
	return match_mbcs(det, commonChars_gb_18030, ARRAY_SIZE(commonChars_gb_18030));
}
Beispiel #2
0
int32_t CharsetRecog_big5::match(InputText * det)
{
	return match_mbcs(det, commonChars_big5, ARRAY_SIZE(commonChars_big5));
}
Beispiel #3
0
int32_t CharsetRecog_euc_kr::match(InputText * det)
{
	return match_mbcs(det, commonChars_euc_kr, ARRAY_SIZE(commonChars_euc_kr));
}
Beispiel #4
0
int32_t CharsetRecog_sjis::match(InputText * det)
{
	return match_mbcs(det, commonChars_sjis, ARRAY_SIZE(commonChars_sjis));
}
Beispiel #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);
}
Beispiel #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);
}