Git Product home page Git Product logo

searchcoretest's Introduction

SearchCoreTest
==============
Author: kewenya
mail:   [email protected]
/*
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 

searchcoretest's People

Contributors

kewenya avatar kewenya0909 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.