mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Fix: PtNodeParams.representsNonWordInfo()"
This commit is contained in:
commit
34a5c90efa
@ -160,7 +160,7 @@ class PtNodeParams {
|
|||||||
}
|
}
|
||||||
|
|
||||||
AK_FORCE_INLINE bool representsNonWordInfo() const {
|
AK_FORCE_INLINE bool representsNonWordInfo() const {
|
||||||
return getCodePointCount() > 0 && CharUtils::isInUnicodeSpace(getCodePoints()[0])
|
return getCodePointCount() > 0 && !CharUtils::isInUnicodeSpace(getCodePoints()[0])
|
||||||
&& isNotAWord();
|
&& isNotAWord();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ void Ver4PatriciaTriePolicy::createAndGetAllChildDicNodes(const DicNode *const d
|
|||||||
isTerminal = ptNodeParams.getProbability() != NOT_A_PROBABILITY;
|
isTerminal = ptNodeParams.getProbability() != NOT_A_PROBABILITY;
|
||||||
}
|
}
|
||||||
readingHelper.readNextSiblingNode(ptNodeParams);
|
readingHelper.readNextSiblingNode(ptNodeParams);
|
||||||
if (!ptNodeParams.representsNonWordInfo()) {
|
if (ptNodeParams.representsNonWordInfo()) {
|
||||||
// Skip PtNodes that represent non-word information.
|
// Skip PtNodes that represent non-word information.
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user