搜索

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

211.好消息,scws-0.0.1 pre 版发布!!

发布时间:2007-06-09 11:06 t By hightman

...RED, x->fd, 0); *************** *** 186,191 **** --- 192,198 ---- return NULL; } } + #endif return x; } *************** *** 214,219 **** --- 221,227 ---- x->base = base ? base : 0xf422f; x->fsize = sizeof(xhdr) + x->prime * sizeof(xptr_st); x->fmap = NULL...

212.xdb追加的遍历接口

发布时间:2012-06-17 13:06 t By hit

...ad(x, ptr); } } int xdb_next(xdb_t x,xdb_p_next_rec p_nr) { if (!x) return -1; xptr_st ptr; p_nr->key = NULL; xdb_tree_plist tmp_plist = NULL; if(!_xdb_tree_plist) { travel_index++; if (travel_index >= x->prime) { free(_xdb_tr...

213.发一个稳定复现的问题

更新时间:2014-03-03 15:03 t By getwe

..."Usage : %s dict rule\n",argv[0]); return -1; } scws_t s; ...

214.RE: Windows7 分词准确率极低

更新时间:2010-12-31 02:12 t By pittece

...ss XDB_R::_check_header()里面执行 if ($fstat['size'] != $hdr['fsize']) return false就返回了。请问这说明什么问题呢?[hr] 事实上,$hdr['fsize'] = 13245833, 而$fstat['size']就是dict.xdb文件的大小4497408 ,那为什么$hdr['fsize']会等于13245833呢?

215.修正utf-8版make_xdb_file.php的错误

发布时间:2011-06-09 09:06 t By itlong

...$match); $slice = implode('',array_slice($match[0], $start, $length)); return $slice.$suffixStr; } function mstrlen($str, $charset="utf-8"){ $re['utf-8'] = "/[\x01-\x7f]|[\xc2-\xdf][\x80-\xbf]|[\xe0-\xef][\x80-\xbf]{2}|[\xf0-\xff][\x80-\xbf]{3}/"; $re['gb2312'] = "/[\x01-\x7f]|[\xb0-\x...

216.XSDebugFilter

...= false){ echo "\n----- DEBUG DATA INFO -----\n"; print_r($data); return $data;} processDoc() 方法 public void processDoc($doc) $doc 源码: sdk/php/util/XSDataSource.class.php#L997 (显示) public function processDoc($doc){ }

217.问一个关于线程安全的问题

发布时间:2011-05-07 18:05 t By lauxinz

... 在xdict.h文件中,有这么一行注释,能否说明一下: /* return pointer to static data, DO NOT use two or more times in one line, Non-ThreadSafe */ word_t xdict_query(xdict_t xd, const char *key, int len); xdict_query() 不是线程安全的? 看代码xdict_query()是线...

218.XSIndex::execCommand

...dds as $srv) { $srv->execCommand($cmd, $res_arg, $res_cmd); } return $res;} 执行服务端指令并获取返回值 重写此方法是为了同步到额外增加的多个索引服务端

219.XSTokenizer

...值(UTF-8编码) $doc XSDocument 当前相关的索引文档 {return} array 切好的词组成的数组 源码: sdk/php/lib/XSTokenizer.class.php#L33 (显示) public function getTokens($value, XSDocument $doc = null); 执行分词并返回词列表

220.XSComponent::__set

... $setter = 'set' . $name; if (method_exists($this, $setter)) { return $this->$setter($value); } // throw exception $msg = method_exists($this, 'get' . $name) ? 'Read-only' : 'Undefined'; $msg .= ' property: ' . get_class($this) . '::$' . $name; throw new XSException($msg);...

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