diff options
author | 2014-05-12 09:33:27 +0000 | |
---|---|---|
committer | 2014-05-12 09:33:27 +0000 | |
commit | fac678e13df2c6073bdd7f9dc2fca1d4e16f8309 (patch) | |
tree | d66559a94ae8165f043082c1f598a25b3e238b1b /tools/dicttool/compat/com/android/inputmethod/event/CombinerChain.java | |
parent | 4fb490ff90423b17181e5402d7f2056d508f3f0a (diff) | |
parent | be99616afa2243fe48dc406d0a3f442cb05453b4 (diff) | |
download | latinime-fac678e13df2c6073bdd7f9dc2fca1d4e16f8309.tar.gz latinime-fac678e13df2c6073bdd7f9dc2fca1d4e16f8309.tar.xz latinime-fac678e13df2c6073bdd7f9dc2fca1d4e16f8309.zip |
Merge "Create the path for specifying combining rules in the subtype"
Diffstat (limited to 'tools/dicttool/compat/com/android/inputmethod/event/CombinerChain.java')
-rw-r--r-- | tools/dicttool/compat/com/android/inputmethod/event/CombinerChain.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/dicttool/compat/com/android/inputmethod/event/CombinerChain.java b/tools/dicttool/compat/com/android/inputmethod/event/CombinerChain.java index b68df1ce7..47f781e62 100644 --- a/tools/dicttool/compat/com/android/inputmethod/event/CombinerChain.java +++ b/tools/dicttool/compat/com/android/inputmethod/event/CombinerChain.java @@ -20,6 +20,13 @@ import com.android.inputmethod.latin.utils.CollectionUtils; import java.util.ArrayList; +/** + * Compatibility class that stands in for the combiner chain in LatinIME. + * + * This is not used by dicttool, it's just needed by the dependency chain. + */ +// TODO: there should not be a dependency to this in dicttool, so there +// should be a sensible way to separate them cleanly. public class CombinerChain { private StringBuilder mComposingWord = new StringBuilder(); public CombinerChain(final Combiner... combinerList) {} @@ -35,4 +42,9 @@ public class CombinerChain { public void reset() { mComposingWord.setLength(0); } + + public static Combiner[] createCombiners(final String spec) { + // Dicttool never uses a combiner at all, so we just return a zero-sized array. + return new Combiner[0]; + } } |