aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/ExpandableDictionary.java
diff options
context:
space:
mode:
authorKeisuke Kuroyanagi <ksk@google.com>2013-08-23 22:04:27 +0900
committerKeisuke Kuroyanagi <ksk@google.com>2013-08-23 22:04:27 +0900
commit87a72f50c23a4ef357ae623eabc2af16d02466ae (patch)
tree4892e3e85dd84cab0ad29ad6a49a1dfa5a4b55a4 /java/src/com/android/inputmethod/latin/ExpandableDictionary.java
parente9a10ff0f026b5ec458f116afc7a75806574cbcd (diff)
downloadlatinime-87a72f50c23a4ef357ae623eabc2af16d02466ae.tar.gz
latinime-87a72f50c23a4ef357ae623eabc2af16d02466ae.tar.xz
latinime-87a72f50c23a4ef357ae623eabc2af16d02466ae.zip
Introduce DynamicDictionaryWriter for dynamic dictionary.
Bug: 6669677 Change-Id: Ifcbeb88b908f2301ac062b411a95c8b38d24b90e
Diffstat (limited to 'java/src/com/android/inputmethod/latin/ExpandableDictionary.java')
-rw-r--r--java/src/com/android/inputmethod/latin/ExpandableDictionary.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/ExpandableDictionary.java b/java/src/com/android/inputmethod/latin/ExpandableDictionary.java
index fc87cfac2..491964f38 100644
--- a/java/src/com/android/inputmethod/latin/ExpandableDictionary.java
+++ b/java/src/com/android/inputmethod/latin/ExpandableDictionary.java
@@ -327,7 +327,7 @@ public class ExpandableDictionary extends Dictionary {
return (node == null) ? false : !node.mShortcutOnly;
}
- protected boolean removeBigram(final String word1, final String word2) {
+ public boolean removeBigram(final String word1, final String word2) {
// Refer to addOrSetBigram() about word1.toLowerCase()
final Node firstWord = searchWord(mRoots, word1.toLowerCase(), 0, null);
final Node secondWord = searchWord(mRoots, word2, 0, null);
@@ -359,7 +359,7 @@ public class ExpandableDictionary extends Dictionary {
return (node == null) ? -1 : node.mFrequency;
}
- protected NextWord getBigramWord(final String word1, final String word2) {
+ public NextWord getBigramWord(final String word1, final String word2) {
// Refer to addOrSetBigram() about word1.toLowerCase()
final Node firstWord = searchWord(mRoots, word1.toLowerCase(), 0, null);
final Node secondWord = searchWord(mRoots, word2, 0, null);
@@ -700,7 +700,7 @@ public class ExpandableDictionary extends Dictionary {
return null;
}
- protected void clearDictionary() {
+ public void clearDictionary() {
mRoots = new NodeArray();
}