am 34a5c90e: Merge "Fix: PtNodeParams.representsNonWordInfo()"
* commit '34a5c90efac1a7203c02bfdec38b5512b6dbfebe': Fix: PtNodeParams.representsNonWordInfo()main
commit
676da0b78b
|
@ -160,7 +160,7 @@ class PtNodeParams {
|
|||
}
|
||||
|
||||
AK_FORCE_INLINE bool representsNonWordInfo() const {
|
||||
return getCodePointCount() > 0 && CharUtils::isInUnicodeSpace(getCodePoints()[0])
|
||||
return getCodePointCount() > 0 && !CharUtils::isInUnicodeSpace(getCodePoints()[0])
|
||||
&& isNotAWord();
|
||||
}
|
||||
|
||||
|
|
|
@ -61,7 +61,7 @@ void Ver4PatriciaTriePolicy::createAndGetAllChildDicNodes(const DicNode *const d
|
|||
isTerminal = ptNodeParams.getProbability() != NOT_A_PROBABILITY;
|
||||
}
|
||||
readingHelper.readNextSiblingNode(ptNodeParams);
|
||||
if (!ptNodeParams.representsNonWordInfo()) {
|
||||
if (ptNodeParams.representsNonWordInfo()) {
|
||||
// Skip PtNodes that represent non-word information.
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue