diff options
author | 2012-08-10 16:52:27 +0900 | |
---|---|---|
committer | 2012-08-13 16:35:59 +0900 | |
commit | b14fc88e482e53ba6852c8d5da5d9826c68d041f (patch) | |
tree | a2be310d3b8b9961a47ff7fca3522650fe7df30c /native/jni/src/correction.cpp | |
parent | 814510305c21b3081414e75e040dec4b73f6cdf3 (diff) | |
download | latinime-b14fc88e482e53ba6852c8d5da5d9826c68d041f.tar.gz latinime-b14fc88e482e53ba6852c8d5da5d9826c68d041f.tar.xz latinime-b14fc88e482e53ba6852c8d5da5d9826c68d041f.zip |
Tag the whitelisted entries in native code.
Since this is already used in Java land, this actually does
activate the whitelist path, and the code is now fully
functional. We still have to remove the old whitelist resource
and to compile the dictionary that includes the whitelist.
Bug: 6906525
Change-Id: Iacde5313e303b9ed792940efaf6bcfa4ee1317bd
Diffstat (limited to 'native/jni/src/correction.cpp')
-rw-r--r-- | native/jni/src/correction.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/native/jni/src/correction.cpp b/native/jni/src/correction.cpp index b18b35e8c..c815dabe6 100644 --- a/native/jni/src/correction.cpp +++ b/native/jni/src/correction.cpp @@ -157,6 +157,10 @@ void Correction::checkState() { } } +bool Correction::sameAsTyped() { + return mProximityInfoState.sameAsTyped(mWord, mOutputIndex); +} + int Correction::getFreqForSplitMultipleWords(const int *freqArray, const int *wordLengthArray, const int wordCount, const bool isSpaceProximity, const unsigned short *word) { return Correction::RankingAlgorithm::calcFreqForSplitMultipleWords(freqArray, wordLengthArray, |