forked from kewenya/SearchCoreTest
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
39 lines (28 loc) · 1.12 KB
/
Copy pathREADME
File metadata and controls
39 lines (28 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
对原来的SearchCoreTest进行修改,将部分int换成NSIntger,以支持64位
****************************华丽丽的分隔线*************************************
SearchCoreTest
==============
Author: kewenya
mail: yayake0909@gmail.com
/*
SearchCore 为C语音编写,ios、android、symbian都可以用
内存占用: 10000个人2M左右
效率:6K人搜索,100ms左右(iphone4)
1.姓名搜索:输入汉字、模糊拼音,可匹配连续的汉字
2.号码搜索
3.支持T9键盘的数字对应字母的匹配,只需设置MatchFunction为键盘26个字母与数字对应的串
*/
1、注意 Array使用,定义后需进行初始化ArrayInit,使用后需释放资源Reset
例如:
Array text;
ArrayInit( &text );
text.Reset( &text );
2、搜索结束释放资源
//释放搜索树
FreeSearchTree(&tree);
//初始化SearchTreeInit时如果加载了多音字 最需释放多音字资源
ReleaseMultiPYinWords();
3、传进去的字符串都只为unicode编码
4、多音字搜索需添加字库multipy_unicode.dat
5、symbian需打开SearchCore.c中的
CloseSTDLIB();// without this, there will be memory leak