...吧 // 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 = ...
...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...
...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...
...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 = '...
...尾增加两个释放: /* 一口.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...
...的影响也比较轻,所以暂不强制提供升级版本。 [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...
...怎么解决呢?[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...
...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...
...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) { ...
...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) { ...