public class AnyRtlDirectionEstimator extends DirectionEstimator
| Constructor and Description |
|---|
AnyRtlDirectionEstimator() |
| Modifier and Type | Method and Description |
|---|---|
HasDirection.Direction |
estimateDirection(java.lang.String str)
Estimates the direction of a given string using the "any RTL" heuristic:
the return value is RTL if the string contains at least one RTL character.
|
static AnyRtlDirectionEstimator |
get()
Get an instance of AnyRtlDirectionEstimator.
|
estimateDirection, estimateDirectionpublic static AnyRtlDirectionEstimator get()
public HasDirection.Direction estimateDirection(java.lang.String str)
estimateDirection in class DirectionEstimatorstr - Input string.str.