Skip to content

return byte index in highlight_pos#110

Merged
wangfenjin merged 1 commit into
masterfrom
highlight-pos
Dec 12, 2022
Merged

return byte index in highlight_pos#110
wangfenjin merged 1 commit into
masterfrom
highlight-pos

Conversation

@wangfenjin

Copy link
Copy Markdown
Owner

fix #109

sqlite> .load libsimple
sqlite> CREATE VIRTUAL TABLE t1 USING fts5(x, tokenize = 'simple');
sqlite> insert into t1(x) values ('宝宝 宝贝 孩子 小孩,自拍,漫画');
sqlite> select simple_highlight_pos(t1, 0) from t1 where x match simple_query('');
14,17;24,27;

@codecov

codecov Bot commented Dec 12, 2022

Copy link
Copy Markdown

Codecov Report

Merging #110 (5a16085) into master (56269f8) will increase coverage by 0.24%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #110      +/-   ##
==========================================
+ Coverage   95.77%   96.01%   +0.24%     
==========================================
  Files           3        3              
  Lines         213      226      +13     
==========================================
+ Hits          204      217      +13     
  Misses          9        9              
Impacted Files Coverage Δ
src/simple_tokenizer.cc 100.00% <0.00%> (ø)
src/pinyin.cc 91.89% <0.00%> (+0.54%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@wangfenjin
wangfenjin merged commit 45e269a into master Dec 12, 2022
@wangfenjin
wangfenjin deleted the highlight-pos branch December 12, 2022 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

simple_highlight_pos 内容有空格时候返回值不对

1 participant