aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/src/suggest/policyimpl/dictionary/header/header_policy.h
diff options
context:
space:
mode:
authorKeisuke Kuroyanagi <ksk@google.com>2014-05-23 20:20:56 +0900
committerKeisuke Kuroyanagi <ksk@google.com>2014-05-23 20:20:56 +0900
commita37f374ad140f14e5e8ecaef9e1dbee3b1d7b84c (patch)
tree71b3ec258a380c806a710c8ecd49af8b358401f2 /native/jni/src/suggest/policyimpl/dictionary/header/header_policy.h
parent1adca93381d261a6070be2721dbf8b8abafbfe01 (diff)
downloadlatinime-a37f374ad140f14e5e8ecaef9e1dbee3b1d7b84c.tar.gz
latinime-a37f374ad140f14e5e8ecaef9e1dbee3b1d7b84c.tar.xz
latinime-a37f374ad140f14e5e8ecaef9e1dbee3b1d7b84c.zip
Version up dynamic dict format from 401 to 402.
Change-Id: Ibea36af905ade773ae3db3a5456f7b5a0ad7d220
Diffstat (limited to 'native/jni/src/suggest/policyimpl/dictionary/header/header_policy.h')
-rw-r--r--native/jni/src/suggest/policyimpl/dictionary/header/header_policy.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/native/jni/src/suggest/policyimpl/dictionary/header/header_policy.h b/native/jni/src/suggest/policyimpl/dictionary/header/header_policy.h
index 281c5a818..75f4fef90 100644
--- a/native/jni/src/suggest/policyimpl/dictionary/header/header_policy.h
+++ b/native/jni/src/suggest/policyimpl/dictionary/header/header_policy.h
@@ -139,6 +139,8 @@ class HeaderPolicy : public DictionaryHeaderStructurePolicy {
switch (mDictFormatVersion) {
case FormatUtils::VERSION_2:
return FormatUtils::VERSION_2;
+ case FormatUtils::VERSION_401:
+ return FormatUtils::VERSION_401;
case FormatUtils::VERSION_4_ONLY_FOR_TESTING:
return FormatUtils::VERSION_4_ONLY_FOR_TESTING;
case FormatUtils::VERSION_4:
@@ -247,7 +249,7 @@ class HeaderPolicy : public DictionaryHeaderStructurePolicy {
}
bool supportsBeginningOfSentence() const {
- return mDictFormatVersion == FormatUtils::VERSION_4_DEV;
+ return mDictFormatVersion > FormatUtils::VERSION_401;
}
private: