diff options
author | 2014-03-28 09:22:21 +0000 | |
---|---|---|
committer | 2014-03-28 09:22:22 +0000 | |
commit | 52eb673c46d7be85237921866ec6a4f6357020fb (patch) | |
tree | 8dd9c44243e2926a765a7160c39b55ad7c3cb175 /java/src/com/android/inputmethod/latin/WordComposer.java | |
parent | 03f9c4820abfb5e9e3bc7d3d210ba51aa8caa7ec (diff) | |
parent | 70d9152c7f9e06d7d02dbbcb53af5c8f19d16b8d (diff) | |
download | latinime-52eb673c46d7be85237921866ec6a4f6357020fb.tar.gz latinime-52eb673c46d7be85237921866ec6a4f6357020fb.tar.xz latinime-52eb673c46d7be85237921866ec6a4f6357020fb.zip |
Merge "Some cleanup"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/WordComposer.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/WordComposer.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/WordComposer.java b/java/src/com/android/inputmethod/latin/WordComposer.java index 324683c86..8a321e257 100644 --- a/java/src/com/android/inputmethod/latin/WordComposer.java +++ b/java/src/com/android/inputmethod/latin/WordComposer.java @@ -132,10 +132,15 @@ public final class WordComposer { * Number of keystrokes in the composing word. * @return the number of keystrokes */ - public final int size() { + // This may be made public if need be, but right now it's not used anywhere + /* package for tests */ int size() { return mCodePointSize; } + public boolean isSingleLetter() { + return size() == 1; + } + // When the composition contains trailing quotes, we don't pass them to the suggestion engine. // This is because "'tgis'" should be corrected to "'this'", but we can't afford to consider // single quotes as separators because of their very common use as apostrophes. |