16 #define CONF_FILE "conf.xml"
18 #define MYSQL_USER "hce"
19 #define MYSQL_PWD "hceprjp"
20 #define MYSQL_HOST "localhost"
22 #define MYSQL_DB "templatesr"
23 #define MYSQL_TABLE "stat_raw_data"
29 #if __cplusplus >= 201100L
30 #define CHAR_TYPE char
33 #define CHAR_TYPE char
39 #define WORD_CONTENT_OFFSET unsigned long
40 #define LANG_ID unsigned short//LANG
41 #define TAG_ID unsigned short
42 #define WORD_LENGTH unsigned long
43 #define SSTRING std::basic_string<CHAR_TYPE>
47 #define MAX_NUM_LANG 161
48 #define _log_ std::cout
49 #define _log_end_ std::endl
51 #define DEFAULT_NORMALIZATION_WITHOUT 0
52 #define DEFAULT_NORMALIZATION_WITH 1
53 #define DEFAULT_SUBJECT_MASK 0
57 static const unsigned TAG_CODES_TOTAL_NUMBER = 0xA11;
58 static const unsigned TAG_CODES_BASE = 0xEEEE;
60 static const int POS_NUM = 16;
62 enum class WORD_TYPE : unsigned short { UNDEFINED=0, DELIMITER=0, WORD, NUMBER, PUNCTUATION };