We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17d84ec commit c188009Copy full SHA for c188009
README.md
@@ -53,9 +53,12 @@ public static void main(String[] args) {
53
// direct match
54
boolean result1 = p.contains("测试文本", "ceshi");
55
// indexed match
56
- PinyinTree<Integer> tree = new PinyinTree<>(true, p);
+ Searcher<Integer> searcher = new TreeSearcher<>(CONTAIN, p));
57
p.put("测试文本", 0);
58
- boolean result2 = tree.search("ceshi").contains(0);
+ boolean result2 = searcher.search("ceshi").contains(0);
59
+ // fuzzy spelling
60
+ p.config().fSh2S(true).commit();
61
+ boolean result3 = p.contains("测试文本", "cesi");
62
// pinyin format
63
Char c = p.genChar('圆');
64
Pinyin y = c.pinyins()[0];
0 commit comments