commit | 34a5c90efac1a7203c02bfdec38b5512b6dbfebe | [log] [tgz] |
---|---|---|
author | Keisuke Kuroyanagi <ksk@google.com> | Fri May 23 04:56:59 2014 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Fri May 23 04:56:59 2014 +0000 |
tree | ff8206a09a6c04974421bbc60b47b6cec8e3f3aa | |
parent | c1442aa282d2cf05d3df7866ae7fa5202a643151 [diff] | |
parent | 6600340af58761ab1f2b3292b93f2758237190a3 [diff] |
Merge "Fix: PtNodeParams.representsNonWordInfo()"
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 33e60e2..b2e60a8 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 @@ } 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 4495def..1858441 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 @@ isTerminal = ptNodeParams.getProbability() != NOT_A_PROBABILITY; } readingHelper.readNextSiblingNode(ptNodeParams); - if (!ptNodeParams.representsNonWordInfo()) { + if (ptNodeParams.representsNonWordInfo()) { // Skip PtNodes that represent non-word information. continue; }