aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/src/dictionary.cpp
diff options
context:
space:
mode:
authorTom Ouyang <ouyang@google.com>2013-04-09 13:42:06 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-04-09 13:42:06 -0700
commitff981cc3e3169ca0b9af9bf40cd55cd9f95fa63e (patch)
treed1ad8380e63e631d17bc52f664b6748354a3a993 /native/jni/src/dictionary.cpp
parent8e7ca6be7ee0b4bbad536b8434b4e5826b8c9ecf (diff)
parent43779c04a9933bd1bcba3655b314485cc08bf2c2 (diff)
downloadlatinime-ff981cc3e3169ca0b9af9bf40cd55cd9f95fa63e.tar.gz
latinime-ff981cc3e3169ca0b9af9bf40cd55cd9f95fa63e.tar.xz
latinime-ff981cc3e3169ca0b9af9bf40cd55cd9f95fa63e.zip
am 43779c04: Merge "Add method to get dictionary flags from DicTraverseSession"
* commit '43779c04a9933bd1bcba3655b314485cc08bf2c2': Add method to get dictionary flags from DicTraverseSession
Diffstat (limited to 'native/jni/src/dictionary.cpp')
-rw-r--r--native/jni/src/dictionary.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/native/jni/src/dictionary.cpp b/native/jni/src/dictionary.cpp
index ed6ddb517..c998c0676 100644
--- a/native/jni/src/dictionary.cpp
+++ b/native/jni/src/dictionary.cpp
@@ -103,4 +103,9 @@ int Dictionary::getProbability(const int *word, int length) const {
bool Dictionary::isValidBigram(const int *word1, int length1, const int *word2, int length2) const {
return mBigramDictionary->isValidBigram(word1, length1, word2, length2);
}
+
+int Dictionary::getDictFlags() const {
+ return mUnigramDictionary->getDictFlags();
+}
+
} // namespace latinime