]> granicus.if.org Git - icu/commit
ICU-21179 Clean up unused code in the RBBI dictbe
authorMichael Block <mikamikem457@gmail.com>
Wed, 1 Jul 2020 22:26:33 +0000 (10:26 +1200)
committerCraig Cornelius <cwcornelius@gmail.com>
Fri, 5 Feb 2021 01:55:05 +0000 (17:55 -0800)
commita1383189225c6c3e180182d970a67aedc33be4aa
treeaa35c7019a2ace123c8b99fdc4afb59bd3057dab
parent45b8834e7ac1fd746bc3dd7bef1dde4da640dddb
ICU-21179 Clean up unused code in the RBBI dictbe

The wordsMatched conditional gave the misleading impression that only the first "first word" candidate that was followed by a dictionary word would be marked, but because the wordsMatched declaration is inside the while loop, every "first word" candidate that's followed by a dictionary word is marked (resulting in the shortest and not the longest first candidate that's followed by a second dictionary word).
icu4c/source/common/dictbe.cpp