Package com.google.gwt.i18n.shared
Class FirstStrongDirectionEstimator
java.lang.Object
com.google.gwt.i18n.shared.DirectionEstimator
com.google.gwt.i18n.shared.FirstStrongDirectionEstimator
Direction estimator that uses the "first strong" heuristic.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionestimateDirection
(String str) Estimates the direction of a given string using the "first strong" heuristic: The return value is determined by the first character in the string with strong directionality.get()
Get an instance of FirstStrongDirectionEstimator.Methods inherited from class com.google.gwt.i18n.shared.DirectionEstimator
estimateDirection, estimateDirection
-
Constructor Details
-
FirstStrongDirectionEstimator
public FirstStrongDirectionEstimator()
-
-
Method Details
-
get
Get an instance of FirstStrongDirectionEstimator.- Returns:
- An instance of FirstStrongDirectionEstimator.
-
estimateDirection
Estimates the direction of a given string using the "first strong" heuristic: The return value is determined by the first character in the string with strong directionality. If there is no such character, the return value is DEFAULT.- Specified by:
estimateDirection
in classDirectionEstimator
- Parameters:
str
- Input string.- Returns:
- Direction The estimated direction of
str
.
-