搜索

大约有 200 项符合查询结果, 库内数据总量为 3,513 项。 (搜索耗时:0.0085秒)

1.我对切词尝试做了下功能修改

更新时间:2013-12-27 20:12 t By linqingtao

...吧 // hightman.070902: 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 = ...

2.RE: scws分词碰到连字符的词处理的问题

发布时间:2010-06-24 11:06 t By hightman

...1:00:20 2010 *************** *** 326,342 **** ch = txt[start]; if (pflag & PFLAG_DIGIT) { ! if (!SCWS_IS_DIGIT(ch)) { // strict must add: !$this->_is_digit(ord($this->txt[$start+1]))) if ((pflag & PFLAG_ADDSYM) || ch != 0x2e || !SCWS_IS_DIGIT(txt[start+1...

3.[patch] php-scws 扩展在 5.4.x 下的编译兼容补丁

发布时间:2012-03-05 11:03 t By hightman

...S file: /home/cvsroot/scws/phpext/php_scws.c,v retrieving revision 1.13 diff -c -r1.13 php_scws.c *** php_scws.c 23 Dec 2011 07:05:26 -0000 1.13 --- php_scws.c 5 Mar 2012 03:32:46 -0000 *************** *** 359,368 **** --- 359,370 ---- if (!(fullpath = expand_filepath(filepath, NULL TSRML...

4.XSException::getRelPath修改建议

发布时间:2012-08-30 16:08 t By bkkkd

...e) { $from = getcwd(); $file = realpath($file); if (is_dir($file)) { $pos = false; $to = $file; } else { $pos = strrpos($file, DIRECTORY_SEPARATOR); $to = substr($file, 0, $pos); } for ($rel = '...

5.RE:1250

发布时间:2007-11-27 10:11 t By mfd

...尾增加两个释放: /* 一口.070808: memory leak fixed. */ if (mpath) free(mpath); if (npath) free(npath); 修改后应该是这样:[code]next_path: m = n + 1; } /* 一口.070808: memory leak fixed. */ if (mpath) free(mpath); if (npath) free...

6.RE: 报告一个内存泄露bug,1.1.6版本

发布时间:2011-05-08 00:05 t By hightman

...的影响也比较轻,所以暂不强制提供升级版本。 [code] diff -c -r1.20 scws.c *** scws.c 19 Apr 2011 08:00:23 -0000 1.20 --- scws.c 7 May 2011 14:57:49 -0000 *************** *** 1328,1334 **** } // free at ! free(at); top = NU...

7.RE: 遇到一个分词错误的问题

更新时间:2014-02-13 10:02 t By robinjia

...怎么解决呢?[hr] 依然是对scws.c进行修改,同样是890行, if ((r1->flag & SCWS_ZRULE_PREFIX) && (i < (zlen - clen))) { /* prefix, check after (zmin~zmax) */ // 先检查 zmin 字内是否全部符合要求 // 再在 zmax 范围内取得符合要求的字 // int i, j, k, ch, clen, s...

8.RE: scws.so: undefined symbol: core_globals_id in Unknown on line 0 done

更新时间:2010-04-28 19:04 t By uuuuu

...d -o together... yes checking for system library directory... lib checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu ch...

9.scws_has_word的逻辑问题

更新时间:2010-07-29 14:07 t By backluck

...cws_res_t res, cur; char *word; word_attr *at = NULL; if (!s || !s->txt) return 0; __PARSE_XATTR__; // save the offset. (cnt -> return_value) off = s->off; cnt = s->off = 0; while (!cnt && (cur = res = scws_get_result(s)) != NULL) { ...

10.RE: scws_has_word的逻辑问题

发布时间:2010-08-02 11:08 t By backluck

...cws_res_t res, cur; char *word; word_attr *at = NULL; if (!s || !s->txt) return 0; __PARSE_XATTR__; // save the offset. (cnt -> return_value) off = s->off; cnt = s->off = 0; while (!cnt && (cur = res = scws_get_result(s)) != NULL) { ...

  • 时间不限
  • 按相关性排序