dannyxu2015 / ik-analyzer

Automatically exported from code.google.com/p/ik-analyzer
0 stars 0 forks source link

DictSegment匹配函数代码 #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
DictSegment.java中第89-92行:
for(DictSegment seg : segmentArray){
    if(seg != null && seg.nodeChar.equals(keyChar)){
        //找到匹配的段
        ds = seg;
    }
}
其中ds=seg;找到匹配之后似乎应该break跳出for循环

Original issue reported on code.google.com by scomouse@163.com on 28 Apr 2010 at 3:41

GoogleCodeExporter commented 8 years ago
非常感谢您的意见,我们将在下个版本修订。

Original comment by linliang...@gmail.com on 14 May 2010 at 4:06

GoogleCodeExporter commented 8 years ago
问题已经修订,详见源码更新记录

Original comment by linliang...@gmail.com on 14 May 2010 at 4:24