mirror of
https://gitlab.freedesktop.org/uchardet/uchardet.git
synced 2025-12-06 16:56:40 +08:00
src: uchardet tool now shows the language code in verbose mode.
This commit is contained in:
parent
c550af99a7
commit
d48ee7abc2
@ -74,9 +74,15 @@ static void detect(FILE *fp,
|
||||
printf("\n");
|
||||
for (i = 0; i < candidates; i++)
|
||||
{
|
||||
printf("\t%s (%f)\n",
|
||||
uchardet_get_encoding(handle, i),
|
||||
uchardet_get_confidence(handle, i));
|
||||
if (uchardet_get_language(handle, i))
|
||||
printf("\t%s / %s (%f)\n",
|
||||
uchardet_get_encoding(handle, i),
|
||||
uchardet_get_language(handle, i),
|
||||
uchardet_get_confidence(handle, i));
|
||||
else
|
||||
printf("\t%s (%f)\n",
|
||||
uchardet_get_encoding(handle, i),
|
||||
uchardet_get_confidence(handle, i));
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user