...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...
...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...
..."Usage : %s dict rule\n",argv[0]); return -1; } scws_t s; ...
...ss XDB_R::_check_header()里面执行 if ($fstat['size'] != $hdr['fsize']) return false就返回了。请问这说明什么问题呢?[hr] 事实上,$hdr['fsize'] = 13245833, 而$fstat['size']就是dict.xdb文件的大小4497408 ,那为什么$hdr['fsize']会等于13245833呢?
...$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...
...= 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){ }
... 在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()是线...
...dds as $srv) { $srv->execCommand($cmd, $res_arg, $res_cmd); } return $res;} 执行服务端指令并获取返回值 重写此方法是为了同步到额外增加的多个索引服务端
...值(UTF-8编码) $doc XSDocument 当前相关的索引文档 {return} array 切好的词组成的数组 源码: sdk/php/lib/XSTokenizer.class.php#L33 (显示) public function getTokens($value, XSDocument $doc = null); 执行分词并返回词列表
... $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);...