https://github.com/dongyuwei/marisatrieobjc
marisa-trie for Objective-c, published as a pod of CocoaPods
https://github.com/dongyuwei/marisatrieobjc
Last synced: 11 days ago
JSON representation
marisa-trie for Objective-c, published as a pod of CocoaPods
- Host: GitHub
- URL: https://github.com/dongyuwei/marisatrieobjc
- Owner: dongyuwei
- License: bsd-2-clause
- Created: 2017-09-09T17:20:11.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-12T15:03:23.000Z (almost 8 years ago)
- Last Synced: 2025-06-02T09:05:42.575Z (21 days ago)
- Language: Makefile
- Size: 496 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MarisaTrieObjc
marisa-trie for Objective-c, published as a pod of CocoaPods### lint
`pod lib lint --use-libraries`
### publish
`pod trunk push MarisaTrie.podspec --use-libraries`### usage(you should use it in Objective-c++, *.mm file):
1. Podfile
```rb
platform :osx, '10.12'target 'test-trie' do
pod 'MarisaTrie', "0.0.1"
end
```2. `pod update && pod install`
2. demo code:
```objc
#import "marisa_trie_objc.h"MarisaTrie* marisaTrie = [[MarisaTrie alloc] init];
[marisaTrie insertString: @"goods"];
[marisaTrie insertString: @"goodshoot"];
[marisaTrie insertString: @"goodson"];
[marisaTrie insertString: @"goodsell"];
[marisaTrie buildTrie];NSArray* result = [marisaTrie queryTrie:@"good"];
NSLog(@"===queryed list is %@", result);
```