- Notifications
You must be signed in to change notification settings - Fork0
Trimatch: An (Exact|Prefix|Approximate) String Matching Library
License
NotificationsYou must be signed in to change notification settings
tuem/trimatch
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Addinclude andexternal/stfrie/include to your include path
Include header
#include<trimatch/index.hpp>
- Build index
std::vector<std::string> texts;// you can also use u16string, u32string, etc....auto index = trimatch::set::build(texts);
- Search texts
std::string query ="...";auto searcher = index.searcher();for(constauto& [text, distance]: searcher.approx(query))std::cout <<"text=" << text <<", distance=" << distance << std::endl;
About
Trimatch: An (Exact|Prefix|Approximate) String Matching Library
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published