Merge "Remove cruft (A32)"
This commit is contained in:
commit
aa246f23ce
1 changed files with 1 additions and 7 deletions
|
@ -38,8 +38,6 @@ import java.util.concurrent.ConcurrentHashMap;
|
||||||
public class Suggest {
|
public class Suggest {
|
||||||
public static final String TAG = Suggest.class.getSimpleName();
|
public static final String TAG = Suggest.class.getSimpleName();
|
||||||
|
|
||||||
public static final int APPROX_MAX_WORD_LENGTH = 32;
|
|
||||||
|
|
||||||
// TODO: rename this to CORRECTION_OFF
|
// TODO: rename this to CORRECTION_OFF
|
||||||
public static final int CORRECTION_NONE = 0;
|
public static final int CORRECTION_NONE = 0;
|
||||||
// TODO: rename this to CORRECTION_ON
|
// TODO: rename this to CORRECTION_ON
|
||||||
|
@ -132,10 +130,6 @@ public class Suggest {
|
||||||
return mDictionaries;
|
return mDictionaries;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int getApproxMaxWordLength() {
|
|
||||||
return APPROX_MAX_WORD_LENGTH;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets an optional user dictionary resource to be loaded. The user dictionary is consulted
|
* Sets an optional user dictionary resource to be loaded. The user dictionary is consulted
|
||||||
* before the main dictionary, if set. This refers to the system-managed user dictionary.
|
* before the main dictionary, if set. This refers to the system-managed user dictionary.
|
||||||
|
@ -351,7 +345,7 @@ public class Suggest {
|
||||||
private static SuggestedWordInfo getTransformedSuggestedWordInfo(
|
private static SuggestedWordInfo getTransformedSuggestedWordInfo(
|
||||||
final SuggestedWordInfo wordInfo, final Locale locale, final boolean isAllUpperCase,
|
final SuggestedWordInfo wordInfo, final Locale locale, final boolean isAllUpperCase,
|
||||||
final boolean isFirstCharCapitalized, final int trailingSingleQuotesCount) {
|
final boolean isFirstCharCapitalized, final int trailingSingleQuotesCount) {
|
||||||
final StringBuilder sb = new StringBuilder(getApproxMaxWordLength());
|
final StringBuilder sb = new StringBuilder(wordInfo.mWord.length());
|
||||||
if (isAllUpperCase) {
|
if (isAllUpperCase) {
|
||||||
sb.append(wordInfo.mWord.toString().toUpperCase(locale));
|
sb.append(wordInfo.mWord.toString().toUpperCase(locale));
|
||||||
} else if (isFirstCharCapitalized) {
|
} else if (isFirstCharCapitalized) {
|
||||||
|
|
Loading…
Reference in a new issue