-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use obj for cmrc so no need to copy PINYIN_TEXT #98
Conversation
Codecov Report
@@ Coverage Diff @@
## master #98 +/- ##
=======================================
Coverage 95.77% 95.77%
=======================================
Files 3 3
Lines 213 213
=======================================
Hits 204 204
Misses 9 9 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
我把dict目录拖到工程中,并移动到可访问的沙盒目录下,然后指定路径 BOOL bR = [db executeQuery:[NSString stringWithFormat:@"select jieba_dict('%@')", kJiebaPath]];,然后查询的时候报错: |
https://github.com/hxicoder/DBDemo/blob/main/DBDemo/DBDemo/ViewController.m#L151-L158 @hxicoder 你要先调用 jieba_dict 才能调用 jieba_query 这样的函数;不然第一次调用 jieba_query 的路径就不对了 |
我调用 jieba_dict 了,我再看看吧 |
@hxicoder 调 jieba_query 前要先 jieba_dict ,并且 jieba_dict 只用调一次就够了 |
@hxicoder 注意到 iOS 需要libPINYIN_TEXT 这个文件,我做了点更新可以修复这个问题,这样所有东西都打包到 libsimple 里面去了。麻烦帮忙测试下这个分支
另外你也可以加一点代码展示下怎么用 jieba_query 。需要把 dict 目录也 copy 到你的库里面去。