Latest 0.0.1
Homepage https://github.com/dongyuwei/MarisaTrieObjc
License BSD 2-Clause License
Platforms osx 10.12, requires ARC
Frameworks Foundation
Authors

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
    
    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);

Latest podspec

{
    "name": "MarisaTrie",
    "version": "0.0.1",
    "summary": "marisa-trie for Objective-c",
    "description": "marisa-trie for Objective-c, published as a Pod of CocoaPods",
    "homepage": "https://github.com/dongyuwei/MarisaTrieObjc",
    "license": "BSD 2-Clause License",
    "authors": {
        "Dong Yuwei": "[email protected]"
    },
    "social_media_url": "http://twitter.com/newdongyuwei",
    "source": {
        "git": "https://github.com/dongyuwei/MarisaTrieObjc.git",
        "tag": "0.0.1"
    },
    "platforms": {
        "osx": "10.12"
    },
    "requires_arc": true,
    "source_files": "marisa-trie-objc/*.{h,mm}",
    "preserve_paths": [
        "include/*",
        "include/**/*"
    ],
    "xcconfig": {
        "USER_HEADER_SEARCH_PATHS": "/Users/yuwdong/code/objc/marisa-trie-objc/include"
    },
    "vendored_libraries": "lib/libmarisa.a",
    "libraries": "c++",
    "frameworks": "Foundation"
}

Pin It on Pinterest

Share This