1 /* This header file is in the public domain. */ 2 #ifndef CHINESE_H 3 #define CHINESE_H 4 #include <string.h> 5 6 struct zh_weight 7 { 8 unsigned char name[2]; 9 double freq; 10 }; 11 12 typedef const struct zh_weight *RateFunc (const unsigned char *str); 13 typedef int ValidityFunc (const unsigned char *str); 14 15 #include "zh_weight_gbk.h" 16 #include "zh_weight_big5.h" 17 #endif 18