Javadoc
Get the base direction of the text provided according to the Unicode
Bidirectional Algorithm. The base direction is derived from the first
character in the string with bidirectional character type L, R, or AL.
If the first such character has type L, LTR is returned. If the first
such character has type R or AL, RTL is returned. If the string does
not contain any character of these types, then NEUTRAL is returned.
This is a lightweight function for use when only the base direction is
needed and no further bidi processing of the text is needed.