0
|
1 #ifndef _LIBGUESS_H
|
|
2 #define _LIBGUESS_H 1
|
|
3
|
|
4 #include <stdlib.h>
|
|
5 #include <string.h>
|
|
6
|
|
7 /* prototypes */
|
|
8 const char *guess_jp(const char *buf, int buflen);
|
|
9 const char *guess_tw(const char *buf, int buflen);
|
|
10 const char *guess_cn(const char *buf, int buflen);
|
|
11 const char *guess_kr(const char *buf, int buflen);
|
|
12 const char *guess_ru(const char *buf, int buflen);
|
|
13 const char *guess_ar(const char *buf, int buflen);
|
|
14 const char *guess_tr(const char *buf, int buflen);
|
|
15 const char *guess_gr(const char *buf, int buflen);
|
|
16 const char *guess_hw(const char *buf, int buflen);
|
|
17 int dfa_validate_utf8(const char *buf, int buflen);
|
|
18
|
|
19 #define GUESS_REGION_JP "japanese"
|
|
20 #define GUESS_REGION_TW "taiwanese"
|
|
21 #define GUESS_REGION_CN "chinese"
|
|
22 #define GUESS_REGION_KR "korean"
|
|
23 #define GUESS_REGION_RU "russian"
|
|
24 #define GUESS_REGION_AR "arabic"
|
|
25 #define GUESS_REGION_TR "turkish"
|
|
26 #define GUESS_REGION_GR "greek"
|
|
27 #define GUESS_REGION_HW "hebrew"
|
|
28
|
|
29 const char *guess_encoding(const char *buf, int buflen, const char *lang);
|
|
30
|
|
31 #endif
|