e:\scws\scws-1.1.5\libscws\xdb.c(555) : warning C4113: 'int (__cdecl *)()' differs in parameter lists from 'int (__cdecl *)(const void *,const void *)'
...pedef struct { xdict_t d; rule_t r; unsigned char *mblen; unsigned int mode; unsigned char *txt; int len; int off; scws_res_t res0; scws_res_t res1; word_t **wmap; struct scws_zchar *zmap; } scws_st, *scws_t; struct scws_zchar { int start; int end; }; 注:xdict_t 和 rule...
...http://www.chinapubmed.net/pub/search.php #机器配置 处理器: IntelXeon 5645/E5-2620*4(4核) 系 统: CentOS 6.2 64位 内 存: 2 GB ECC 这是用unix bench的跑分情况 [attachment=60] 应该说性能还算OK。 这是随便的一个top截图(流量比较小) ...
...下红色部分判断. [code] static void _scws_mset_word(scws_t s, int i, int j) { word_t item; item = s->wmap[i][j]; /* hightman.070705: 加入 item == null 判断, 防止超长词(255字以上)unsigned char溢出 */ if ((item == NULL) || ((s->mode & SCWS_IGN_SYMBOL) && !memcmp(item...
..._IGN_SYMBOL; } +/* shuying.lee adds it */ +void scws_use_rule(scws_t s, int yes) +{ + if (yes == SCWS_YEA) + s->mode |= SCWS_USE_RULE; + + if (yes == SCWS_NA) + s->mode &= ~SCWS_USE_RULE; +} + void scws_set_multi(scws_t s, int mode) { s->mode &= ~SCWS_MULTI_MASK; @@ -1135,6 +1148,11 @@ c...
./.libs/libflintcheck.a(flint_check.o)(.text+0x1144): In function `BtreeCheck::check(char const*, std::basic_string const&, int, std::basic_ostream&)': : undefined reference to `FlintTable::~FlintTable()' ./.libs/libflintcheck.a(flint_check.o)(.text+0x12a0): In function `BtreeCheck::check(char con...
...[/color]--[/size] 1. [libscws] scws_set_dict(scws_t s, const char *fpath, int mode); scws_add_dict(scws_t s, const char *fpath, int mode); scws_set_dict 为原有功能,scws_add_dict 是新增功能,2者功能相当接近,只是 scws_set_dict 会把 scws handler 现存的词库表 ...
...[/color]--[/size] 1. [libscws] scws_set_dict(scws_t s, const char *fpath, int mode); scws_add_dict(scws_t s, const char *fpath, int mode); scws_set_dict 为原有功能,scws_add_dict 是新增功能,2者功能相当接近,只是 scws_set_dict 会把 scws handler 现存的词库表 ...
...02: multi segment // step1: split to short words if ((j-i) > 1) { int n, k, m = i; int fir = -1; if (s->mode & SCWS_MULTI_SHORT) { while (m < j) { k = m; fir = -1; // hightman.111223: multi short enhanced for (n = m + 1; n wmap[m][n]; ...
情景: /** 商品表: 字段: id = int 产品ID ,存储格式为 1 catid = int 栏目ID , 存储格式为 38 option = string 属性值 =》 3,5,8 3,5,8 是属性表里的 3【红色】,5[38码],8【纯棉】 ------- **/ 现...