搜索

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

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.XSFieldMeta::fromConfig

...示) public function fromConfig($config){ // type & default setting if (isset($config['type'])) { $predef = 'self::TYPE_' . strtoupper($config['type']); if (defined($predef)) { $this->type = constant($predef); if ($this->type == self::TYPE_ID) { ...

3.XSFieldMeta::toConfig

...ic function toConfig(){ // type $str = "[" . $this->name . "]\n"; if ($this->type === self::TYPE_NUMERIC) { $str .= "type = numeric\n"; } elseif ($this->type === self::TYPE_DATE) { $str .= "type = date\n"; } elseif ($this->type === self::TYPE_ID) { $str .= "type =...

4.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...

5.XSIndex::update

...lic function update(XSDocument $doc, $add = false){ // before submit if ($doc->beforeSubmit($this) === false) { return $this; } // check primary key of document $fid = $this->xs->getFieldId(); $key = $doc->f($fid); if ($key === null || $key === '') { throw new XSEx...

6.[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...

7.XSJsonDataSource::getDataList

...$line = ''; while (true) { $buf = fgets($this->fd, 8192); if ($buf === false || strlen($buf) === 0) { break; } $line .= $buf; if (strlen($buf) < 8191 || substr($buf, - 1, 1) === "\n") { break; } } // empty line (end of file) ...

8.XSException::getRelPath

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

9.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 = '...

10.XSFieldMeta

...ion __construct($name, $config = null){ $this->name = strval($name); if (is_array($config)) { $this->fromConfig($config); }} 构造函数 __toString() 方法 public string __toString() {return} string 字段名称 源码: sdk/php/lib/XSFieldScheme.class.php#...

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