diff options
author | Fabrice Di Meglio <fdimeglio@google.com> | 2011-08-19 15:42:04 -0700 |
---|---|---|
committer | Fabrice Di Meglio <fdimeglio@google.com> | 2011-08-19 16:19:37 -0700 |
commit | a646145c335ba821f01d9e4f8be2583eb9fd7266 (patch) | |
tree | 9fbf56a62a7ebd7851814ed18b025d90f5502104 /core/java/android/text/TextDirectionHeuristics.java | |
parent | abb0f299fdc72755a18cf8848d57919890f0cd42 (diff) | |
download | frameworks_base-a646145c335ba821f01d9e4f8be2583eb9fd7266.zip frameworks_base-a646145c335ba821f01d9e4f8be2583eb9fd7266.tar.gz frameworks_base-a646145c335ba821f01d9e4f8be2583eb9fd7266.tar.bz2 |
Improve TextDirection resolution
- remove unuseful heuristics
- tune Javadoc
Change-Id: Id72a158b3a17a528423d278b1cbfd95b8c2951b5
Diffstat (limited to 'core/java/android/text/TextDirectionHeuristics.java')
-rw-r--r-- | core/java/android/text/TextDirectionHeuristics.java | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/core/java/android/text/TextDirectionHeuristics.java b/core/java/android/text/TextDirectionHeuristics.java index 5ed2df4..6debc6b 100644 --- a/core/java/android/text/TextDirectionHeuristics.java +++ b/core/java/android/text/TextDirectionHeuristics.java @@ -50,22 +50,6 @@ public class TextDirectionHeuristics { new TextDirectionHeuristicInternal(FirstStrong.INSTANCE, true); /** - * If the text contains any strong left to right non-format character, determines - * that the direction is left to right, falling back to left to right if it - * finds none. - */ - public static final TextDirectionHeuristic ANYLTR_LTR = - new TextDirectionHeuristicInternal(AnyStrong.INSTANCE_LTR, false); - - /** - * If the text contains any strong left to right non-format character, determines - * that the direction is left to right, falling back to right to left if it - * finds none. - */ - public static final TextDirectionHeuristic ANYLTR_RTL = - new TextDirectionHeuristicInternal(AnyStrong.INSTANCE_LTR, true); - - /** * If the text contains any strong right to left non-format character, determines * that the direction is right to left, falling back to left to right if it * finds none. @@ -74,14 +58,6 @@ public class TextDirectionHeuristics { new TextDirectionHeuristicInternal(AnyStrong.INSTANCE_RTL, false); /** - * If the text contains any strong right to left non-format character, determines - * that the direction is right to left, falling back to right to left if it - * finds none. - */ - public static final TextDirectionHeuristic ANYRTL_RTL = - new TextDirectionHeuristicInternal(AnyStrong.INSTANCE_RTL, true); - - /** * Examines only the strong directional non-format characters, and if either * left to right or right to left characters are 60% or more of this total, * determines that the direction follows the majority of characters. Falls |