diff options
author | 2014-05-23 05:02:15 +0000 | |
---|---|---|
committer | 2014-05-23 05:02:15 +0000 | |
commit | 676da0b78bfbbb1ca79f4a2d3a0ba913afd7139e (patch) | |
tree | ff8206a09a6c04974421bbc60b47b6cec8e3f3aa | |
parent | 52302b7a59e81d5825bedd0dc0af64ca3f4f6b30 (diff) | |
parent | 34a5c90efac1a7203c02bfdec38b5512b6dbfebe (diff) | |
download | latinime-676da0b78bfbbb1ca79f4a2d3a0ba913afd7139e.tar.gz latinime-676da0b78bfbbb1ca79f4a2d3a0ba913afd7139e.tar.xz latinime-676da0b78bfbbb1ca79f4a2d3a0ba913afd7139e.zip |
am 34a5c90e: Merge "Fix: PtNodeParams.representsNonWordInfo()"
* commit '34a5c90efac1a7203c02bfdec38b5512b6dbfebe':
Fix: PtNodeParams.representsNonWordInfo()
-rw-r--r-- | native/jni/src/suggest/policyimpl/dictionary/structure/pt_common/pt_node_params.h | 2 | ||||
-rw-r--r-- | native/jni/src/suggest/policyimpl/dictionary/structure/v4/ver4_patricia_trie_policy.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/native/jni/src/suggest/policyimpl/dictionary/structure/pt_common/pt_node_params.h b/native/jni/src/suggest/policyimpl/dictionary/structure/pt_common/pt_node_params.h index 33e60e225..b2e60a837 100644 --- a/native/jni/src/suggest/policyimpl/dictionary/structure/pt_common/pt_node_params.h +++ b/native/jni/src/suggest/policyimpl/dictionary/structure/pt_common/pt_node_params.h @@ -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(); } diff --git a/native/jni/src/suggest/policyimpl/dictionary/structure/v4/ver4_patricia_trie_policy.cpp b/native/jni/src/suggest/policyimpl/dictionary/structure/v4/ver4_patricia_trie_policy.cpp index 4495def1e..185844139 100644 --- a/native/jni/src/suggest/policyimpl/dictionary/structure/v4/ver4_patricia_trie_policy.cpp +++ b/native/jni/src/suggest/policyimpl/dictionary/structure/v4/ver4_patricia_trie_policy.cpp @@ -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; } |