diff options
author | 2014-03-20 21:00:03 +0900 | |
---|---|---|
committer | 2014-03-25 18:07:14 +0900 | |
commit | 90f6411899393b1d64dcac1c162d6f84bc2e2b7b (patch) | |
tree | 5b1336f3e4f4f66764560e46fba66ed7387826a1 /native/jni/src | |
parent | eddbb7ac88c3174ffdc38a9dd799029302f55d03 (diff) | |
download | latinime-90f6411899393b1d64dcac1c162d6f84bc2e2b7b.tar.gz latinime-90f6411899393b1d64dcac1c162d6f84bc2e2b7b.tar.xz latinime-90f6411899393b1d64dcac1c162d6f84bc2e2b7b.zip |
Remove DicNode.isFirstWord().
Change-Id: I825c0f7cf1fcf66c6309e0bab8e0fdd767170107
Diffstat (limited to 'native/jni/src')
-rw-r--r-- | native/jni/src/suggest/core/dicnode/dic_node.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/native/jni/src/suggest/core/dicnode/dic_node.h b/native/jni/src/suggest/core/dicnode/dic_node.h index 865aab632..3118cdfa3 100644 --- a/native/jni/src/suggest/core/dicnode/dic_node.h +++ b/native/jni/src/suggest/core/dicnode/dic_node.h @@ -218,10 +218,6 @@ class DicNode { return CharUtils::isAsciiUpper(c); } - bool isFirstWord() const { - return mDicNodeProperties.getPrevWordTerminalPtNodePos() == NOT_A_DICT_POS; - } - bool isCompletion(const int inputSize) const { return mDicNodeState.mDicNodeStateInput.getInputIndex(0) >= inputSize; } @@ -292,7 +288,9 @@ class DicNode { // the one that corresponds to the last word of the suggestion, and all the previous words // are concatenated together in mDicNodeStateOutput. int getTotalNodeSpaceCount() const { - if (isFirstWord()) return 0; + if (!hasMultipleWords()) { + return 0; + } return CharUtils::getSpaceCount(mDicNodeState.mDicNodeStateOutput.getCodePointBuf(), mDicNodeState.mDicNodeStateOutput.getPrevWordsLength()); } |